Skip to content

Commit

Permalink
[MetalPerformanceShadersGraph] Implement Xcode 16.2 beta 1-3 changes. (
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Dec 2, 2024
1 parent a8b1d36 commit 4a8fdcc
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
16 changes: 16 additions & 0 deletions src/metalperformanceshadersgraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,14 @@ interface MPSGraph_MPSGraphTensorShapeOps {
[Export ("sliceTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:")]
MPSGraphTensor Slice (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] starts, [BindAs (typeof (int []))] NSNumber [] ends, [BindAs (typeof (int []))] NSNumber [] strides, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name);

[TV (18, 2), MacCatalyst (18, 2), Mac (15, 2), iOS (18, 2)]
[Export ("sliceTensor:startTensor:endTensor:strideTensor:startMask:endMask:squeezeMask:name:")]
MPSGraphTensor Slice (MPSGraphTensor tensor, MPSGraphTensor startTensor, MPSGraphTensor endTensor, MPSGraphTensor strideTensor, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name);

[TV (18, 2), MacCatalyst (18, 2), Mac (15, 2), iOS (18, 2)]
[Export ("sliceTensor:startTensor:sizeTensor:squeezeMask:name:")]
MPSGraphTensor Slice (MPSGraphTensor tensor, MPSGraphTensor startTensor, MPSGraphTensor sizeTensor, uint squeezeMask, [NullAllowed] string name);

// -(MPSGraphTensor * _Nonnull)sliceGradientTensor:(MPSGraphTensor * _Nonnull)inputGradientTensor fwdInShapeTensor:(MPSGraphTensor * _Nonnull)fwdInShapeTensor starts:(NSArray<NSNumber *> * _Nonnull)starts ends:(NSArray<NSNumber *> * _Nonnull)ends strides:(NSArray<NSNumber *> * _Nonnull)strides name:(NSString * _Nullable)name;
[Export ("sliceGradientTensor:fwdInShapeTensor:starts:ends:strides:name:")]
MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, [BindAs (typeof (int []))] NSNumber [] starts, [BindAs (typeof (int []))] NSNumber [] ends, [BindAs (typeof (int []))] NSNumber [] strides, [NullAllowed] string name);
Expand All @@ -1725,6 +1733,14 @@ interface MPSGraph_MPSGraphTensorShapeOps {
[Export ("sliceGradientTensor:fwdInShapeTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:")]
MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, [BindAs (typeof (int []))] NSNumber [] starts, [BindAs (typeof (int []))] NSNumber [] ends, [BindAs (typeof (int []))] NSNumber [] strides, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name);

[TV (18, 2), MacCatalyst (18, 2), Mac (15, 2), iOS (18, 2)]
[Export ("sliceGradientTensor:fwdInShapeTensor:startTensor:endTensor:strideTensor:startMask:endMask:squeezeMask:name:")]
MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, MPSGraphTensor startTensor, MPSGraphTensor endTensor, MPSGraphTensor strideTensor, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name);

[TV (18, 2), MacCatalyst (18, 2), Mac (15, 2), iOS (18, 2)]
[Export ("sliceGradientTensor:fwdInShapeTensor:startTensor:sizeTensor:squeezeMask:name:")]
MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, MPSGraphTensor startTensor, MPSGraphTensor sizeTensor, uint squeezeMask, [NullAllowed] string name);

[TV (17, 4), Mac (14, 4), iOS (17, 4), MacCatalyst (17, 4)]
[Export ("sliceUpdateDataTensor:updateTensor:startsTensor:endsTensor:stridesTensor:startMask:endMask:squeezeMask:name:")]
MPSGraphTensor SliceUpdateData (MPSGraphTensor dataTensor, MPSGraphTensor updateTensor, MPSGraphTensor startsTensor, MPSGraphTensor endsTensor, MPSGraphTensor stridesTensor, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name);
Expand Down
4 changes: 4 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39435,9 +39435,13 @@ M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Reverse(MetalPerf
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Reverse(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,System.Int32[],System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Reverse(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Shape(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Slice(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,System.UInt32,System.UInt32,System.UInt32,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Slice(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,System.UInt32,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Slice(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,System.Int32[],System.Int32[],System.Int32[],System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Slice(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,System.Int32[],System.Int32[],System.Int32[],System.UInt32,System.UInt32,System.UInt32,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.Slice(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,System.UIntPtr,System.IntPtr,System.IntPtr,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.SliceGradient(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,System.UInt32,System.UInt32,System.UInt32,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.SliceGradient(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,System.UInt32,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.SliceGradient(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,System.Int32[],System.Int32[],System.Int32[],System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.SliceGradient(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,System.Int32[],System.Int32[],System.Int32[],System.UInt32,System.UInt32,System.UInt32,System.String)
M:MetalPerformanceShadersGraph.MPSGraph_MPSGraphTensorShapeOps.SliceUpdateData(MetalPerformanceShadersGraph.MPSGraph,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensor,System.String)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 comments on commit 4a8fdcc

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.