Tensor.Reshape 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
Reshape<T>(ReadOnlyTensorSpan<T>, ReadOnlySpan<IntPtr>) | |
Reshape<T>(Tensor<T>, ReadOnlySpan<IntPtr>) | |
Reshape<T>(TensorSpan<T>, ReadOnlySpan<IntPtr>) |
Reshape<T>(ReadOnlyTensorSpan<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Tensors::ReadOnlyTensorSpan<T> Reshape(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Reshape<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, scoped ReadOnlySpan<IntPtr> lengths);
static member Reshape : ReadOnlyTensorSpan * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
<Extension()>
Public Function Reshape(Of T) (ByRef input As ReadOnlyTensorSpan(Of T), lengths As ReadOnlySpan(Of IntPtr)) As ReadOnlyTensorSpan(Of T)
Type Parameters
- T
Parameters
- input
- ReadOnlyTensorSpan<T>
- lengths
-
ReadOnlySpan<nativeint>
Returns
Applies to
Reshape<T>(Tensor<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Tensors::Tensor<T> ^ Reshape(System::Numerics::Tensors::Tensor<T> ^ input, ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.Tensor<T> Reshape<T> (this System.Numerics.Tensors.Tensor<T> input, scoped ReadOnlySpan<IntPtr> lengths);
static member Reshape : System.Numerics.Tensors.Tensor<'T> * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function Reshape(Of T) (input As Tensor(Of T), lengths As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)
Type Parameters
- T
Parameters
- input
- Tensor<T>
- lengths
-
ReadOnlySpan<nativeint>
Returns
Applies to
Reshape<T>(TensorSpan<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Numerics::Tensors::TensorSpan<T> Reshape(System::Numerics::Tensors::TensorSpan<T> % input, ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.TensorSpan<T> Reshape<T> (this in System.Numerics.Tensors.TensorSpan<T> input, scoped ReadOnlySpan<IntPtr> lengths);
static member Reshape : TensorSpan * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.TensorSpan<'T>
<Extension()>
Public Function Reshape(Of T) (ByRef input As TensorSpan(Of T), lengths As ReadOnlySpan(Of IntPtr)) As TensorSpan(Of T)
Type Parameters
- T
Parameters
- input
- TensorSpan<T>
- lengths
-
ReadOnlySpan<nativeint>
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