1 write to _rank
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorShape.cs (1)
32
_rank
= lengths.Length;
6 references to _rank
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\TensorHelpers.cs (1)
108
for (int i = tensor._shape.
_rank
- 2; i >= 0; i--)
System\Numerics\Tensors\netcore\TensorShape.cs (5)
54
? ((ReadOnlySpan<nint>)_lengths).Slice(0,
_rank
)
55
: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.GetArrayDataReference(_metadata),
_rank
);
59
? ((ReadOnlySpan<nint>)_strides).Slice(0,
_rank
)
60
: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.GetArrayDataReference(_metadata),
_rank
* 2).Slice(
_rank
);