init(shape:dataType:)
Creates a tensor without data, with the shape and data type you specify.
Declaration
convenience init(shape: [Int], dataType: MLCDataType)Parameters
- shape:
An array that contains the sizes of each dimension.
- dataType:
The tensor data type.
Discussion
The tensor data type is MLCDataType.float32.
See Also
Creating Tensors by Specifying Shape
init(shape:)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:data:dataType:)init(width:height:featureChannelCount:batchSize:fillWithData:dataType:)init(width:height:featureChannelCount:batchSize:randomInitializerType:)