MLCTensorDescriptor.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[], MLCDataType) | |
| Create(IntPtr[], IntPtr[], Boolean, MLCDataType) | |
| Create(UIntPtr, UIntPtr, UIntPtr, UIntPtr) | |
| Create(UIntPtr, UIntPtr, UIntPtr, UIntPtr, MLCDataType) |
Create(IntPtr[], MLCDataType)
[Foundation.Export("descriptorWithShape:dataType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCTensorDescriptor? Create(IntPtr[] shape, MLCompute.MLCDataType dataType);
[<Foundation.Export("descriptorWithShape:dataType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : nativeint[] * MLCompute.MLCDataType -> MLCompute.MLCTensorDescriptor
Parameters
- shape
-
IntPtr[]
nativeint[]
- dataType
- MLCDataType
Returns
- Attributes
Applies to
Create(IntPtr[], IntPtr[], Boolean, MLCDataType)
[Foundation.Export("descriptorWithShape:sequenceLengths:sortedSequences:dataType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCTensorDescriptor? Create(IntPtr[] shape, IntPtr[] sequenceLengths, bool sortedSequences, MLCompute.MLCDataType dataType);
[<Foundation.Export("descriptorWithShape:sequenceLengths:sortedSequences:dataType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : nativeint[] * nativeint[] * bool * MLCompute.MLCDataType -> MLCompute.MLCTensorDescriptor
Parameters
- shape
-
IntPtr[]
nativeint[]
- sequenceLengths
-
IntPtr[]
nativeint[]
- sortedSequences
- Boolean
- dataType
- MLCDataType
Returns
- Attributes
Applies to
Create(UIntPtr, UIntPtr, UIntPtr, UIntPtr)
[Foundation.Export("descriptorWithWidth:height:featureChannelCount:batchSize:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCTensorDescriptor? Create(UIntPtr width, UIntPtr height, UIntPtr featureChannels, UIntPtr batchSize);
[<Foundation.Export("descriptorWithWidth:height:featureChannelCount:batchSize:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : unativeint * unativeint * unativeint * unativeint -> MLCompute.MLCTensorDescriptor
Parameters
- width
-
UIntPtr
unativeint
- height
-
UIntPtr
unativeint
- featureChannels
-
UIntPtr
unativeint
- batchSize
-
UIntPtr
unativeint
Returns
- Attributes
Applies to
Create(UIntPtr, UIntPtr, UIntPtr, UIntPtr, MLCDataType)
[Foundation.Export("descriptorWithWidth:height:featureChannelCount:batchSize:dataType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCTensorDescriptor? Create(UIntPtr width, UIntPtr height, UIntPtr featureChannelCount, UIntPtr batchSize, MLCompute.MLCDataType dataType);
[<Foundation.Export("descriptorWithWidth:height:featureChannelCount:batchSize:dataType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : unativeint * unativeint * unativeint * unativeint * MLCompute.MLCDataType -> MLCompute.MLCTensorDescriptor
Parameters
- width
-
UIntPtr
unativeint
- height
-
UIntPtr
unativeint
- featureChannelCount
-
UIntPtr
unativeint
- batchSize
-
UIntPtr
unativeint
- dataType
- MLCDataType
Returns
- Attributes