Jaa


Tensor.Unsqueeze Method

Definition

Overloads

Unsqueeze<T>(Tensor<T>, Int32)

Insert a new dimension of length 1 that will appear at the dimension position.

Unsqueeze<T>(TensorSpan<T>, Int32)

Insert a new dimension of length 1 that will appear at the dimension position.

Unsqueeze<T>(ReadOnlyTensorSpan<T>, Int32)

Insert a new dimension of length 1 that will appear at the dimension position.

Unsqueeze<T>(Tensor<T>, Int32)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Insert a new dimension of length 1 that will appear at the dimension position.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::Tensor<T> ^ Unsqueeze(System::Numerics::Tensors::Tensor<T> ^ tensor, int dimension);
public static System.Numerics.Tensors.Tensor<T> Unsqueeze<T> (this System.Numerics.Tensors.Tensor<T> tensor, int dimension);
static member Unsqueeze : System.Numerics.Tensors.Tensor<'T> * int -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function Unsqueeze(Of T) (tensor As Tensor(Of T), dimension As Integer) As Tensor(Of T)

Type Parameters

T

Parameters

tensor
Tensor<T>

The Tensor<T> to add a dimension of length 1.

dimension
Int32

The index of the dimension to add.

Returns

Applies to

Unsqueeze<T>(TensorSpan<T>, Int32)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Insert a new dimension of length 1 that will appear at the dimension position.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::TensorSpan<T> Unsqueeze(System::Numerics::Tensors::TensorSpan<T> % tensor, int dimension);
public static System.Numerics.Tensors.TensorSpan<T> Unsqueeze<T> (this in System.Numerics.Tensors.TensorSpan<T> tensor, int dimension);
static member Unsqueeze : TensorSpan * int -> System.Numerics.Tensors.TensorSpan<'T>
<Extension()>
Public Function Unsqueeze(Of T) (ByRef tensor As TensorSpan(Of T), dimension As Integer) As TensorSpan(Of T)

Type Parameters

T

Parameters

tensor
TensorSpan<T>

The TensorSpan<T> to add a dimension of length 1.

dimension
Int32

The index of the dimension to add.

Returns

Applies to

Unsqueeze<T>(ReadOnlyTensorSpan<T>, Int32)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Insert a new dimension of length 1 that will appear at the dimension position.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::ReadOnlyTensorSpan<T> Unsqueeze(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % tensor, int dimension);
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Unsqueeze<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, int dimension);
static member Unsqueeze : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
<Extension()>
Public Function Unsqueeze(Of T) (ByRef tensor As ReadOnlyTensorSpan(Of T), dimension As Integer) As ReadOnlyTensorSpan(Of T)

Type Parameters

T

Parameters

tensor
ReadOnlyTensorSpan<T>

The ReadOnlyTensorSpan<T> to add a dimension of length 1.

dimension
Int32

The index of the dimension to add.

Returns

Applies to