Tensor.Unsqueeze 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
Unsqueeze<T>(ReadOnlyTensorSpan<T>, Int32) | |
Unsqueeze<T>(Tensor<T>, Int32) | |
Unsqueeze<T>(TensorSpan<T>, Int32) |
Unsqueeze<T>(ReadOnlyTensorSpan<T>, Int32)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Tensors::ReadOnlyTensorSpan<T> Unsqueeze(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, int axis);
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Unsqueeze<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, int axis);
static member Unsqueeze : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
<Extension()>
Public Function Unsqueeze(Of T) (ByRef input As ReadOnlyTensorSpan(Of T), axis As Integer) As ReadOnlyTensorSpan(Of T)
Type Parameters
- T
Parameters
- input
- ReadOnlyTensorSpan<T>
- axis
- Int32
Returns
Applies to
Unsqueeze<T>(Tensor<T>, Int32)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Tensors::Tensor<T> ^ Unsqueeze(System::Numerics::Tensors::Tensor<T> ^ input, int axis);
public static System.Numerics.Tensors.Tensor<T> Unsqueeze<T> (this System.Numerics.Tensors.Tensor<T> input, int axis);
static member Unsqueeze : System.Numerics.Tensors.Tensor<'T> * int -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function Unsqueeze(Of T) (input As Tensor(Of T), axis As Integer) As Tensor(Of T)
Type Parameters
- T
Parameters
- input
- Tensor<T>
- axis
- Int32
Returns
Applies to
Unsqueeze<T>(TensorSpan<T>, Int32)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Tensors::TensorSpan<T> Unsqueeze(System::Numerics::Tensors::TensorSpan<T> % input, int axis);
public static System.Numerics.Tensors.TensorSpan<T> Unsqueeze<T> (this in System.Numerics.Tensors.TensorSpan<T> input, int axis);
static member Unsqueeze : TensorSpan * int -> System.Numerics.Tensors.TensorSpan<'T>
<Extension()>
Public Function Unsqueeze(Of T) (ByRef input As TensorSpan(Of T), axis As Integer) As TensorSpan(Of T)
Type Parameters
- T
Parameters
- input
- TensorSpan<T>
- axis
- Int32
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for