Share via


ITensor<TSelf,T>.CreateFromShapeUninitialized Method

Definition

Overloads

CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, Boolean)

Creates a new tensor with the specified lengths and strides.

CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, ReadOnlySpan<IntPtr>, Boolean)

Creates a new tensor with the specified lengths and strides. If pinned is true the underlying buffer is created permanently pinned, otherwise the underlying buffer is not pinned. The underlying buffer is not initialized.

CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, Boolean)

Source:
ITensor_1.cs

Creates a new tensor with the specified lengths and strides.

public static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<IntPtr> lengths, bool pinned = false);
static member CreateFromShapeUninitialized : ReadOnlySpan<nativeint> * bool -> 'Self
Public Shared Function CreateFromShapeUninitialized (lengths As ReadOnlySpan(Of IntPtr), Optional pinned As Boolean = false) As TSelf

Parameters

lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The lengths of each dimension.

pinned
Boolean

true to pin the underlying buffer. The default is false.

Returns

TSelf

Remarks

If pinned is true the underlying buffer is created permanently pinned, otherwise the underlying buffer is not pinned.

The underlying buffer is not initialized.

Applies to

CreateFromShapeUninitialized(ReadOnlySpan<IntPtr>, ReadOnlySpan<IntPtr>, Boolean)

Source:
ITensor_1.cs

Creates a new tensor with the specified lengths and strides. If pinned is true the underlying buffer is created permanently pinned, otherwise the underlying buffer is not pinned. The underlying buffer is not initialized.

public static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<IntPtr> lengths, scoped ReadOnlySpan<IntPtr> strides, bool pinned = false);
static member CreateFromShapeUninitialized : ReadOnlySpan<nativeint> * ReadOnlySpan<nativeint> * bool -> 'Self
Public Shared Function CreateFromShapeUninitialized (lengths As ReadOnlySpan(Of IntPtr), strides As ReadOnlySpan(Of IntPtr), Optional pinned As Boolean = false) As TSelf

Parameters

lengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The lengths of each dimension.

strides

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The strides of each dimension.

pinned
Boolean

true to pin the underlying buffer. The default is false.

Returns

TSelf

Remarks

If pinned is true the underlying buffer is created permanently pinned, otherwise the underlying buffer is not pinned. The underlying buffer is not initialized.

Applies to