MPSGraphExecutable.Run 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.
Overloads
| Name | Description |
|---|---|
| Run(IMTL4CommandQueue, MPSGraphTensorData[], MPSGraphTensorData[], MPSGraphExecutableExecutionDescriptor) |
Runs the executable synchronously on a Metal 4 command queue. |
| Run(IMTLCommandQueue, MPSGraphTensorData[], MPSGraphTensorData[], MPSGraphExecutableExecutionDescriptor) |
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[]
- executionDescriptor
- MPSGraphExecutableExecutionDescriptor
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[]
- executionDescriptor
- MPSGraphExecutableExecutionDescriptor
Returns
- Attributes