ReadOnlyTensorSpan<T>.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(ReadOnlySpan<IntPtr>) |
Creates a String representation of the tensor. |
| ToString() |
Returns the string representation of the tensor. |
ToString(ReadOnlySpan<IntPtr>)
- Source:
- ReadOnlyTensorSpan_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<nativeint>
The maximum number of elements to print for each dimension of the tensor.
Returns
A String representation of the tensor.
Exceptions
maximumLengths is not empty and does not contain Rank elements.
Remarks
No contents will be printed if maximumLengths is empty.
If a given dimension contains more elements then the corresponding limit specified by maximumLengths, remaining elements will be represented by ...
Applies to
ToString()
- Source:
- ReadOnlyTensorSpan_1.cs
- Source:
- ReadOnlyTensorSpan.cs
Returns the string representation of the tensor.
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.
Remarks
This API only lists the shape of the tensor, it does not include the contents.