Method ToReadOnlySpan ToReadOnlySpan() Returns a ReadOnlySpan on the linear memory representation of the data in this tensor. Declaration public ReadOnlySpan<int> ToReadOnlySpan() Returns Type Description ReadOnlySpan<int> Span of tensor data.