Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
13 references to Lengths
System.Numerics.Tensors (13)
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
272result = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (12)
1542ReadOnlySpan<nint> lengths = tensor.Lengths; 1696if (tensor.Lengths.SequenceEqual(lengths)) 1715GetReshapeStrides(tensor.Lengths, tensor.Strides, tensor.IsDense, newLengths, strides); 2485for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 2487if (tensor.Lengths[i] != 1) 2489lengths[index] = tensor.Lengths[i]; 2501if (tensor.Lengths[dimension] != 1) 2508tensor.Lengths[..dimension].CopyTo(lengths); 2509tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2975if (tensor.Lengths.Length < 2) 2981tensor.Lengths.CopyTo(lengths); 3057ReadOnlySpan<nint> lengths = tensor.Lengths;