1 write to s_empty
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorShape.cs (1)
786
return ref ((shape.Rank == 0) ? ref
s_empty
: ref shape);
4 references to s_empty
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\TensorShape.cs (4)
735
ReadOnlySpan<nint> lengths1 = shape1Lengths.IsEmpty ?
s_empty
.Lengths : shape1Lengths;
796
lengths1 = lengths1.IsEmpty ?
s_empty
.Lengths : lengths1;
797
lengths2 = lengths2.IsEmpty ?
s_empty
.Lengths : lengths2;
1357
return
s_empty
.Slice<TGetOffsetAndLength, T>(state, out linearOffset);