MLCTensorData.CreateFromBytesNoCopy 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 |
|---|---|
| CreateFromBytesNoCopy(IntPtr, UIntPtr) | |
| CreateFromBytesNoCopy(IntPtr, UIntPtr, Action<IntPtr,UIntPtr>) |
CreateFromBytesNoCopy(IntPtr, UIntPtr)
[Foundation.Export("dataWithBytesNoCopy:length:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCTensorData CreateFromBytesNoCopy(IntPtr bytes, UIntPtr length);
[<Foundation.Export("dataWithBytesNoCopy:length:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateFromBytesNoCopy : nativeint * unativeint -> MLCompute.MLCTensorData
Parameters
- bytes
-
IntPtr
nativeint
- length
-
UIntPtr
unativeint
Returns
- Attributes
Applies to
CreateFromBytesNoCopy(IntPtr, UIntPtr, Action<IntPtr,UIntPtr>)
[Foundation.Export("dataWithBytesNoCopy:length:deallocator:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MLCompute.MLCTensorData CreateFromBytesNoCopy(IntPtr bytes, UIntPtr length, Action<IntPtr,UIntPtr> deallocator);
[<Foundation.Export("dataWithBytesNoCopy:length:deallocator:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateFromBytesNoCopy : nativeint * unativeint * Action<nativeint, unativeint> -> MLCompute.MLCTensorData
Parameters
- bytes
-
IntPtr
nativeint
- length
-
UIntPtr
unativeint
Returns
- Attributes