添加常量层。
ConstantLayer *AddConstant(Dims dimensions, WeightsBuf weights) noexcept;
参数名
输入/输出
说明
dimensions
输入
常量层的维度。
weights
常量层的权重。
返回新的常量层,如果添加失败时返回nullptr。