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
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ