Share via


MLCTensorData.CreateFromBytesNoCopy Method

Definition

Overloads

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

deallocator

Action<IntPtr,UIntPtr>

Action<nativeint,unativeint>

Returns

Attributes

Applies to