190 references to Tensor
System.Numerics.Tensors (190)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (4)
542
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
545
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);
598
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
601
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);
System\Numerics\Tensors\netcore\TensorExtensions.cs (182)
83
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, lengths);
86
Tensor<T> output =
Tensor
.CreateUninitialized<T>(intermediate.Lengths);
100
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
115
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
130
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
320
tensor =
Tensor
.Create<T>([totalLength]);
327
tensor =
Tensor
.Create<T>(lengths);
460
result =
Tensor
.Create<bool>(x.Lengths, false);
464
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
465
result =
Tensor
.Create<bool>(newSize, false);
494
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
538
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
598
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
682
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
828
result =
Tensor
.Create<bool>(x.Lengths, false);
832
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
833
result =
Tensor
.Create<bool>(newSize, false);
865
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
911
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
971
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1037
result =
Tensor
.Create<bool>(x.Lengths, false);
1041
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1042
result =
Tensor
.Create<bool>(newSize, false);
1074
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1120
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
1180
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1241
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1364
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1488
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1612
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1740
result =
Tensor
.Create<bool>(x.Lengths, false);
1744
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1745
result =
Tensor
.Create<bool>(newSize, false);
1777
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1823
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
1883
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1949
result =
Tensor
.Create<bool>(x.Lengths, false);
1953
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1954
result =
Tensor
.Create<bool>(newSize, false);
1986
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2032
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
2092
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
2154
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2278
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2401
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2524
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
3011
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3025
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3465
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
3467
return
Tensor
.ConcatenateOnDimension<T>(dimension, outputs);
3503
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
3505
return ref
Tensor
.ConcatenateOnDimension<T>(dimension, tensors, destination);
3647
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(tensor.Lengths, destination.Lengths);
3739
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3764
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3789
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3814
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3843
output =
Tensor
.Create<T>(x.Lengths);
3847
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
3862
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3900
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3925
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3950
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3975
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4004
output =
Tensor
.Create<T>(x.Lengths);
4008
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4035
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4061
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4092
output =
Tensor
.Create<T>(x.Lengths);
4096
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4123
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4149
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4177
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4202
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4231
output =
Tensor
.Create<T>(x.Lengths);
4235
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4262
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4293
output =
Tensor
.Create<T>(x.Lengths);
4297
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4324
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4351
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4376
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4403
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4433
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4463
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4509
output =
Tensor
.Create<T>(x.Lengths);
4513
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, sign.Lengths));
4553
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4578
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4618
Tensor<T> output =
Tensor
.Create<T>(values, [dim1, dim2]);
4695
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4730
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4782
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4799
output =
Tensor
.Create<T>(x.Lengths);
4803
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4869
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4894
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4917
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4938
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4959
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4980
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5001
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5029
output =
Tensor
.Create<T>(x.Lengths);
5033
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5065
output =
Tensor
.Create<T>(x.Lengths);
5069
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5093
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5115
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
5138
Tensor<int> output =
Tensor
.Create<int>(x.Lengths, x.Strides);
5207
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5232
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5257
output =
Tensor
.Create<T>(x.Lengths);
5261
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5284
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5309
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5334
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5359
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5384
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5409
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5444
output =
Tensor
.Create<T>(x.Lengths);
5448
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5471
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5505
output =
Tensor
.Create<T>(x.Lengths);
5509
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5532
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5566
output =
Tensor
.Create<T>(x.Lengths);
5570
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5593
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5627
output =
Tensor
.Create<T>(x.Lengths);
5631
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5654
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5688
output =
Tensor
.Create<T>(x.Lengths);
5692
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5715
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5749
output =
Tensor
.Create<T>(x.Lengths);
5753
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5776
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5810
output =
Tensor
.Create<T>(x.Lengths);
5814
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5837
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5871
output =
Tensor
.Create<T>(x.Lengths);
5875
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5898
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5923
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5940
output =
Tensor
.Create<T>(x.Lengths);
5944
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5986
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6019
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6040
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6065
output =
Tensor
.Create<T>(x.Lengths);
6069
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6092
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6114
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
6147
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6168
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6190
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6220
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6251
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6280
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6301
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6329
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6356
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6384
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6407
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6430
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6451
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6472
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6495
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6550
output =
Tensor
.Create<T>(x.Lengths);
6554
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6617
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6638
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6659
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6680
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6701
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6726
output =
Tensor
.Create<T>(x.Lengths);
6730
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6755
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6849
nint[] newLengths =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7022
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7043
ReadOnlyTensorSpan<T> broadcastedLeft =
Tensor
.LazyBroadcast(left, newSize);
7044
ReadOnlyTensorSpan<T> broadcastedRight =
Tensor
.LazyBroadcast(right, newSize);
System\Numerics\Tensors\netcore\TensorSpan.cs (4)
573
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
576
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);
627
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
630
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);