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