Share via


MPSGraph.Compile Method

Definition

[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

targetTensors
MPSGraphTensor[]
targetOperations
MPSGraphOperation[]
compilationDescriptor
MPSGraphCompilationDescriptor

Returns

Attributes

Applies to