MLComputePlan.ComputeDeviceUsage 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 |
|---|---|
| ComputeDeviceUsage(MLModelStructureNeuralNetworkLayer) | |
| ComputeDeviceUsage(MLModelStructureProgramOperation) |
ComputeDeviceUsage(MLModelStructureNeuralNetworkLayer)
[Foundation.Export("computeDeviceUsageForNeuralNetworkLayer:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreML.MLComputePlanDeviceUsage? ComputeDeviceUsage(CoreML.MLModelStructureNeuralNetworkLayer neuralNetworkLayer);
[<Foundation.Export("computeDeviceUsageForNeuralNetworkLayer:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ComputeDeviceUsage : CoreML.MLModelStructureNeuralNetworkLayer -> CoreML.MLComputePlanDeviceUsage
override this.ComputeDeviceUsage : CoreML.MLModelStructureNeuralNetworkLayer -> CoreML.MLComputePlanDeviceUsage
Parameters
- neuralNetworkLayer
- MLModelStructureNeuralNetworkLayer
Returns
- Attributes
Applies to
ComputeDeviceUsage(MLModelStructureProgramOperation)
[Foundation.Export("computeDeviceUsageForMLProgramOperation:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreML.MLComputePlanDeviceUsage? ComputeDeviceUsage(CoreML.MLModelStructureProgramOperation programOperation);
[<Foundation.Export("computeDeviceUsageForMLProgramOperation:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ComputeDeviceUsage : CoreML.MLModelStructureProgramOperation -> CoreML.MLComputePlanDeviceUsage
override this.ComputeDeviceUsage : CoreML.MLModelStructureProgramOperation -> CoreML.MLComputePlanDeviceUsage
Parameters
- programOperation
- MLModelStructureProgramOperation
Returns
- Attributes