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 MLCActivationLayerandMLCLayer - Apple’s documentation
- MLCActivation
Type MLCTypes - An activation type that you specify for an activation descriptor.
- MLCAdam
Optimizer Deprecated MLCAdamOptimizerandMLCOptimizer - The MLCAdamOptimizer specifies the Adam optimizer.
- MLCAdamW
Optimizer Deprecated MLCAdamWOptimizerandMLCOptimizer - The MLCAdamWOptimizer specifies the AdamW optimizer.
- MLCArithmetic
Layer Deprecated MLCArithmeticLayerandMLCLayer - An arithmetic layer
- MLCArithmetic
Operation MLCTypes - The list of supported arithmetic operations.
- MLCBatch
Normalization Layer Deprecated MLCBatchNormalizationLayerandMLCLayer - A batch normalizaion layer
- MLCComparison
Layer Deprecated MLCComparisonLayerandMLCLayer - Compare layer.
- MLCComparison
Operation MLCTypes - A comparison operation.
- MLCConcatenation
Layer Deprecated MLCConcatenationLayerandMLCLayer - A concatenation layer
- MLCConvolution
Descriptor Deprecated MLCConvolutionDescriptor - The MLCConvolutionDescriptor specifies a convolution descriptor
- MLCConvolution
Layer Deprecated MLCConvolutionLayerandMLCLayer - 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 MLCDropoutLayerandMLCLayer - A dropout layer
- MLCEmbedding
Descriptor Deprecated MLCEmbeddingDescriptor - The MLCEmbeddingDescriptor specifies an embedding layer descriptor
- MLCEmbedding
Layer Deprecated MLCEmbeddingLayerandMLCLayer - 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 MLCFullyConnectedLayerandMLCLayer - A fully connected layer a.k.a a dense layer
- MLCGather
Layer Deprecated MLCGatherLayerandMLCLayer - A gather layer
- MLCGradient
Clipping Type MLCTypes - The type of clipping applied to gradient
- MLCGram
Matrix Layer Deprecated MLCGramMatrixLayerandMLCLayer - 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 MLCGroupNormalizationLayerandMLCLayer - A group normalizaion layer. For more information, refer to https://pytorch.org/docs/stable/nn.html#groupnorm
- MLCInference
Graph Deprecated MLCGraphandMLCInferenceGraph - An inference graph created from one or more MLCGraph objects plus additional layers added directly to the inference graph.
- MLCInstance
Normalization Layer Deprecated MLCInstanceNormalizationLayerandMLCLayer - 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 MLCLSTMLayerandMLCLayer - 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 MLCLayerandMLCLayerNormalizationLayer - 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 MLCLayerandMLCLossLayer - A loss layer
- MLCLoss
Type MLCTypes - A loss function.
- MLCMat
MulDescriptor Deprecated MLCMatMulDescriptor - The MLCMatMulDescriptor specifies a batched matrix multiplication descriptor
- MLCMat
MulLayer Deprecated MLCLayerandMLCMatMulLayer - A batched matrix multiplication layer
- MLCMultihead
Attention Descriptor Deprecated MLCMultiheadAttentionDescriptor - The MLCMultiheadAttentionDescriptor specifies a Multi-Head Attention descriptor
- MLCMultihead
Attention Layer Deprecated MLCLayerandMLCMultiheadAttentionLayer - 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 MLCLayerandMLCPaddingLayer - 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 MLCLayerandMLCPoolingLayer - A pooling layer
- MLCPooling
Type MLCTypes - A pooling function type for a pooling layer.
- MLCRMS
Prop Optimizer Deprecated MLCOptimizerandMLCRMSPropOptimizer - 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 MLCLayerandMLCReductionLayer - 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 MLCLayerandMLCReshapeLayer - A reshape layer.
- MLCSGD
Optimizer Deprecated MLCOptimizerandMLCSGDOptimizer - The MLCSGDOptimizer specifies a stochastic gradient descent optimizer.
- MLCSample
Mode MLCTypes - A sampling mode for an upsample layer.
- MLCScatter
Layer Deprecated MLCLayerandMLCScatterLayer - A scatter layer
- MLCSelection
Layer Deprecated MLCLayerandMLCSelectionLayer - Selection layer is used to select elements from two tensors
- MLCSlice
Layer Deprecated MLCLayerandMLCSliceLayer - Slice layer is used to slice a given source.
- MLCSoftmax
Layer Deprecated MLCLayerandMLCSoftmaxLayer - A softmax layer
- MLCSoftmax
Operation MLCTypes - A softmax operation.
- MLCSplit
Layer Deprecated MLCLayerandMLCSplitLayer - 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 MLCGraphandMLCTrainingGraph - A training graph created from one or more MLCGraph objects plus additional layers added directly to the training graph.
- MLCTranspose
Layer Deprecated MLCLayerandMLCTransposeLayer - A transpose layer
- MLCUpsample
Layer Deprecated MLCLayerandMLCUpsampleLayer - An upsample layer
- MLCYOLO
Loss Descriptor Deprecated MLCYOLOLossDescriptor - The MLCYOLOLossDescriptor specifies a YOLO loss filter descriptor.
- MLCYOLO
Loss Layer Deprecated MLCLayerandMLCLossLayerandMLCYOLOLossLayer - 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 MLCTensorandMLCTypesandblock2 - A callback completion handler you execute when a graph finishes execution.