Share via


MLCTrainingGraph.AllocateUserGradient(MLCTensor) Method

Definition

[Foundation.Export("allocateUserGradientForTensor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MLCompute.MLCTensor? AllocateUserGradient(MLCompute.MLCTensor tensor);
[<Foundation.Export("allocateUserGradientForTensor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AllocateUserGradient : MLCompute.MLCTensor -> MLCompute.MLCTensor
override this.AllocateUserGradient : MLCompute.MLCTensor -> MLCompute.MLCTensor

Parameters

tensor
MLCTensor

Returns

Attributes

Applies to