MLCEmbeddingDescriptor.Create 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 |
|---|---|
| Create(IntPtr, IntPtr) | |
| Create(IntPtr, IntPtr, Nullable<IntPtr>, Nullable<Single>, Nullable<Single>, Boolean) |
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
- scalesGradientByFrequency
- Boolean
Returns
- Attributes