MLCTensor
The data object you use throughout the framework.
Declaration
class MLCTensorOverview
Create a tensor with or without data. For example, create a tensor with data for weights used by convolution or mean, variance, beta, and gamma parameters with batch normalization. Create a tensor without data to use as an input tensor when you build a graph.
Topics
Creating Tensors with Descriptors
init(descriptor:)init(descriptor:data:)init(descriptor:fillWithData:)init(descriptor:randomInitializerType:)MLCTensorDescriptorMLCDataTypeMLCTensorDataMLCRandomInitializerType
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:data:dataType:)init(width:height:featureChannelCount:batchSize:fillWithData:dataType:)init(width:height:featureChannelCount:batchSize:randomInitializerType:)
Creating Tensors by Specifying Sequence Lengths
init(sequenceLength:featureChannelCount:batchSize:)init(sequenceLength:featureChannelCount:batchSize:data:)init(sequenceLengths:sortedSequences:featureChannelCount:batchSize:data:)init(sequenceLength:featureChannelCount:batchSize:randomInitializerType:)init(sequenceLengths:sortedSequences:featureChannelCount:batchSize:randomInitializerType:)
Inspecting Tensors
tensorIDdescriptordatalabeldeviceoptimizerDataoptimizerDeviceDatahasValidNumericsMLCTensorOptimizerDeviceData
Converting Tensors
quantized(to:scale:bias:)quantized(to:scale:bias:axis:)dequantized(to:scale:zeroPoint:)dequantized(to:scale:bias:axis:)