MPSGraph
The optimized representation of a compute graph of operations and tensors.
Declaration
class MPSGraphOverview
An MPSGraph is a symbolic representation of operations to be utilized to execute compute graphs on a device.
Topics
Initializers
Instance Properties
Instance Methods
GRU(_:recurrentWeight:inputWeight:bias:descriptor:name:)GRU(_:recurrentWeight:inputWeight:bias:initState:descriptor:name:)GRU(_:recurrentWeight:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:)GRUGradients(_:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:descriptor:name:)GRUGradients(_:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:initState:descriptor:name:)GRUGradients(_:recurrentWeight:sourceGradient:zState:outputFwd:stateGradient:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:)HammingDistance(primary:secondary:resultDataType:name:)HermiteanToRealFFT(_:axes:descriptor:name:)HermiteanToRealFFT(_:axesTensor:descriptor:name:)L2NormPooling4D(_:descriptor:name:)L2NormPooling4DGradient(_:source:descriptor:name:)LSTM(_:recurrentWeight:initState:initCell:descriptor:name:)LSTM(_:recurrentWeight:inputWeight:bias:initState:initCell:descriptor:name:)LSTM(_:recurrentWeight:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:)LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:descriptor:name:)LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:descriptor:name:)LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:mask:descriptor:name:)LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:stateGradient:cellGradient:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:)absolute(with:name:)absoluteSquare(tensor:name:)acos(with:name:)acosh(with:name:)adam(currentLearningRate:beta1:beta2:epsilon:values:momentum:velocity:maximumVelocity:gradient:name:)adam(learningRate:beta1:beta2:epsilon:beta1Power:beta2Power:values:momentum:velocity:maximumVelocity:gradient:name:)addition(_:_:name:)applyStochasticGradientDescent(learningRate:variable:gradient:name:)argSort(_:axis:descending:name:)argSort(_:axis:name:)argSort(_:axisTensor:descending:name:)argSort(_:axisTensor:name:)asin(with:name:)asinh(with:name:)assign(_:tensor:name:)atan(with:name:)atan2(withPrimaryTensor:secondaryTensor:name:)atanh(with:name:)avgPooling2D(withSourceTensor:descriptor:name:)avgPooling2DGradient(withGradientTensor:sourceTensor:descriptor:name:)avgPooling4D(_:descriptor:name:)avgPooling4DGradient(_:source:descriptor:name:)bandPart(_:numLower:numUpper:name:)bandPart(_:numLowerTensor:numUpperTensor:name:)batchToSpace(_:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:)batchToSpace(_:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:)bitwiseAND(_:_:name:)bitwiseLeftShift(_:_:name:)bitwiseNOT(_:name:)bitwiseOR(_:_:name:)bitwisePopulationCount(_:name:)bitwiseRightShift(_:_:name:)bitwiseXOR(_:_:name:)bottomK(_:axis:k:name:)bottomK(_:axisTensor:kTensor:name:)bottomKGradient(_:source:axis:k:name:)bottomKGradient(_:source:axisTensor:kTensor:name:)broadcast(_:shape:name:)broadcast(_:shapeTensor:name:)call(symbolName:inputTensors:outputTypes:name:)cast(_:to:name:)ceil(with:name:)clamp(_:min:max:name:)colToIm(_:outputShape:descriptor:name:)compile(with:feeds:targetTensors:targetOperations:compilationDescriptor:)complexConstant(realPart:imaginaryPart:)complexConstant(realPart:imaginaryPart:dataType:)complexConstant(realPart:imaginaryPart:shape:dataType:)complexTensor(realTensor:imaginaryTensor:name:)concatTensor(_:with:dimension:name:)concatTensors(_:dimension:interleave:name:)concatTensors(_:dimension:name:)conjugate(tensor:name:)constant(_:dataType:)constant(_:shape:dataType:)constant(_:shape:dataType:)controlDependency(with:dependentBlock:name:)convolution2D(_:weights:descriptor:name:)convolution2DDataGradient(_:weights:outputShape:forwardConvolutionDescriptor:name:)convolution2DDataGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)convolution2DWeightsGradient(_:source:outputShape:forwardConvolutionDescriptor:name:)convolution2DWeightsGradient(_:source:outputShapeTensor:forwardConvolutionDescriptor:name:)convolution3D(_:weights:descriptor:name:)convolution3DDataGradient(_:weights:outputShape:forwardConvolutionDescriptor:name:)convolution3DDataGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)convolution3DWeightsGradient(_:source:outputShape:forwardConvolutionDescriptor:name:)convolution3DWeightsGradient(_:source:outputShapeTensor:forwardConvolutionDescriptor:name:)convolutionTranspose2D(_:weights:outputShape:descriptor:name:)convolutionTranspose2D(_:weights:outputShapeTensor:descriptor:name:)convolutionTranspose2DDataGradient(_:weights:outputShape:forwardConvolutionDescriptor:name:)convolutionTranspose2DDataGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)convolutionTranspose2DWeightsGradient(_:weights:outputShape:forwardConvolutionDescriptor:name:)convolutionTranspose2DWeightsGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)coordinate(alongAxis:withShape:name:)coordinate(alongAxis:withShapeTensor:name:)coordinate(alongAxisTensor:withShape:name:)coordinate(alongAxisTensor:withShapeTensor:name:)cos(with:name:)cosh(with:name:)cumulativeMaximum(_:axis:exclusive:reverse:name:)cumulativeMaximum(_:axis:name:)cumulativeMaximum(_:axisTensor:exclusive:reverse:name:)cumulativeMaximum(_:axisTensor:name:)cumulativeMinimum(_:axis:exclusive:reverse:name:)cumulativeMinimum(_:axis:name:)cumulativeMinimum(_:axisTensor:exclusive:reverse:name:)cumulativeMinimum(_:axisTensor:name:)cumulativeProduct(_:axis:exclusive:reverse:name:)cumulativeProduct(_:axis:name:)cumulativeProduct(_:axisTensor:exclusive:reverse:name:)cumulativeProduct(_:axisTensor:name:)cumulativeSum(_:axis:exclusive:reverse:name:)cumulativeSum(_:axis:name:)cumulativeSum(_:axisTensor:exclusive:reverse:name:)cumulativeSum(_:axisTensor:name:)depth(toSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:)depth(toSpace2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:)depthwiseConvolution2D(_:weights:descriptor:name:)depthwiseConvolution2DDataGradient(_:weights:outputShape:descriptor:name:)depthwiseConvolution2DWeightsGradient(_:source:outputShape:descriptor:name:)depthwiseConvolution3D(_:weights:descriptor:name:)depthwiseConvolution3DDataGradient(_:weights:outputShape:descriptor:name:)depthwiseConvolution3DWeightsGradient(_:source:outputShape:descriptor:name:)dequantize(_:LUTTensor:axis:name:)dequantize(_:LUTTensor:name:)dequantize(_:scale:zeroPoint:dataType:name:)dequantize(_:scaleTensor:dataType:name:)dequantize(_:scaleTensor:zeroPoint:dataType:axis:name:)dequantize(_:scaleTensor:zeroPointTensor:dataType:axis:name:)dequantize(_:scaleTensor:zeroPointTensor:dataType:name:)division(_:_:name:)divisionNoNaN(_:_:name:)dropout(_:rate:name:)dropout(_:rate:name:)encode(to:feeds:targetOperations:resultsDictionary:executionDescriptor:)encode(to:feeds:targetTensors:targetOperations:executionDescriptor:)equal(_:_:name:)erf(with:name:)expandDims(_:axes:name:)expandDims(_:axesTensor:name:)expandDims(_:axis:name:)exponent(with:name:)exponentBase10(with:name:)exponentBase2(with:name:)fastFourierTransform(_:axes:descriptor:name:)fastFourierTransform(_:axesTensor:descriptor:name:)flatten2D(_:axis:name:)flatten2D(_:axisTensor:name:)floor(with:name:)floorModulo(_:_:name:)for(lowerBound:upperBound:step:initialBodyArguments:body:name:)for(numberOfIterations:initialBodyArguments:body:name:)gather(withUpdatesTensor:indicesTensor:axis:batchDimensions:name:)gatherAlongAxis(_:updates:indices:name:)gatherAlongAxisTensor(_:updates:indices:name:)gatherND(withUpdatesTensor:indicesTensor:batchDimensions:name:)gradients(of:with:name:)greaterThan(_:_:name:)greaterThanOrEqualTo(_:_:name:)identity(with:name:)if(_:then:else:name:)imToCol(_:descriptor:name:)imaginaryPartOfTensor(tensor:name:)inverse(input:name:)isFinite(with:name:)isInfinite(with:name:)isNaN(with:name:)leakyReLU(with:alpha:name:)leakyReLU(with:alphaTensor:name:)leakyReLUGradient(withIncomingGradient:sourceTensor:alphaTensor:name:)lessThan(_:_:name:)lessThanOrEqualTo(_:_:name:)logarithm(with:name:)logarithmBase10(with:name:)logarithmBase2(with:name:)logicalAND(_:_:name:)logicalNAND(_:_:name:)logicalNOR(_:_:name:)logicalOR(_:_:name:)logicalXNOR(_:_:name:)logicalXOR(_:_:name:)matrixMultiplication(primary:secondary:name:)maxPooling2D(withSourceTensor:descriptor:name:)maxPooling2DGradient(withGradientTensor:indicesTensor:outputShape:descriptor:name:)maxPooling2DGradient(withGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:)maxPooling2DGradient(withGradientTensor:sourceTensor:descriptor:name:)maxPooling2DReturnIndices(_:descriptor:name:)maxPooling4D(_:descriptor:name:)maxPooling4DGradient(_:source:descriptor:name:)maxPooling4DGradient(withGradientTensor:indicesTensor:outputShape:descriptor:name:)maxPooling4DGradient(withGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:)maxPooling4DReturnIndices(_:descriptor:name:)maximum(_:_:name:)maximumWithNaNPropagation(_:_:name:)mean(of:axes:name:)minimum(_:_:name:)minimumWithNaNPropagation(_:_:name:)modulo(_:_:name:)multiplication(_:_:name:)negative(with:name:)nonMaximumSuppression(withBoxesTensor:scoresTensor:classIndicesTensor:iouThreshold:scoreThreshold:perClassSuppression:coordinateMode:name:)nonMaximumSuppression(withBoxesTensor:scoresTensor:iouThreshold:scoreThreshold:perClassSuppression:coordinateMode:name:)nonZeroIndices(_:name:)normalizationBetaGradient(withIncomingGradientTensor:sourceTensor:reductionAxes:name:)normalizationGammaGradient(withIncomingGradientTensor:sourceTensor:mean:varianceTensor:reductionAxes:epsilon:name:)normalizationGradient(withIncomingGradientTensor:sourceTensor:mean:varianceTensor:gammaTensor:gammaGradientTensor:betaGradientTensor:reductionAxes:epsilon:name:)normalize(_:mean:variance:gamma:beta:epsilon:name:)not(with:name:)notEqual(_:_:name:)oneHot(withIndicesTensor:depth:axis:dataType:name:)oneHot(withIndicesTensor:depth:axis:dataType:onValue:offValue:name:)oneHot(withIndicesTensor:depth:axis:name:)oneHot(withIndicesTensor:depth:dataType:name:)oneHot(withIndicesTensor:depth:dataType:onValue:offValue:name:)oneHot(withIndicesTensor:depth:name:)padGradient(withIncomingGradientTensor:sourceTensor:paddingMode:leftPadding:rightPadding:name:)padTensor(_:with:leftPadding:rightPadding:constantValue:name:)placeholder(shape:dataType:name:)placeholder(shape:name:)planarTensor(tensor:name:)power(_:_:name:)quantize(_:scale:zeroPoint:dataType:name:)quantize(_:scaleTensor:zeroPoint:dataType:axis:name:)quantize(_:scaleTensor:zeroPointTensor:dataType:axis:name:)randomPhiloxStateTensor(withCounterLow:counterHigh:key:name:)randomPhiloxStateTensor(withSeed:name:)randomTensor(withShape:descriptor:name:)randomTensor(withShape:descriptor:seed:name:)randomTensor(withShape:descriptor:stateTensor:name:)randomTensor(withShapeTensor:descriptor:name:)randomTensor(withShapeTensor:descriptor:seed:name:)randomTensor(withShapeTensor:descriptor:stateTensor:name:)randomUniformTensor(withShape:name:)randomUniformTensor(withShape:seed:name:)randomUniformTensor(withShape:stateTensor:name:)randomUniformTensor(withShapeTensor:name:)randomUniformTensor(withShapeTensor:seed:name:)randomUniformTensor(withShapeTensor:stateTensor:name:)reLU(with:name:)reLUGradient(withIncomingGradient:sourceTensor:name:)read(_:name:)realPartOfTensor(tensor:name:)realToHermiteanFFT(_:axes:descriptor:name:)realToHermiteanFFT(_:axesTensor:descriptor:name:)reciprocal(with:name:)reciprocalSquareRoot(_:name:)reductionAnd(with:axes:name:)reductionAnd(with:axis:name:)reductionArgMaximum(with:axis:name:)reductionArgMinimum(with:axis:name:)reductionMaximum(with:axes:name:)reductionMaximum(with:axis:name:)reductionMaximumPropagateNaN(with:axes:name:)reductionMaximumPropagateNaN(with:axis:name:)reductionMinimum(with:axes:name:)reductionMinimum(with:axis:name:)reductionMinimumPropagateNaN(with:axes:name:)reductionMinimumPropagateNaN(with:axis:name:)reductionOr(with:axes:name:)reductionOr(with:axis:name:)reductionProduct(with:axes:name:)reductionProduct(with:axis:name:)reductionSum(with:axes:name:)reductionSum(with:axis:name:)reinterpretCast(_:to:name:)reshape(_:shape:name:)reshape(_:shapeTensor:name:)resize(_:size:mode:centerResult:alignCorners:layout:name:)resize(_:sizeTensor:mode:centerResult:alignCorners:layout:name:)resize(_:sizeTensor:mode:centerResult:alignCorners:name:)resize(_:sizeTensor:scaleOffsetTensor:mode:layout:name:)resize(_:sizeTensor:scaleTensor:offsetTenor:mode:name:)resize(withGradientTensor:input:mode:centerResult:alignCorners:layout:name:)resize(withGradientTensor:input:scale:offsetTensor:mode:name:)resize(withGradientTensor:input:scaleOffsetTensor:mode:layout:name:)resizeBilinear(_:sizeTensor:centerResult:alignCorners:layout:name:)resizeBilinear(_:sizeTensor:centerResult:alignCorners:name:)resizeBilinear(_:sizeTensor:scaleOffsetTensor:layout:name:)resizeBilinear(_:sizeTensor:scaleTensor:offsetTensor:name:)resizeBilinear(withGradientTensor:input:centerResult:alignCorners:layout:name:)resizeBilinear(withGradientTensor:input:scale:offsetTensor:name:)resizeBilinear(withGradientTensor:input:scaleOffsetTensor:layout:name:)resizeNearest(_:sizeTensor:nearestRoundingMode:centerResult:alignCorners:layout:name:)resizeNearest(_:sizeTensor:nearestRoundingMode:centerResult:alignCorners:name:)resizeNearest(_:sizeTensor:scaleOffsetTensor:nearestRoundingMode:layout:name:)resizeNearest(_:sizeTensor:scaleTensor:offsetTensor:nearestRoundingMode:name:)resizeNearest(withGradientTensor:input:nearestRoundingMode:centerResult:alignCorners:layout:name:)resizeNearest(withGradientTensor:input:scale:offsetTensor:nearestRoundingMode:name:)resizeNearest(withGradientTensor:input:scaleOffsetTensor:nearestRoundingMode:layout:name:)reverse(_:axes:name:)reverse(_:axesTensor:name:)reverse(_:name:)reverseSquareRoot(with:name:)rint(with:name:)round(with:name:)run(feeds:targetTensors:targetOperations:)run(with:feeds:targetOperations:resultsDictionary:)run(with:feeds:targetTensors:targetOperations:)runAsync(feeds:targetTensors:targetOperations:executionDescriptor:)runAsync(with:feeds:targetOperations:resultsDictionary:executionDescriptor:)runAsync(with:feeds:targetTensors:targetOperations:executionDescriptor:)sampleGrid(withSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name:)sampleGrid(withSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name:)scaledDotProductAttention(query:key:value:mask:scale:name:)scaledDotProductAttention(query:key:value:scale:name:)scatter(_:indices:shape:axis:mode:name:)scatterAlongAxis(_:data:updates:indices:mode:name:)scatterAlongAxis(_:updates:indices:shape:mode:name:)scatterAlongAxisTensor(_:data:updates:indices:mode:name:)scatterAlongAxisTensor(_:updates:indices:shape:mode:name:)scatterND(withUpdatesTensor:indicesTensor:shape:batchDimensions:mode:name:)scatterND(withUpdatesTensor:indicesTensor:shape:batchDimensions:name:)scatterNDWithData(_:updates:indices:batchDimensions:mode:name:)scatterWithData(_:updates:indices:axis:mode:name:)select(predicate:trueTensor:falseTensor:name:)shapeOf(_:name:)sigmoid(with:name:)sigmoidGradient(withIncomingGradient:sourceTensor:name:)sign(with:name:)signbit(with:name:)sin(with:name:)singleGateRNN(_:recurrentWeight:initState:descriptor:name:)singleGateRNN(_:recurrentWeight:inputWeight:bias:initState:descriptor:name:)singleGateRNN(_:recurrentWeight:inputWeight:bias:initState:mask:descriptor:name:)singleGateRNNGradients(_:recurrentWeight:sourceGradient:zState:initState:descriptor:name:)singleGateRNNGradients(_:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:descriptor:name:)singleGateRNNGradients(_:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:mask:descriptor:name:)singleGateRNNGradients(_:recurrentWeight:sourceGradient:zState:stateGradient:inputWeight:bias:initState:mask:descriptor:name:)sinh(with:name:)sliceGradientTensor(_:fwdInShapeTensor:start:end:strideTensor:startMask:endMask:squeezeMask:name:)sliceGradientTensor(_:fwdInShapeTensor:start:sizeTensor:squeezeMask:name:)sliceGradientTensor(_:fwdInShapeTensor:starts:ends:strides:name:)sliceGradientTensor(_:fwdInShapeTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:)sliceTensor(_:dimension:start:length:name:)sliceTensor(_:start:end:strideTensor:startMask:endMask:squeezeMask:name:)sliceTensor(_:start:sizeTensor:squeezeMask:name:)sliceTensor(_:starts:ends:strides:name:)sliceTensor(_:starts:ends:strides:startMask:endMask:squeezeMask:name:)sliceUpdateDataTensor(_:update:starts:ends:strides:name:)sliceUpdateDataTensor(_:update:starts:ends:strides:startMask:endMask:squeezeMask:name:)sliceUpdateDataTensor(_:update:startsTensor:endsTensor:stridesTensor:name:)sliceUpdateDataTensor(_:update:startsTensor:endsTensor:stridesTensor:startMask:endMask:squeezeMask:name:)softMax(with:axis:name:)softMaxCrossEntropy(_:labels:axis:reuctionType:name:)softMaxCrossEntropyGradient(_:source:labels:axis:reuctionType:name:)softMaxGradient(withIncomingGradient:sourceTensor:axis:name:)sort(_:axis:descending:name:)sort(_:axis:name:)sort(_:axisTensor:descending:name:)sort(_:axisTensor:name:)space(toDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:)space(toDepth2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:)spaceToBatch(_:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:)spaceToBatch(_:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:)sparseTensor(sparseTensorWithDescriptor:tensors:shape:name:)sparseTensor(sparseTensorWithType:tensors:shape:dataType:name:)split(_:numSplits:axis:name:)split(_:splitSizes:axis:name:)split(_:splitSizesTensor:axis:name:)square(with:name:)squareRoot(with:name:)squeeze(_:axes:name:)squeeze(_:axesTensor:name:)squeeze(_:axis:name:)squeeze(_:name:)stack(_:axis:name:)stencil(withSourceTensor:weightsTensor:descriptor:name:)stochasticGradientDescent(learningRate:values:gradient:name:)subtraction(_:_:name:)tan(with:name:)tanh(with:name:)tileGradient(withIncomingGradientTensor:sourceTensor:withMultiplier:name:)tileTensor(_:withMultiplier:name:)topK(_:axis:k:name:)topK(_:axisTensor:kTensor:name:)topK(_:k:name:)topK(_:kTensor:name:)topKGradient(_:input:k:name:)topKGradient(_:input:kTensor:name:)topKGradient(_:source:axis:k:name:)topKGradient(_:source:axisTensor:kTensor:name:)transpose(_:permutation:name:)transposeTensor(_:dimension:withDimension:name:)truncate(_:name:)variable(with:shape:dataType:name:)variableFromTensor(_:name:)variance(of:axes:name:)variance(of:mean:axes:name:)while(initialInputs:before:after:name:)
Type Methods
See Also
Classes
MPSGraphCompilationDescriptorMPSGraphConvolution2DOpDescriptorMPSGraphConvolution3DOpDescriptorMPSGraphCreateSparseOpDescriptorMPSGraphDepthwiseConvolution2DOpDescriptorMPSGraphDepthwiseConvolution3DOpDescriptorMPSGraphDeviceMPSGraphExecutableMPSGraphExecutableExecutionDescriptorMPSGraphExecutableSerializationDescriptorMPSGraphExecutionDescriptorMPSGraphFFTDescriptorMPSGraphGRUDescriptorMPSGraphImToColOpDescriptorMPSGraphLSTMDescriptor