SiaNet/Initializers/Constant.cs
/// <summary>
/// Generates a tensor with specified shape.
/// </summary>
/// <param name="shape">The shape of the tensor.</param>
/// <returns></returns>
Generates a tensor with specified shape.
Generates a tensor with specified shape .
public override Tensor Generate(params long[] shape)
        {
            Tensor tensor = K.Constant(Value, shape);
            return tensor;
        }
public override Tensor Generate ( params long [ ] shape ) { Tensor tensor = K . Constant ( Value , shape ) ; return tensor ; }
Generates a tensor with specified shape.
Generates a tensor with specified shape .
None
shape
The shape of the tensor.
The shape of the tensor .