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>(Tensor<T>, ReadOnlySpan<IntPtr>) | |
Reshape<T>(TensorSpan<T>, ReadOnlySpan<IntPtr>) |
Reshape<T>(Tensor<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
where T : IEquatable<T>, System::Numerics::IEqualityOperators<T, T, bool>[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) where T : IEquatable<T>, System.Numerics.IEqualityOperators<T,T,bool>;
static member Reshape : System.Numerics.Tensors.Tensor<'T (requires 'T :> IEquatable<'T> and 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)> * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T (requires 'T :> IEquatable<'T> and 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)> (requires 'T :> IEquatable<'T> and 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)
<Extension()>
Public Function Reshape(Of T As {IEquatable(Of T), IEqualityOperators(Of T, T, Boolean)}) (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>
where T : IEquatable<T>, System::Numerics::IEqualityOperators<T, T, bool>[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 System.Numerics.Tensors.TensorSpan<T> input, scoped ReadOnlySpan<IntPtr> lengths) where T : IEquatable<T>, System.Numerics.IEqualityOperators<T,T,bool>;
static member Reshape : System.Numerics.Tensors.TensorSpan<'T (requires 'T :> IEquatable<'T> and 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)> * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.TensorSpan<'T (requires 'T :> IEquatable<'T> and 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)> (requires 'T :> IEquatable<'T> and 'T :> System.Numerics.IEqualityOperators<'T, 'T, bool>)
<Extension()>
Public Function Reshape(Of T As {IEquatable(Of T), IEqualityOperators(Of T, T, Boolean)}) (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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ