init(shape:dataType:)
Creates a tensor descriptor with the shape and data type you specify.
Declaration
convenience init?(shape: [Int], dataType: MLCDataType)Parameters
- shape:
The tensor shape.
- dataType:
The tensor data type.
See Also
Creating Tensor Descriptors
init(shape:sequenceLengths:sortedSequences:dataType:)init(width:height:featureChannelCount:batchSize:)init(width:height:featureChannelCount:batchSize:dataType:)init(convolutionWeightsWithInputFeatureChannelCount:outputFeatureChannelCount:dataType:)init(convolutionWeightsWithWidth:height:inputFeatureChannelCount:outputFeatureChannelCount:dataType:)init(convolutionBiasesWithFeatureChannelCount:dataType:)maxTensorDimensions