@@ -2023,6 +2023,10 @@ interface MPSGraphCompilationDescriptor : NSCopying {
20232023 [ Export ( "callables" ) ]
20242024 [ NullAllowed ]
20252025 NSDictionary < NSString , MPSGraphExecutable > Callables { get ; set ; }
2026+
2027+ [ iOS ( 26 , 0 ) , TV ( 26 , 0 ) , MacCatalyst ( 26 , 0 ) , Mac ( 26 , 0 ) ]
2028+ [ Export ( "reducedPrecisionFastMath" ) ]
2029+ MPSGraphReducedPrecisionFastMath ReducedPrecisionFastMath { get ; set ; }
20262030 }
20272031
20282032 // @interface MPSGraphDevice : NSObject
@@ -2296,6 +2300,10 @@ interface MPSGraphTensorData {
22962300 [ Export ( "initWithMTLBuffer:shape:dataType:rowBytes:" ) ]
22972301 NativeHandle Constructor ( IMTLBuffer buffer , [ BindAs ( typeof ( int [ ] ) ) ] NSNumber [ ] shape , MPSDataType dataType , nuint rowBytes ) ;
22982302
2303+ [ TV ( 26 , 0 ) , iOS ( 26 , 0 ) , MacCatalyst ( 26 , 0 ) , Mac ( 26 , 0 ) ]
2304+ [ Export ( "initWithMTLTensor:" ) ]
2305+ NativeHandle Constructor ( IMTLTensor tensor ) ;
2306+
22992307 // -(MPSNDArray * _Nonnull)mpsndarray;
23002308 [ Export ( "mpsndarray" ) ]
23012309 MPSNDArray MPSNDArray { get ; }
@@ -2940,4 +2948,12 @@ interface MPSGraph_MPSGraphScatterAlongAxisOps {
29402948 MPSGraphTensor ScatterAlongAxis ( MPSGraphTensor axisTensor , MPSGraphTensor dataTensor , MPSGraphTensor updatesTensor , MPSGraphTensor indicesTensor , MPSGraphScatterMode mode , [ NullAllowed ] string name ) ;
29412949 }
29422950
2951+ [ iOS ( 26 , 0 ) , TV ( 26 , 0 ) , MacCatalyst ( 26 , 0 ) , Mac ( 26 , 0 ) ]
2952+ [ Native ]
2953+ enum MPSGraphReducedPrecisionFastMath : ulong {
2954+ None = 0 ,
2955+ AllowFP16Conv2DWinogradTransformIntermediate = 1 << 1 ,
2956+ AllowFP16Intermediates = AllowFP16Conv2DWinogradTransformIntermediate ,
2957+ Default = None ,
2958+ }
29432959}
0 commit comments