MetalPerformanceShadersGraph iOS 13.6 to 14.0 API Differences
MPSGraph.h
Added
MPSGraphOptions
Added
MPSGraphOptionsNone
Added
MPSGraphOptionsSynchronizeResults
Added
MPSGraphOptionsVerbose
Added
MPSGraphOptionsDefault
Added
MPSGraphTensorDataDictionary
Added
MPSGraphTensorShapedTypeDictionary
Added
MPSGraphCompletionHandler
Added
MPSGraphScheduledHandler
Added
MPSGraphExecutionDescriptor
Added
MPSGraphExecutionDescriptor.scheduledHandler
Added
MPSGraphExecutionDescriptor.completionHandler
Added
MPSGraphExecutionDescriptor.waitUntilCompleted
Added
MPSGraph
Added
MPSGraph.options
Added
+[MPSGraph new]
Added
-[MPSGraph init]
Added
MPSGraph.placeholderTensors
Added
-[MPSGraph runWithFeeds:targetTensors:targetOperations:]
Added
-[MPSGraph runWithMTLCommandQueue:feeds:targetTensors:targetOperations:]
Added
-[MPSGraph runWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:]
Added
-[MPSGraph runAsyncWithFeeds:targetTensors:targetOperations:executionDescriptor:]
Added
-[MPSGraph runAsyncWithMTLCommandQueue:feeds:targetTensors:targetOperations:executionDescriptor:]
Added
-[MPSGraph runAsyncWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:executionDescriptor:]
Added
-[MPSGraph encodeToCommandBuffer:feeds:targetTensors:targetOperations:executionDescriptor:]
Added
-[MPSGraph encodeToCommandBuffer:feeds:targetOperations:resultsDictionary:executionDescriptor:]
MPSGraphActivationOps.h
Added
-[MPSGraph reLUWithTensor:name:]
Added
-[MPSGraph reLUGradientWithIncomingGradient:sourceTensor:name:]
Added
-[MPSGraph sigmoidWithTensor:name:]
Added
-[MPSGraph sigmoidGradientWithIncomingGradient:sourceTensor:name:]
Added
-[MPSGraph softMaxWithTensor:axis:name:]
Added
-[MPSGraph softMaxGradientWithIncomingGradient:sourceTensor:axis:name:]
MPSGraphArithmeticOps.h
Added
-[MPSGraph identityWithTensor:name:]
Added
-[MPSGraph exponentWithTensor:name:]
Added
-[MPSGraph exponentBase2WithTensor:name:]
Added
-[MPSGraph exponentBase10WithTensor:name:]
Added
-[MPSGraph logarithmWithTensor:name:]
Added
-[MPSGraph logarithmBase2WithTensor:name:]
Added
-[MPSGraph logarithmBase10WithTensor:name:]
Added
-[MPSGraph squareWithTensor:name:]
Added
-[MPSGraph squareRootWithTensor:name:]
Added
-[MPSGraph reverseSquareRootWithTensor:name:]
Added
-[MPSGraph reciprocalWithTensor:name:]
Added
-[MPSGraph absoluteWithTensor:name:]
Added
-[MPSGraph negativeWithTensor:name:]
Added
-[MPSGraph signWithTensor:name:]
Added
-[MPSGraph signbitWithTensor:name:]
Added
-[MPSGraph ceilWithTensor:name:]
Added
-[MPSGraph floorWithTensor:name:]
Added
-[MPSGraph roundWithTensor:name:]
Added
-[MPSGraph rintWithTensor:name:]
Added
-[MPSGraph sinWithTensor:name:]
Added
-[MPSGraph cosWithTensor:name:]
Added
-[MPSGraph tanWithTensor:name:]
Added
-[MPSGraph sinhWithTensor:name:]
Added
-[MPSGraph coshWithTensor:name:]
Added
-[MPSGraph tanhWithTensor:name:]
Added
-[MPSGraph asinWithTensor:name:]
Added
-[MPSGraph acosWithTensor:name:]
Added
-[MPSGraph atanWithTensor:name:]
Added
-[MPSGraph asinhWithTensor:name:]
Added
-[MPSGraph acoshWithTensor:name:]
Added
-[MPSGraph atanhWithTensor:name:]
Added
-[MPSGraph notWithTensor:name:]
Added
-[MPSGraph isInfiniteWithTensor:name:]
Added
-[MPSGraph isFiniteWithTensor:name:]
Added
-[MPSGraph isNaNWithTensor:name:]
Added
-[MPSGraph erfWithTensor:name:]
Added
-[MPSGraph additionWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph subtractionWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph multiplicationWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph divisionWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph moduloWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph powerWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph minimumWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph maximumWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph equalWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph notEqualWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph lessThanWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph lessThanOrEqualToWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph greaterThanWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph greaterThanOrEqualToWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph logicalANDWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph logicalORWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph logicalNANDWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph logicalNORWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph logicalXORWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph logicalXNORWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph atan2WithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph selectWithPredicateTensor:truePredicateTensor:falsePredicateTensor:name:]
Added
-[MPSGraph clampWithTensor:minValueTensor:maxValueTensor:name:]
Added
-[MPSGraph divisionNoNaNWithPrimaryTensor:secondaryTensor:name:]
Added
-[MPSGraph floorModuloWithPrimaryTensor:secondaryTensor:name:]
MPSGraphAutomaticDifferentiation.h
Added
-[MPSGraph gradientForPrimaryTensor:withTensors:name:]
MPSGraphConvolutionOps.h
Added
MPSGraphConvolution2DOpDescriptor
Added
MPSGraphConvolution2DOpDescriptor.strideInX
Added
MPSGraphConvolution2DOpDescriptor.strideInY
Added
MPSGraphConvolution2DOpDescriptor.dilationRateInX
Added
MPSGraphConvolution2DOpDescriptor.dilationRateInY
Added
MPSGraphConvolution2DOpDescriptor.paddingLeft
Added
MPSGraphConvolution2DOpDescriptor.paddingRight
Added
MPSGraphConvolution2DOpDescriptor.paddingTop
Added
MPSGraphConvolution2DOpDescriptor.paddingBottom
Added
MPSGraphConvolution2DOpDescriptor.paddingStyle
Added
MPSGraphConvolution2DOpDescriptor.dataLayout
Added
MPSGraphConvolution2DOpDescriptor.weightsLayout
Added
MPSGraphConvolution2DOpDescriptor.groups
Added
+[MPSGraphConvolution2DOpDescriptor descriptorWithStrideInX:strideInY:dilationRateInX:dilationRateInY:groups:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:weightsLayout:]
Added
+[MPSGraphConvolution2DOpDescriptor descriptorWithStrideInX:strideInY:dilationRateInX:dilationRateInY:groups:paddingStyle:dataLayout:weightsLayout:]
Added
-[MPSGraphConvolution2DOpDescriptor setExplicitPaddingWithPaddingLeft:paddingRight:paddingTop:paddingBottom:]
Added
-[MPSGraph convolution2DWithSourceTensor:weightsTensor:descriptor:name:]
Added
-[MPSGraph convolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:forwardConvolutionDescriptor:name:]
Added
-[MPSGraph convolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:forwardConvolutionDescriptor:name:]
MPSGraphConvolutionTransposeOps.h
Added
-[MPSGraph convolutionTranspose2DWithSourceTensor:weightsTensor:outputShape:descriptor:name:]
Added
-[MPSGraph convolutionTranspose2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:forwardConvolutionDescriptor:name:]
Added
-[MPSGraph convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:forwardConvolutionDescriptor:name:]
MPSGraphCore.h
Added
MPSGraphShapedType
Added
MPSGraphShapedType.shape
Added
MPSGraphShapedType.dataType
Added
-[MPSGraphShapedType initWithShape:dataType:]
Added
-[MPSGraphShapedType isEqualTo:]
Added
MPSGraphTensorNamedDataLayout
Added
MPSGraphTensorNamedDataLayoutNCHW
Added
MPSGraphTensorNamedDataLayoutNHWC
Added
MPSGraphTensorNamedDataLayoutOIHW
Added
MPSGraphTensorNamedDataLayoutHWIO
Added
MPSGraphTensorNamedDataLayoutCHW
Added
MPSGraphTensorNamedDataLayoutHWC
Added
MPSGraphTensorNamedDataLayoutHW
Added
MPSGraphPaddingStyle
Added
MPSGraphPaddingStyleExplicit
Added
MPSGraphPaddingStyleTF_VALID
Added
MPSGraphPaddingStyleTF_SAME
Added
MPSGraphPaddingMode
Added
MPSGraphPaddingModeConstant
Added
MPSGraphPaddingModeReflect
Added
MPSGraphPaddingModeSymmetric
MPSGraphDepthwiseConvolutionOps.h
Added
MPSGraphDepthwiseConvolution2DOpDescriptor
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.strideInX
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.strideInY
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.dilationRateInX
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.dilationRateInY
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.paddingLeft
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.paddingRight
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.paddingTop
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.paddingBottom
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.paddingStyle
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.dataLayout
Added
MPSGraphDepthwiseConvolution2DOpDescriptor.weightsLayout
Added
+[MPSGraphDepthwiseConvolution2DOpDescriptor descriptorWithStrideInX:strideInY:dilationRateInX:dilationRateInY:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:weightsLayout:]
Added
+[MPSGraphDepthwiseConvolution2DOpDescriptor descriptorWithDataLayout:weightsLayout:]
Added
-[MPSGraphDepthwiseConvolution2DOpDescriptor setExplicitPaddingWithPaddingLeft:paddingRight:paddingTop:paddingBottom:]
Added
-[MPSGraph depthwiseConvolution2DWithSourceTensor:weightsTensor:descriptor:name:]
Added
-[MPSGraph depthwiseConvolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:]
Added
-[MPSGraph depthwiseConvolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:]
MPSGraphDevice.h
Added
MPSGraphDeviceType
Added
MPSGraphDeviceTypeMetal
Added
MPSGraphDevice
Added
MPSGraphDevice.type
Added
MPSGraphDevice.metalDevice
Added
+[MPSGraphDevice deviceWithMTLDevice:]
MPSGraphGatherNDOps.h
Added
-[MPSGraph gatherNDWithUpdatesTensor:indicesTensor:batchDimensions:name:]
MPSGraphGatherOps.h
Added
-[MPSGraph gatherWithUpdatesTensor:indicesTensor:axis:batchDimensions:name:]
MPSGraphLossOps.h
Added
MPSGraphLossReductionType
Added
MPSGraphLossReductionTypeAxis
Added
MPSGraphLossReductionTypeSum
Added
-[MPSGraph softMaxCrossEntropyWithSourceTensor:labelsTensor:axis:reductionType:name:]
Added
-[MPSGraph softMaxCrossEntropyGradientWithIncomingGradientTensor:sourceTensor:labelsTensor:axis:reductionType:name:]
MPSGraphMatrixMultiplicationOps.h
Added
-[MPSGraph matrixMultiplicationWithPrimaryTensor:secondaryTensor:name:]
MPSGraphMemoryOps.h
Added
MPSGraphVariableOp
Added
MPSGraphVariableOp.shape
Added
MPSGraphVariableOp.dataType
Added
-[MPSGraph placeholderWithShape:dataType:name:]
Added
-[MPSGraph placeholderWithShape:name:]
Added
-[MPSGraph constantWithData:shape:dataType:]
Added
-[MPSGraph constantWithScalar:shape:dataType:]
Added
-[MPSGraph variableWithData:shape:dataType:name:]
Added
-[MPSGraph readVariable:name:]
Added
-[MPSGraph assignVariable:withValueOfTensor:name:]
MPSGraphNormalizationOps.h
Added
-[MPSGraph meanOfTensor:axes:name:]
Added
-[MPSGraph varianceOfTensor:meanTensor:axes:name:]
Added
-[MPSGraph varianceOfTensor:axes:name:]
Added
-[MPSGraph normalizationWithTensor:meanTensor:varianceTensor:gammaTensor:betaTensor:epsilon:name:]
Added
-[MPSGraph normalizationGammaGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:reductionAxes:epsilon:name:]
Added
-[MPSGraph normalizationBetaGradientWithIncomingGradientTensor:sourceTensor:reductionAxes:name:]
Added
-[MPSGraph normalizationGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:gammaTensor:gammaGradientTensor:betaGradientTensor:reductionAxes:epsilon:name:]
MPSGraphOneHotOps.h
Added
-[MPSGraph oneHotWithIndicesTensor:depth:axis:dataType:onValue:offValue:name:]
Added
-[MPSGraph oneHotWithIndicesTensor:depth:dataType:onValue:offValue:name:]
Added
-[MPSGraph oneHotWithIndicesTensor:depth:axis:dataType:name:]
Added
-[MPSGraph oneHotWithIndicesTensor:depth:axis:name:]
Added
-[MPSGraph oneHotWithIndicesTensor:depth:dataType:name:]
Added
-[MPSGraph oneHotWithIndicesTensor:depth:name:]
MPSGraphOperation.h
Added
MPSGraphOperation
Added
MPSGraphOperation.inputTensors
Added
MPSGraphOperation.outputTensors
Added
MPSGraphOperation.controlDependencies
Added
MPSGraphOperation.graph
Added
MPSGraphOperation.name
MPSGraphOptimizerOps.h
Added
-[MPSGraph stochasticGradientDescentWithLearningRateTensor:valuesTensor:gradientTensor:name:]
Added
-[MPSGraph applyStochasticGradientDescentWithLearningRateTensor:variable:gradientTensor:name:]
MPSGraphPoolingOps.h
Added
MPSGraphPooling2DOpDescriptor
Added
MPSGraphPooling2DOpDescriptor.kernelWidth
Added
MPSGraphPooling2DOpDescriptor.kernelHeight
Added
MPSGraphPooling2DOpDescriptor.strideInX
Added
MPSGraphPooling2DOpDescriptor.strideInY
Added
MPSGraphPooling2DOpDescriptor.dilationRateInX
Added
MPSGraphPooling2DOpDescriptor.dilationRateInY
Added
MPSGraphPooling2DOpDescriptor.paddingLeft
Added
MPSGraphPooling2DOpDescriptor.paddingRight
Added
MPSGraphPooling2DOpDescriptor.paddingTop
Added
MPSGraphPooling2DOpDescriptor.paddingBottom
Added
MPSGraphPooling2DOpDescriptor.paddingStyle
Added
MPSGraphPooling2DOpDescriptor.dataLayout
Added
+[MPSGraphPooling2DOpDescriptor descriptorWithKernelWidth:kernelHeight:strideInX:strideInY:dilationRateInX:dilationRateInY:paddingLeft:paddingRight:paddingTop:paddingBottom:paddingStyle:dataLayout:]
Added
+[MPSGraphPooling2DOpDescriptor descriptorWithKernelWidth:kernelHeight:strideInX:strideInY:paddingStyle:dataLayout:]
Added
-[MPSGraphPooling2DOpDescriptor setExplicitPaddingWithPaddingLeft:paddingRight:paddingTop:paddingBottom:]
Added
-[MPSGraph maxPooling2DWithSourceTensor:descriptor:name:]
Added
-[MPSGraph maxPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:]
Added
-[MPSGraph avgPooling2DWithSourceTensor:descriptor:name:]
Added
-[MPSGraph avgPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:]
MPSGraphRandomOps.h
Added
-[MPSGraph dropoutTensor:rate:name:]
Added
-[MPSGraph dropoutTensor:rateTensor:name:]
MPSGraphReductionOps.h
Added
-[MPSGraph reductionSumWithTensor:axis:name:]
Added
-[MPSGraph reductionSumWithTensor:axes:name:]
Added
-[MPSGraph reductionMaximumWithTensor:axis:name:]
Added
-[MPSGraph reductionMaximumWithTensor:axes:name:]
Added
-[MPSGraph reductionMinimumWithTensor:axis:name:]
Added
-[MPSGraph reductionMinimumWithTensor:axes:name:]
Added
-[MPSGraph reductionProductWithTensor:axis:name:]
Added
-[MPSGraph reductionProductWithTensor:axes:name:]
MPSGraphResizeOps.h
Added
MPSGraphResizeMode
Added
MPSGraphResizeNearest
Added
MPSGraphResizeBilinear
Added
-[MPSGraph resizeTensor:size:mode:centerResult:alignCorners:layout:name:]
Added
-[MPSGraph resizeWithGradientTensor:input:mode:centerResult:alignCorners:layout:name:]
MPSGraphScatterNDOps.h
Added
-[MPSGraph scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:name:]
MPSGraphTensor.h
Added
MPSGraphTensor
Added
MPSGraphTensor.shape
Added
MPSGraphTensor.dataType
Added
MPSGraphTensor.operation
MPSGraphTensorData.h
Added
MPSGraphTensorData
Added
MPSGraphTensorData.shape
Added
MPSGraphTensorData.dataType
Added
MPSGraphTensorData.device
Added
-[MPSGraphTensorData initWithDevice:data:shape:dataType:]
Added
-[MPSGraphTensorData initWithMTLBuffer:shape:dataType:]
Added
-[MPSGraphTensorData initWithMPSMatrix:]
Added
-[MPSGraphTensorData initWithMPSMatrix:rank:]
Added
-[MPSGraphTensorData initWithMPSVector:]
Added
-[MPSGraphTensorData initWithMPSVector:rank:]
Added
-[MPSGraphTensorData initWithMPSNDArray:]
Added
-[MPSGraphTensorData initWithMPSImageBatch:]
Added
-[MPSGraphTensorData mpsndarray]
MPSGraphTensorShapeOps.h
Added
-[MPSGraph reshapeTensor:withShape:name:]
Added
-[MPSGraph transposeTensor:dimension:withDimension:name:]
Added
-[MPSGraph sliceTensor:dimension:start:length:name:]
Added
-[MPSGraph concatTensor:withTensor:dimension:name:]
Added
-[MPSGraph concatTensors:dimension:name:]
Added
-[MPSGraph tileTensor:withMultiplier:name:]
Added
-[MPSGraph tileGradientWithIncomingGradientTensor:sourceTensor:withMultiplier:name:]
Added
-[MPSGraph padTensor:withPaddingMode:leftPadding:rightPadding:constantValue:name:]
Added
-[MPSGraph padGradientWithIncomingGradientTensor:sourceTensor:paddingMode:leftPadding:rightPadding:name:]