Share via


MLCEmbeddingDescriptor.Create Method

Definition

Overloads

Create(IntPtr, IntPtr)

[Foundation.Export("descriptorWithEmbeddingCount:embeddingDimension:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCEmbeddingDescriptor? Create(IntPtr embeddingCount, IntPtr embeddingDimension);
[<Foundation.Export("descriptorWithEmbeddingCount:embeddingDimension:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : nativeint * nativeint -> MLCompute.MLCEmbeddingDescriptor

Parameters

embeddingCount
IntPtr

nativeint

embeddingDimension
IntPtr

nativeint

Returns

Attributes

Applies to

Create(IntPtr, IntPtr, Nullable<IntPtr>, Nullable<Single>, Nullable<Single>, Boolean)

[Foundation.Export("descriptorWithEmbeddingCount:embeddingDimension:paddingIndex:maximumNorm:pNorm:scalesGradientByFrequency:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCEmbeddingDescriptor? Create(IntPtr embeddingCount, IntPtr embeddingDimension, IntPtr? paddingIndex, float? maximumNorm, float? pNorm, bool scalesGradientByFrequency);
[<Foundation.Export("descriptorWithEmbeddingCount:embeddingDimension:paddingIndex:maximumNorm:pNorm:scalesGradientByFrequency:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : nativeint * nativeint * Nullable<nativeint> * Nullable<single> * Nullable<single> * bool -> MLCompute.MLCEmbeddingDescriptor

Parameters

embeddingCount
IntPtr

nativeint

embeddingDimension
IntPtr

nativeint

paddingIndex

Nullable<IntPtr>

Nullable<nativeint>

maximumNorm
Nullable<Single>
pNorm
Nullable<Single>
scalesGradientByFrequency
Boolean

Returns

Attributes

Applies to