init(shape:fillWithData:dataType:)
Creates a tensor with the shape, scalar value, and data type you specify.
Declaration
convenience init(shape: [Int], fillWithData fillData: NSNumber, dataType: MLCDataType)Parameters
- shape:
An array that contains the sizes of each dimension.
- fillData:
The scalar value with which to initialize the tensor data.
- dataType:
The tensor data type.
See Also
Creating Tensors by Specifying Shape
init(shape:)init(shape:dataType:)init(shape:data:dataType:)init(shape:randomInitializerType:)init(width:height:featureChannelCount:batchSize:)init(width:height:featureChannelCount:batchSize:data:)init(width:height:featureChannelCount:batchSize:data:dataType:)init(width:height:featureChannelCount:batchSize:fillWithData:dataType:)init(width:height:featureChannelCount:batchSize:randomInitializerType:)