Language

MPSGraphExecutable.Run Method

Definition

Overloads

Run(IMTL4CommandQueue, MPSGraphTensorData[], MPSGraphTensorData[], MPSGraphExecutableExecutionDescriptor)

Runs the executable synchronously on a Metal 4 command queue.

[Foundation.Export("runWithMTL4CommandQueue:inputsArray:resultsArray:executionDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.UnsupportedSimulator("ios")]
public virtual MetalPerformanceShadersGraph.MPSGraphTensorData[] Run(Metal.IMTL4CommandQueue commandQueue, MetalPerformanceShadersGraph.MPSGraphTensorData[] inputsArray, MetalPerformanceShadersGraph.MPSGraphTensorData[]? resultsArray, MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor? executionDescriptor);
[Foundation.Export("runWithMTL4CommandQueue:inputsArray:resultsArray:executionDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShadersGraph.MPSGraphTensorData[] Run(Metal.IMTL4CommandQueue commandQueue, MetalPerformanceShadersGraph.MPSGraphTensorData[] inputsArray, MetalPerformanceShadersGraph.MPSGraphTensorData[]? resultsArray, MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor? executionDescriptor);
[Foundation.Export("runWithMTL4CommandQueue:inputsArray:resultsArray:executionDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.UnsupportedSimulator("tvos")]
public virtual MetalPerformanceShadersGraph.MPSGraphTensorData[] Run(Metal.IMTL4CommandQueue commandQueue, MetalPerformanceShadersGraph.MPSGraphTensorData[] inputsArray, MetalPerformanceShadersGraph.MPSGraphTensorData[]? resultsArray, MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor? executionDescriptor);
[<Foundation.Export("runWithMTL4CommandQueue:inputsArray:resultsArray:executionDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.UnsupportedSimulator("ios")>]
abstract member Run : Metal.IMTL4CommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]
override this.Run : Metal.IMTL4CommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]
[<Foundation.Export("runWithMTL4CommandQueue:inputsArray:resultsArray:executionDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Run : Metal.IMTL4CommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]
override this.Run : Metal.IMTL4CommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]
[<Foundation.Export("runWithMTL4CommandQueue:inputsArray:resultsArray:executionDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.UnsupportedSimulator("tvos")>]
abstract member Run : Metal.IMTL4CommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]
override this.Run : Metal.IMTL4CommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]

Parameters

commandQueue
IMTL4CommandQueue
inputsArray
MPSGraphTensorData[]
resultsArray
MPSGraphTensorData[]

Returns

Attributes

Applies to

Run(IMTLCommandQueue, MPSGraphTensorData[], MPSGraphTensorData[], MPSGraphExecutableExecutionDescriptor)

[Foundation.Export("runWithMTLCommandQueue:inputsArray:resultsArray:executionDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShadersGraph.MPSGraphTensorData[] Run(Metal.IMTLCommandQueue commandQueue, MetalPerformanceShadersGraph.MPSGraphTensorData[] inputsArray, MetalPerformanceShadersGraph.MPSGraphTensorData[]? resultsArray, MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor? executionDescriptor);
[<Foundation.Export("runWithMTLCommandQueue:inputsArray:resultsArray:executionDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Run : Metal.IMTLCommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]
override this.Run : Metal.IMTLCommandQueue * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphTensorData[] * MetalPerformanceShadersGraph.MPSGraphExecutableExecutionDescriptor -> MetalPerformanceShadersGraph.MPSGraphTensorData[]

Parameters

commandQueue
IMTLCommandQueue
inputsArray
MPSGraphTensorData[]
resultsArray
MPSGraphTensorData[]

Returns

Attributes

Applies to