Tensor.ToString 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
ToString<T>(Tensor<T>, ReadOnlySpan<IntPtr>) | |
ToString<T>(TensorSpan<T>, ReadOnlySpan<IntPtr>) |
Creates a String representation of the TensorSpan<T>."/> |
ToString<T>(ReadOnlyTensorSpan<T>, ReadOnlySpan<IntPtr>) |
Creates a String representation of the ReadOnlyTensorSpan<T>."/> |
ToString<T>(Tensor<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::String ^ ToString(System::Numerics::Tensors::Tensor<T> ^ tensor, ReadOnlySpan<IntPtr> maximumLengths);
public static string ToString<T> (this System.Numerics.Tensors.Tensor<T> tensor, scoped ReadOnlySpan<IntPtr> maximumLengths);
static member ToString : System.Numerics.Tensors.Tensor<'T> * ReadOnlySpan<nativeint> -> string
<Extension()>
Public Function ToString(Of T) (tensor As Tensor(Of T), maximumLengths As ReadOnlySpan(Of IntPtr)) As String
Type Parameters
- T
Parameters
- maximumLengths
-
ReadOnlySpan<nativeint>
Maximum Length of each dimension
Returns
A String representation of the tensor
Applies to
ToString<T>(TensorSpan<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
Creates a String representation of the TensorSpan<T>."/>
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::String ^ ToString(System::Numerics::Tensors::TensorSpan<T> % tensor, ReadOnlySpan<IntPtr> maximumLengths);
public static string ToString<T> (this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped ReadOnlySpan<IntPtr> maximumLengths);
static member ToString : TensorSpan * ReadOnlySpan<nativeint> -> string
<Extension()>
Public Function ToString(Of T) (ByRef tensor As TensorSpan(Of T), maximumLengths As ReadOnlySpan(Of IntPtr)) As String
Type Parameters
- T
Parameters
- tensor
- TensorSpan<T>
The TensorSpan<T> you want to represent as a string.
- maximumLengths
-
ReadOnlySpan<nativeint>
Maximum Length of each dimension
Returns
A String representation of the tensor
Applies to
ToString<T>(ReadOnlyTensorSpan<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
Creates a String representation of the ReadOnlyTensorSpan<T>."/>
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::String ^ ToString(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % tensor, ReadOnlySpan<IntPtr> maximumLengths);
public static string ToString<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<IntPtr> maximumLengths);
static member ToString : ReadOnlyTensorSpan * ReadOnlySpan<nativeint> -> string
<Extension()>
Public Function ToString(Of T) (ByRef tensor As ReadOnlyTensorSpan(Of T), maximumLengths As ReadOnlySpan(Of IntPtr)) As String
Type Parameters
- T
Parameters
- tensor
- ReadOnlyTensorSpan<T>
The ReadOnlyTensorSpan<T> you want to represent as a string.
- maximumLengths
-
ReadOnlySpan<nativeint>
Maximum Length of each dimension