Expand description
§Bindings to the MLCompute
framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- MLCActivation
Descriptor Deprecated MLCActivationDescriptor
- The MLCActivationDescriptor specifies a neuron descriptor.
- MLCActivation
Layer Deprecated MLCActivationLayer
andMLCLayer
- Apple’s documentation
- MLCActivation
Type MLCTypes
- An activation type that you specify for an activation descriptor.
- MLCAdam
Optimizer Deprecated MLCAdamOptimizer
andMLCOptimizer
- The MLCAdamOptimizer specifies the Adam optimizer.
- MLCAdamW
Optimizer Deprecated MLCAdamWOptimizer
andMLCOptimizer
- The MLCAdamWOptimizer specifies the AdamW optimizer.
- MLCArithmetic
Layer Deprecated MLCArithmeticLayer
andMLCLayer
- An arithmetic layer
- MLCArithmetic
Operation MLCTypes
- The list of supported arithmetic operations.
- MLCBatch
Normalization Layer Deprecated MLCBatchNormalizationLayer
andMLCLayer
- A batch normalizaion layer
- MLCComparison
Layer Deprecated MLCComparisonLayer
andMLCLayer
- Compare layer.
- MLCComparison
Operation MLCTypes
- A comparison operation.
- MLCConcatenation
Layer Deprecated MLCConcatenationLayer
andMLCLayer
- A concatenation layer
- MLCConvolution
Descriptor Deprecated MLCConvolutionDescriptor
- The MLCConvolutionDescriptor specifies a convolution descriptor
- MLCConvolution
Layer Deprecated MLCConvolutionLayer
andMLCLayer
- A convolution layer
- MLCConvolution
Type MLCTypes
- A convolution type that you specify for a convolution descriptor.
- MLCData
Type MLCTypes
- A tensor data type.
- MLCDevice
Deprecated MLCDevice
- A device that will be used to execute a neural network. If a MLCdevice is created with multiple devices using the [devicesWithType:selectMultipleDvices], on configurations where multiple GPUs are available such as on the Mac Pro, the framework may transparently schedule the execution across multiple GPUs. There are some requirements for a MLCDevice with multiple devices such as there can only be one training and/or inference graph associated with this device. If multiple graphs are used, they must be compiled using MLCGraphCompilationOptionsLinkGraphs specified in compileOptions and the multiple graphs should be linked together with linkWithGraphs.
- MLCDevice
Type MLCTypes
- A device type for execution of a neural network.
- MLCDropout
Layer Deprecated MLCDropoutLayer
andMLCLayer
- A dropout layer
- MLCEmbedding
Descriptor Deprecated MLCEmbeddingDescriptor
- The MLCEmbeddingDescriptor specifies an embedding layer descriptor
- MLCEmbedding
Layer Deprecated MLCEmbeddingLayer
andMLCLayer
- An embedding layer which stores the words embedding
- MLCExecution
Options MLCTypes
- A bitmask that specifies the options you’ll use when executing a graph.
- MLCFully
Connected Layer Deprecated MLCFullyConnectedLayer
andMLCLayer
- A fully connected layer a.k.a a dense layer
- MLCGather
Layer Deprecated MLCGatherLayer
andMLCLayer
- A gather layer
- MLCGradient
Clipping Type MLCTypes
- The type of clipping applied to gradient
- MLCGram
Matrix Layer Deprecated MLCGramMatrixLayer
andMLCLayer
- A gram matrix layer
- MLCGraph
Deprecated MLCGraph
- A graph of layers that can be used to build a training or inference graph
- MLCGraph
Compilation Options MLCTypes
- A bitmask that specifies the options you use when compiling a graph.
- MLCGroup
Normalization Layer Deprecated MLCGroupNormalizationLayer
andMLCLayer
- A group normalizaion layer. For more information, refer to https://pytorch.org/docs/stable/nn.html#groupnorm
- MLCInference
Graph Deprecated MLCGraph
andMLCInferenceGraph
- An inference graph created from one or more MLCGraph objects plus additional layers added directly to the inference graph.
- MLCInstance
Normalization Layer Deprecated MLCInstanceNormalizationLayer
andMLCLayer
- An instance normalization layer. For more information refer to https://pytorch.org/docs/stable/nn.html#instancenorm2d
- MLCLSTM
Descriptor Deprecated MLCLSTMDescriptor
- The MLCLSTMDescriptor specifies a LSTM descriptor
- MLCLSTM
Layer Deprecated MLCLSTMLayer
andMLCLayer
- A LSTM layer
- MLCLSTM
Result Mode MLCTypes
- A result mode for an LSTM layer.
- MLCLayer
Deprecated MLCLayer
- The base class for all MLCompute layers
- MLCLayer
Normalization Layer Deprecated MLCLayer
andMLCLayerNormalizationLayer
- The layer normalizaion layer. For more information, refer to https://pytorch.org/docs/stable/nn.html#layernorm.
- MLCLoss
Descriptor Deprecated MLCLossDescriptor
- The MLCLossDescriptor specifies a loss filter descriptor.
- MLCLoss
Layer Deprecated MLCLayer
andMLCLossLayer
- A loss layer
- MLCLoss
Type MLCTypes
- A loss function.
- MLCMat
MulDescriptor Deprecated MLCMatMulDescriptor
- The MLCMatMulDescriptor specifies a batched matrix multiplication descriptor
- MLCMat
MulLayer Deprecated MLCLayer
andMLCMatMulLayer
- A batched matrix multiplication layer
- MLCMultihead
Attention Descriptor Deprecated MLCMultiheadAttentionDescriptor
- The MLCMultiheadAttentionDescriptor specifies a Multi-Head Attention descriptor
- MLCMultihead
Attention Layer Deprecated MLCLayer
andMLCMultiheadAttentionLayer
- A multi-head attention layer
- MLCOptimizer
Deprecated MLCOptimizer
- The MLCOptimizer specifies a base optimizer.
- MLCOptimizer
Descriptor Deprecated MLCOptimizerDescriptor
- The MLCOptimizerDescriptor specifies an optimizer descriptor.
- MLCPadding
Layer Deprecated MLCLayer
andMLCPaddingLayer
- A padding layer
- MLCPadding
Policy MLCTypes
- A padding policy that you specify for a convolution or pooling layer.
- MLCPadding
Type MLCTypes
- A padding type that you specify for a padding layer.
- MLCPlatform
Deprecated MLCPlatform
- Utility class to set MLCompute global properties
- MLCPooling
Descriptor Deprecated MLCPoolingDescriptor
- The MLCPoolingDescriptor specifies a pooling descriptor.
- MLCPooling
Layer Deprecated MLCLayer
andMLCPoolingLayer
- A pooling layer
- MLCPooling
Type MLCTypes
- A pooling function type for a pooling layer.
- MLCRMS
Prop Optimizer Deprecated MLCOptimizer
andMLCRMSPropOptimizer
- The MLCRMSPropOptimizer specifies the RMSProp optimizer.
- MLCRandom
Initializer Type MLCTypes
- An initializer type you use to create a tensor with random data.
- MLCReduction
Layer Deprecated MLCLayer
andMLCReductionLayer
- Reduce tensor values across a given dimension to a scalar value.
- MLCReduction
Type MLCTypes
- A reduction operation type.
- MLCRegularization
Type MLCTypes
- Apple’s documentation
- MLCReshape
Layer Deprecated MLCLayer
andMLCReshapeLayer
- A reshape layer.
- MLCSGD
Optimizer Deprecated MLCOptimizer
andMLCSGDOptimizer
- The MLCSGDOptimizer specifies a stochastic gradient descent optimizer.
- MLCSample
Mode MLCTypes
- A sampling mode for an upsample layer.
- MLCScatter
Layer Deprecated MLCLayer
andMLCScatterLayer
- A scatter layer
- MLCSelection
Layer Deprecated MLCLayer
andMLCSelectionLayer
- Selection layer is used to select elements from two tensors
- MLCSlice
Layer Deprecated MLCLayer
andMLCSliceLayer
- Slice layer is used to slice a given source.
- MLCSoftmax
Layer Deprecated MLCLayer
andMLCSoftmaxLayer
- A softmax layer
- MLCSoftmax
Operation MLCTypes
- A softmax operation.
- MLCSplit
Layer Deprecated MLCLayer
andMLCSplitLayer
- A split layer
- MLCTensor
Deprecated MLCTensor
- A tensor object
- MLCTensor
Data Deprecated MLCTensorData
- An object to encapsulate memory to be used as tensor data
- MLCTensor
Descriptor Deprecated MLCTensorDescriptor
- The MLCTensorDescriptor specifies a tensor descriptor.
- MLCTensor
Optimizer Device Data Deprecated MLCTensorOptimizerDeviceData
- Apple’s documentation
- MLCTensor
Parameter Deprecated MLCTensorParameter
- A tensor parameter object. This is used to describe input tensors that are updated by the optimizer during training.
- MLCTraining
Graph Deprecated MLCGraph
andMLCTrainingGraph
- A training graph created from one or more MLCGraph objects plus additional layers added directly to the training graph.
- MLCTranspose
Layer Deprecated MLCLayer
andMLCTransposeLayer
- A transpose layer
- MLCUpsample
Layer Deprecated MLCLayer
andMLCUpsampleLayer
- An upsample layer
- MLCYOLO
Loss Descriptor Deprecated MLCYOLOLossDescriptor
- The MLCYOLOLossDescriptor specifies a YOLO loss filter descriptor.
- MLCYOLO
Loss Layer Deprecated MLCLayer
andMLCLossLayer
andMLCYOLOLossLayer
- A YOLO loss layer
Functions§
- MLCActivation
Type ⚠Debug Description Deprecated MLCTypes
- MLCArithmetic
Operation ⚠Debug Description Deprecated MLCTypes
- MLCComparison
Operation ⚠Debug Description Deprecated MLCTypes
- MLCConvolution
Type ⚠Debug Description Deprecated MLCTypes
- MLCGradient
Clipping ⚠Type Debug Description Deprecated MLCTypes
- MLCLSTM
Result ⚠Mode Debug Description Deprecated MLCTypes
- MLCLoss
Type ⚠Debug Description Deprecated MLCTypes
- MLCPadding
Policy ⚠Debug Description Deprecated MLCTypes
- MLCPadding
Type ⚠Debug Description Deprecated MLCTypes
- MLCPooling
Type ⚠Debug Description Deprecated MLCTypes
- MLCReduction
Type ⚠Debug Description Deprecated MLCTypes
- MLCSample
Mode ⚠Debug Description Deprecated MLCTypes
- MLCSoftmax
Operation ⚠Debug Description Deprecated MLCTypes
Type Aliases§
- MLCGraph
Completion Handler MLCTensor
andMLCTypes
andblock2
- A callback completion handler you execute when a graph finishes execution.