Tensor.ToString 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ToString<T>(Tensor<T>, ReadOnlySpan<IntPtr>)
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
類型參數
- T
參數
- maximumLengths
-
ReadOnlySpan<nativeint>
每個維度的最大長度
傳回
tensor
的 String 表示法
適用於
ToString<T>(TensorSpan<T>, ReadOnlySpan<IntPtr>)
建立 TensorSpan<T>的 String 表示法。/>
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
類型參數
- T
參數
- tensor
- TensorSpan<T>
您想要以字串表示的 TensorSpan<T>。
- maximumLengths
-
ReadOnlySpan<nativeint>
每個維度的最大長度
傳回
tensor
的 String 表示法
適用於
ToString<T>(ReadOnlyTensorSpan<T>, ReadOnlySpan<IntPtr>)
建立 ReadOnlyTensorSpan<T>的 String 表示法。/>
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
類型參數
- T
參數
- tensor
- ReadOnlyTensorSpan<T>
您想要以字串表示的 ReadOnlyTensorSpan<T>。
- maximumLengths
-
ReadOnlySpan<nativeint>
每個維度的最大長度