init(width:height:featureChannelCount:batchSize:data:dataType:)
Creates a tensor with the sizes, number of feature channels, data, and data type you specify.
Declaration
convenience init(width: Int, height: Int, featureChannelCount: Int, batchSize: Int, data: MLCTensorData, dataType: MLCDataType)Parameters
- width:
The tensor width.
- height:
The tensor height.
- featureChannelCount:
The number of feature channels.
- batchSize:
The tensor batch size.
- data:
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:fillWithData:dataType:)init(shape:randomInitializerType:)init(width:height:featureChannelCount:batchSize:)init(width:height:featureChannelCount:batchSize:data:)init(width:height:featureChannelCount:batchSize:fillWithData:dataType:)init(width:height:featureChannelCount:batchSize:randomInitializerType:)