MLCTrainingGraph.Compile 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
Compile(MLCOptimizer)
[Foundation.Export("compileOptimizer:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Compile(MLCompute.MLCOptimizer optimizer);
[<Foundation.Export("compileOptimizer:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Compile : MLCompute.MLCOptimizer -> bool
override this.Compile : MLCompute.MLCOptimizer -> bool
Parameters
- optimizer
- MLCOptimizer
Returns
- Attributes
Applies to
Compile(MLCGraphCompilationOptions, MLCDevice)
[Foundation.Export("compileWithOptions:device:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Compile(MLCompute.MLCGraphCompilationOptions options, MLCompute.MLCDevice device);
[<Foundation.Export("compileWithOptions:device:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Compile : MLCompute.MLCGraphCompilationOptions * MLCompute.MLCDevice -> bool
override this.Compile : MLCompute.MLCGraphCompilationOptions * MLCompute.MLCDevice -> bool
Parameters
- options
- MLCGraphCompilationOptions
- device
- MLCDevice
Returns
- Attributes
Applies to
Compile(MLCGraphCompilationOptions, MLCDevice, NSDictionary<NSString,MLCTensor>, NSDictionary<NSString,MLCTensorData>)
[Foundation.Export("compileWithOptions:device:inputTensors:inputTensorsData:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Compile(MLCompute.MLCGraphCompilationOptions options, MLCompute.MLCDevice device, Foundation.NSDictionary<Foundation.NSString,MLCompute.MLCTensor>? inputTensors, Foundation.NSDictionary<Foundation.NSString,MLCompute.MLCTensorData>? inputTensorsData);
[<Foundation.Export("compileWithOptions:device:inputTensors:inputTensorsData:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Compile : MLCompute.MLCGraphCompilationOptions * MLCompute.MLCDevice * Foundation.NSDictionary<Foundation.NSString, MLCompute.MLCTensor> * Foundation.NSDictionary<Foundation.NSString, MLCompute.MLCTensorData> -> bool
override this.Compile : MLCompute.MLCGraphCompilationOptions * MLCompute.MLCDevice * Foundation.NSDictionary<Foundation.NSString, MLCompute.MLCTensor> * Foundation.NSDictionary<Foundation.NSString, MLCompute.MLCTensorData> -> bool
Parameters
- options
- MLCGraphCompilationOptions
- device
- MLCDevice
- inputTensors
- NSDictionary<NSString,MLCTensor>
- inputTensorsData
- NSDictionary<NSString,MLCTensorData>
Returns
- Attributes