Jaa


Tensor.ToString Method

Definition

Overloads

ToString<T>(Tensor<T>, ReadOnlySpan<IntPtr>)

Creates a String representation of the Tensor<T>."/>

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
Source:
TensorExtensions.cs

Creates a String representation of the Tensor<T>."/>

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

tensor
Tensor<T>

The Span<T> you want to represent as a string.

maximumLengths

ReadOnlySpan<IntPtr>

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
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<IntPtr>

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
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<IntPtr>

ReadOnlySpan<nativeint>

Maximum Length of each dimension

Returns

Applies to