Tensor.Resize 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
Resize<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) | |
Resize<T>(Tensor<T>, ReadOnlySpan<IntPtr>) |
Resize<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
static System::Numerics::Tensors::TensorSpan<T> ^ Resize(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Resize<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination);
static member Resize : ReadOnlyTensorSpan * TensorSpan -> TensorSpan
Public Function Resize(Of T) (ByRef input As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
Type Parameters
- T
Parameters
- input
- ReadOnlyTensorSpan<T>
- destination
- TensorSpan<T>
Returns
Applies to
Resize<T>(Tensor<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
static System::Numerics::Tensors::Tensor<T> ^ Resize(System::Numerics::Tensors::Tensor<T> ^ input, ReadOnlySpan<IntPtr> shape);
public static System.Numerics.Tensors.Tensor<T> Resize<T> (System.Numerics.Tensors.Tensor<T> input, ReadOnlySpan<IntPtr> shape);
static member Resize : System.Numerics.Tensors.Tensor<'T> * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T>
Public Function Resize(Of T) (input As Tensor(Of T), shape As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)
Type Parameters
- T
Parameters
- input
- Tensor<T>
- shape
-
ReadOnlySpan<nativeint>
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