Tensor.Unsqueeze Method
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.
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. |
- 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
- dimension
- Int32
The index of the dimension to add.
Returns
Applies to
.NET 10 (package-provided) i druge verzije
Proizvod | Verzije |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- 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
.NET 10 (package-provided) i druge verzije
Proizvod | Verzije |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- 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
.NET 10 (package-provided) i druge verzije
Proizvod | Verzije |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET povratne informacije
.NET je projekat otvorenog koda. Odaberite vezu za pružanje povratnih informacija: