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>

实现

适用于