Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
22 references to Lengths
System.Numerics.Tensors (22)
System\Numerics\Tensors\netcore\Tensor.cs (13)
382
outerLength *= destination.
Lengths
[i];
456
bool hasMore = !destination.
Lengths
[..dimension].Contains(0);
471
hasMore = TensorShape.AdjustToNextIndex(ranges, dimension - 1, destination.
Lengths
);
1733
if (tensor.
Lengths
.SequenceEqual(lengths))
2069
nint axisLength = dimension == -1 ? tensor.FlattenedLength : tensor.
Lengths
[dimension];
2075
innerLength *= tensor.
Lengths
[i];
2216
nint axisLength = destination.
Lengths
[destinationAxis];
2564
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
2566
if (tensor.
Lengths
[i] != 1)
2568
lengths[index] = tensor.
Lengths
[i];
2580
if (tensor.
Lengths
[dimension] != 1)
2587
tensor.
Lengths
[..dimension].CopyTo(lengths);
2588
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (1)
34
ReadOnlySpan<nint> lengths = tensor.
Lengths
;
System\Numerics\Tensors\netcore\TensorOperation.cs (6)
162
ReadOnlyTensorSpan<T> input = source.Lengths.SequenceEqual(destination.
Lengths
) ? source : BroadcastSource(source, destination._shape);
927
ReadOnlySpan<nint> destinationLengths = destination.
Lengths
;
990
ReadOnlySpan<nint> destinationLengths = destination.
Lengths
;
1156
ReadOnlySpan<nint> destinationLengths = destination.
Lengths
;
1292
ReadOnlySpan<nint> destinationLengths = destination.
Lengths
;
1349
ReadOnlySpan<nint> destinationLengths = destination.
Lengths
;
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
189
public int Rank =>
Lengths
.Length;
408
result = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);