Phi2-Fine-Tuning
/
phivenv
/Lib
/site-packages
/torch
/include
/ATen
/native
/mps
/MPSGraphSequoiaOps.h
| @interface MPSNDArrayIdentity : MPSNDArrayUnaryKernel | |
| - (MPSNDArray* __nullable)reshapeWithCommandBuffer:(__nullable id<MTLCommandBuffer>)cmdBuf | |
| sourceArray:(MPSNDArray* __nonnull)sourceArray | |
| shape:(MPSShape* __nonnull)shape | |
| destinationArray:(MPSNDArray* __nullable)destinationArray; | |
| @end | |
| @interface MPSNDArrayDescriptor () | |
| @property(readwrite, nonatomic) BOOL preferPackedRows; | |
| @end | |
| @interface MPSNDArray () | |
| - (nonnull instancetype)initWithBuffer:(id<MTLBuffer> _Nonnull)buffer | |
| offset:(NSUInteger)offset | |
| descriptor:(MPSNDArrayDescriptor* _Nonnull)descriptor; | |
| - (MPSNDArray* __nullable)arrayViewWithShape:(MPSShape* _Nullable)shape strides:(MPSShape* _Nonnull)strides; | |
| @end | |
| typedef NS_ENUM(NSInteger, MTLMathMode) { | |
| MTLMathModeSafe = 0, | |
| MTLMathModeRelaxed = 1, | |
| MTLMathModeFast = 2, | |
| }; | |
| typedef NS_ENUM(NSInteger, MTLMathFloatingPointFunctions) { | |
| MTLMathFloatingPointFunctionsFast = 0, | |
| MTLMathFloatingPointFunctionsPrecise = 1, | |
| }; | |
| @interface MTLCompileOptions () | |
| @property(readwrite, nonatomic) MTLMathMode mathMode; | |
| @property(readwrite, nonatomic) MTLMathFloatingPointFunctions mathFloatingPointFunctions; | |
| @end | |