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