1 write to _metadata
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorShape.cs (1)
35
_metadata
= new nint[lengths.Length + strides.Length];
6 references to _metadata
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\TensorShape.cs (6)
36
lengths.CopyTo(MemoryMarshal.CreateSpan(ref
_metadata
[0], lengths.Length));
37
strides.CopyTo(MemoryMarshal.CreateSpan(ref
_metadata
[lengths.Length], strides.Length));
53
public ReadOnlySpan<nint> Lengths => (
_metadata
is null)
55
: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.GetArrayDataReference(
_metadata
), _rank);
58
public ReadOnlySpan<nint> Strides => (
_metadata
is null)
60
: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.GetArrayDataReference(
_metadata
), _rank * 2).Slice(_rank);