MPSGraph.Encode 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
Encode(MPSCommandBuffer, NSDictionary<MPSGraphTensor,MPSGraphTensorData>, MPSGraphOperation[], NSDictionary<MPSGraphTensor,MPSGraphTensorData>, MPSGraphExecutionDescriptor)
[Foundation.Export("encodeToCommandBuffer:feeds:targetOperations:resultsDictionary:executionDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void Encode(MetalPerformanceShaders.MPSCommandBuffer commandBuffer, Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensorData> feeds, MetalPerformanceShadersGraph.MPSGraphOperation[]? targetOperations, Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensorData> resultsDictionary, MetalPerformanceShadersGraph.MPSGraphExecutionDescriptor? executionDescriptor);
[<Foundation.Export("encodeToCommandBuffer:feeds:targetOperations:resultsDictionary:executionDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Encode : MetalPerformanceShaders.MPSCommandBuffer * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData> * MetalPerformanceShadersGraph.MPSGraphOperation[] * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData> * MetalPerformanceShadersGraph.MPSGraphExecutionDescriptor -> unit
override this.Encode : MetalPerformanceShaders.MPSCommandBuffer * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData> * MetalPerformanceShadersGraph.MPSGraphOperation[] * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData> * MetalPerformanceShadersGraph.MPSGraphExecutionDescriptor -> unit
Parameters
- commandBuffer
- MPSCommandBuffer
- targetOperations
- MPSGraphOperation[]
- resultsDictionary
- NSDictionary<MPSGraphTensor,MPSGraphTensorData>
- executionDescriptor
- MPSGraphExecutionDescriptor
- Attributes
Applies to
Encode(MPSCommandBuffer, NSDictionary<MPSGraphTensor,MPSGraphTensorData>, MPSGraphTensor[], MPSGraphOperation[], MPSGraphExecutionDescriptor)
[Foundation.Export("encodeToCommandBuffer:feeds:targetTensors:targetOperations:executionDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensorData> Encode(MetalPerformanceShaders.MPSCommandBuffer commandBuffer, Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor,MetalPerformanceShadersGraph.MPSGraphTensorData> feeds, MetalPerformanceShadersGraph.MPSGraphTensor[] targetTensors, MetalPerformanceShadersGraph.MPSGraphOperation[]? targetOperations, MetalPerformanceShadersGraph.MPSGraphExecutionDescriptor? executionDescriptor);
[<Foundation.Export("encodeToCommandBuffer:feeds:targetTensors:targetOperations:executionDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Encode : MetalPerformanceShaders.MPSCommandBuffer * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData> * MetalPerformanceShadersGraph.MPSGraphTensor[] * MetalPerformanceShadersGraph.MPSGraphOperation[] * MetalPerformanceShadersGraph.MPSGraphExecutionDescriptor -> Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData>
override this.Encode : MetalPerformanceShaders.MPSCommandBuffer * Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData> * MetalPerformanceShadersGraph.MPSGraphTensor[] * MetalPerformanceShadersGraph.MPSGraphOperation[] * MetalPerformanceShadersGraph.MPSGraphExecutionDescriptor -> Foundation.NSDictionary<MetalPerformanceShadersGraph.MPSGraphTensor, MetalPerformanceShadersGraph.MPSGraphTensorData>
Parameters
- commandBuffer
- MPSCommandBuffer
- targetTensors
- MPSGraphTensor[]
- targetOperations
- MPSGraphOperation[]
- executionDescriptor
- MPSGraphExecutionDescriptor
Returns
- Attributes