Share via


TensorSpan<T>.ToString Method

Definition

Overloads

ToString(ReadOnlySpan<IntPtr>)

Creates a String representation of the tensor.

ToString()

For Span<T>, returns a new instance of string that represents the characters pointed to by the span. Otherwise, returns a String with the name of the type and the number of elements.

ToString(ReadOnlySpan<IntPtr>)

Source:
TensorSpan_1.cs

Creates a String representation of the tensor.

public:
 System::String ^ ToString(ReadOnlySpan<IntPtr> maximumLengths);
public string ToString(scoped ReadOnlySpan<IntPtr> maximumLengths);
override this.ToString : ReadOnlySpan<nativeint> -> string
Public Function ToString (maximumLengths As ReadOnlySpan(Of IntPtr)) As String

Parameters

maximumLengths

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The maximum number of elements to print for each dimension of the tensor.

Returns

A String representation of the tensor.

Applies to

ToString()

Source:
TensorSpan_1.cs
Source:
TensorSpan.cs

For Span<T>, returns a new instance of string that represents the characters pointed to by the span. Otherwise, returns a String with the name of the type and the number of elements.

public:
 override System::String ^ ToString();
public override string ToString();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

The string representation of the tensor.

Applies to