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)
36lengths.CopyTo(MemoryMarshal.CreateSpan(ref _metadata[0], lengths.Length)); 37strides.CopyTo(MemoryMarshal.CreateSpan(ref _metadata[lengths.Length], strides.Length)); 53public ReadOnlySpan<nint> Lengths => (_metadata is null) 55: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.GetArrayDataReference(_metadata), _rank); 58public ReadOnlySpan<nint> Strides => (_metadata is null) 60: MemoryMarshal.CreateReadOnlySpan(ref MemoryMarshal.GetArrayDataReference(_metadata), _rank * 2).Slice(_rank);