MPSGraph.Compile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Foundation.Export("compileWithDevice:feeds:targetTensors:targetOperations:compilationDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShadersGraph.MPSGraphExecutable Compile(MetalPerformanceShadersGraph.MPSGraphDevice? device, Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphShapedType> feeds, MetalPerformanceShadersGraph.MPSGraphTensor[] targetTensors, MetalPerformanceShadersGraph.MPSGraphOperation[]? targetOperations, MetalPerformanceShadersGraph.MPSGraphCompilationDescriptor? compilationDescriptor);
[<Foundation.Export("compileWithDevice:feeds:targetTensors:targetOperations:compilationDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Compile : MetalPerformanceShadersGraph.MPSGraphDevice * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphShapedType> * MetalPerformanceShadersGraph.MPSGraphTensor[] * MetalPerformanceShadersGraph.MPSGraphOperation[] * MetalPerformanceShadersGraph.MPSGraphCompilationDescriptor -> MetalPerformanceShadersGraph.MPSGraphExecutable
override this.Compile : MetalPerformanceShadersGraph.MPSGraphDevice * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphShapedType> * MetalPerformanceShadersGraph.MPSGraphTensor[] * MetalPerformanceShadersGraph.MPSGraphOperation[] * MetalPerformanceShadersGraph.MPSGraphCompilationDescriptor -> MetalPerformanceShadersGraph.MPSGraphExecutable
Parameters
- device
- MPSGraphDevice
- targetTensors
- MPSGraphTensor[]
- targetOperations
- MPSGraphOperation[]
- compilationDescriptor
- MPSGraphCompilationDescriptor
Returns
- Attributes