Expand description
§Bindings to the MetalPerformanceShadersGraph
framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- MPSGraph
MPSGraph
andMPSGraphCore
- The optimized representation of a compute graph of operations and tensors.
- MPSGraph
Compilation Descriptor MPSGraph
andMPSGraphCore
- A class that consists of all the levers for compiling graphs.
- MPSGraph
Convolution2D OpDescriptor MPSGraphConvolutionOps
andMPSGraphCore
- A class that describes the properties of a 2D-convolution operator.
- MPSGraph
Convolution3D OpDescriptor MPSGraphConvolutionOps
andMPSGraphCore
- A class that describes the properties of a 3D-convolution operator.
- MPSGraph
Create Sparse OpDescriptor MPSGraphCore
andMPSGraphSparseOps
- A class that describes the properties of a create sparse operation.
- MPSGraph
Deployment Platform MPSGraphExecutable
- The options available to a graph.
- MPSGraph
Depthwise Convolution2D OpDescriptor MPSGraphCore
andMPSGraphDepthwiseConvolutionOps
- A class that defines the parameters for a 2D-depthwise convolution operation.
- MPSGraph
Depthwise Convolution3D OpDescriptor MPSGraphCore
andMPSGraphDepthwiseConvolutionOps
- The class that defines the parameters for a 3D-depthwise convolution operation.
- MPSGraph
Device MPSGraphCore
andMPSGraphDevice
- A class that describes the compute device.
- MPSGraph
Device Type MPSGraphDevice
- The device type.
- MPSGraph
Executable MPSGraphCore
andMPSGraphExecutable
- The compiled representation of a compute graph executable.
- MPSGraph
Executable Execution Descriptor MPSGraphCore
andMPSGraphExecutable
- A class that consists of all the levers to synchronize and schedule executable execution.
- MPSGraph
Executable Serialization Descriptor MPSGraphCore
andMPSGraphExecutable
- A class that consists of all the levers to serialize an executable.
- MPSGraph
Execution Descriptor MPSGraph
andMPSGraphCore
- A class that consists of all the levers to synchronize and schedule graph execution.
- MPSGraph
Execution Stage MPSGraph
- Execution events that can be used with shared events.
- MPSGraphFFT
Descriptor MPSGraphCore
andMPSGraphFourierTransformOps
- The class that defines the parameters for a fast Fourier transform (FFT) operation.
- MPSGraphFFT
Scaling Mode MPSGraphFourierTransformOps
- The scaling modes for Fourier transform operations.
- MPSGraphGRU
Descriptor MPSGraphCore
andMPSGraphRNNOps
- The class that defines the parameters for a gated recurrent unit (GRU) operation.
- MPSGraph
ImTo ColOp Descriptor MPSGraphCore
andMPSGraphImToColOps
- The class that defines the parameters for an image to column or column to image operation.
- MPSGraphLSTM
Descriptor MPSGraphCore
andMPSGraphRNNOps
- The class that defines the parameters for a long short-term memory (LSTM) operation.
- MPSGraph
Loss Reduction Type MPSGraphLossOps
- The type of the reduction the graph applies in the loss operations.
- MPSGraph
NonMaximum Suppression Coordinate Mode MPSGraphNonMaximumSuppressionOps
- The non-maximum suppression coordinate mode.
- MPSGraph
Object MPSGraphCore
- The common base class for all Metal Performance Shaders Graph objects.
- MPSGraph
Operation MPSGraphCore
andMPSGraphOperation
- A symbolic representation of a compute operation.
- MPSGraph
Optimization MPSGraph
- The optimization levels to trade compilation time for even more runtime performance by running more passes.
- MPSGraph
Optimization Profile MPSGraph
- The optimization profile used as a heuristic as the graph compiler optimizes the network.
- MPSGraph
Options MPSGraph
- The options available to a graph.
- MPSGraph
Padding Mode MPSGraphCore
- The tensor padding mode.
- MPSGraph
Padding Style MPSGraphCore
- The tensor padding style.
- MPSGraph
Pooling2D OpDescriptor MPSGraphCore
andMPSGraphPoolingOps
- The class that defines the parameters for a 2D pooling operation.
- MPSGraph
Pooling4D OpDescriptor MPSGraphCore
andMPSGraphPoolingOps
- The class that defines the parameters for a 4D pooling operation.
- MPSGraph
Pooling Return Indices Mode MPSGraphPoolingOps
- The flattening mode for returned indices with max-pooling.
- MPSGraphRNN
Activation MPSGraphRNNOps
- The activation modes for RNN operations.
- MPSGraph
Random Distribution MPSGraphRandomOps
- The distributions supported by random operations.
- MPSGraph
Random Normal Sampling Method MPSGraphRandomOps
- The sampling method to use when generating values in the normal distribution.
- MPSGraph
Random OpDescriptor MPSGraphCore
andMPSGraphRandomOps
- A class that describes the random operation.
- MPSGraph
Reduced Precision Fast Math MPSGraph
- MPSGraph could use these reduced precision paths to deliver faster math, but it is not guaranteed.
- MPSGraph
Reduction Mode MPSGraphCore
- The reduction mode.
- MPSGraph
Resize Mode MPSGraphResizeOps
- The resize mode to use for resizing.
- MPSGraph
Resize Nearest Rounding Mode MPSGraphResizeOps
- The rounding mode to use when using nearest resize mode.
- MPSGraph
Scatter Mode MPSGraphScatterNDOps
- The scatter mode.
- MPSGraph
Shaped Type MPSGraphCore
- The shaped type class for types on tensors with a shape and data type.
- MPSGraph
Single GateRNN Descriptor MPSGraphCore
andMPSGraphRNNOps
- The class that defines the parameters for a single gate RNN operation.
- MPSGraph
Sparse Storage Type MPSGraphSparseOps
- The sparse storage options in the Metal Performance Shaders Graph framework.
- MPSGraph
Stencil OpDescriptor MPSGraphCore
andMPSGraphStencilOps
- The class that defines the parameters for a stencil operation.
- MPSGraph
Tensor MPSGraphCore
andMPSGraphTensor
- The symbolic representation of a compute data type.
- MPSGraph
Tensor Data MPSGraphCore
andMPSGraphTensorData
- The representation of a compute data type.
- MPSGraph
Tensor Named Data Layout MPSGraphCore
- The tensor layout.
- MPSGraph
Type MPSGraphCore
- The base type class for types on tensors.
- MPSGraph
Variable Op MPSGraphCore
andMPSGraphMemoryOps
andMPSGraphOperation
- The class that defines the parameters for a variable.
Type Aliases§
- MPSGraph
Callable Map MPSGraph
andMPSGraphCore
andMPSGraphExecutable
- A dictionary of symbol names and the corresponding executables for them.
- MPSGraph
Compilation Completion Handler MPSGraph
andMPSGraphCore
andMPSGraphExecutable
andblock2
- A notification that appears when compilation finishes.
- MPSGraph
Completion Handler MPSGraph
andMPSGraphCore
andMPSGraphTensor
andMPSGraphTensorData
andblock2
- A notification that appears when graph execution finishes.
- MPSGraph
Control Flow Dependency Block MPSGraphControlFlowOps
andMPSGraphCore
andMPSGraphTensor
andblock2
- The scope where all the operations defined in this block get control-dependency operations.
- MPSGraph
Executable Completion Handler MPSGraphCore
andMPSGraphExecutable
andMPSGraphTensorData
andblock2
- A notification when graph executable execution finishes.
- MPSGraph
Executable Scheduled Handler MPSGraphCore
andMPSGraphExecutable
andMPSGraphTensorData
andblock2
- A notification when graph executable execution schedules.
- MPSGraph
ForLoop Body Block MPSGraphControlFlowOps
andMPSGraphCore
andMPSGraphTensor
andblock2
- A block for the body in the for loop.
- MPSGraph
IfThen Else Block MPSGraphControlFlowOps
andMPSGraphCore
andMPSGraphTensor
andblock2
- A block of operations executed under either the if or else condition.
- MPSGraph
Scheduled Handler MPSGraph
andMPSGraphCore
andMPSGraphTensor
andMPSGraphTensorData
andblock2
- A notification that appears when graph execution schedules.
- MPSGraph
Tensor Data Dictionary MPSGraph
andMPSGraphCore
andMPSGraphTensor
andMPSGraphTensorData
- A dictionary of tensors and corresponding tensor data.
- MPSGraph
Tensor Shaped Type Dictionary MPSGraph
andMPSGraphCore
andMPSGraphTensor
- A dictionary of tensors and corresponding shapes for them.
- MPSGraph
While After Block MPSGraphControlFlowOps
andMPSGraphCore
andMPSGraphTensor
andblock2
- The block that executes after the condition evaluates for each iteration.
- MPSGraph
While Before Block MPSGraphControlFlowOps
andMPSGraphCore
andMPSGraphTensor
andblock2
- The block that executes before the condition evaluates for each iteration.