Tensor.Squeeze 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
Squeeze<T>(Tensor<T>, Int32) | |
Squeeze<T>(ReadOnlyTensorSpan<T>, Int32) | |
Squeeze<T>(TensorSpan<T>, Int32) |
Squeeze<T>(Tensor<T>, Int32)
- Source:
- TensorExtensions.cs
public static System.Numerics.Tensors.Tensor<T> Squeeze<T> (this System.Numerics.Tensors.Tensor<T> input, int axis = -1);
static member Squeeze : System.Numerics.Tensors.Tensor<'T> * int -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function Squeeze(Of T) (input As Tensor(Of T), Optional axis As Integer = -1) As Tensor(Of T)
Type Parameters
- T
Parameters
- input
- Tensor<T>
- axis
- Int32
Returns
Applies to
Squeeze<T>(ReadOnlyTensorSpan<T>, Int32)
- Source:
- TensorExtensions.cs
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Squeeze<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, int axis = -1);
static member Squeeze : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
<Extension()>
Public Function Squeeze(Of T) (ByRef input As ReadOnlyTensorSpan(Of T), Optional axis As Integer = -1) As ReadOnlyTensorSpan(Of T)
Type Parameters
- T
Parameters
- input
- ReadOnlyTensorSpan<T>
- axis
- Int32
Returns
Applies to
Squeeze<T>(TensorSpan<T>, Int32)
- Source:
- TensorExtensions.cs
public static System.Numerics.Tensors.TensorSpan<T> Squeeze<T> (this in System.Numerics.Tensors.TensorSpan<T> input, int axis = -1);
static member Squeeze : TensorSpan * int -> System.Numerics.Tensors.TensorSpan<'T>
<Extension()>
Public Function Squeeze(Of T) (ByRef input As TensorSpan(Of T), Optional axis As Integer = -1) As TensorSpan(Of T)
Type Parameters
- T
Parameters
- input
- TensorSpan<T>
- axis
- Int32
Returns
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre