共用方式為


Tensor<T>.Lengths 屬性

定義

取得這個 Tensor<T>中每個維度的長度。

public:
 property ReadOnlySpan<IntPtr> Lengths { ReadOnlySpan<IntPtr> get(); };
public ReadOnlySpan<IntPtr> Lengths { get; }
member this.Lengths : ReadOnlySpan<nativeint>
Public ReadOnly Property Lengths As ReadOnlySpan(Of IntPtr)

屬性值

ReadOnlySpan<T> 每個維度的長度。

實作

適用於