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);
3005
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3019
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3459
outputs[i] =
Tensor
.Unsqueeze(tensors[0], dimension);
3461
return
Tensor
.ConcatenateOnDimension<T>(dimension, outputs);
3497
outputs[i] =
Tensor
.Unsqueeze(tensors[0], dimension);
3499
return ref
Tensor
.ConcatenateOnDimension<T>(dimension, tensors, destination);
3641
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(tensor.Lengths, destination.Lengths);
3733
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3758
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3783
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3808
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3837
output =
Tensor
.Create<T>(x.Lengths);
3841
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
3856
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3894
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3919
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3944
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3969
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3998
output =
Tensor
.Create<T>(x.Lengths);
4002
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4029
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4055
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4086
output =
Tensor
.Create<T>(x.Lengths);
4090
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4117
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4143
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4171
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4196
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4225
output =
Tensor
.Create<T>(x.Lengths);
4229
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4256
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4287
output =
Tensor
.Create<T>(x.Lengths);
4291
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4318
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4345
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4370
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4397
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4427
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4457
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4503
output =
Tensor
.Create<T>(x.Lengths);
4507
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, sign.Lengths));
4547
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4572
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4612
Tensor<T> output =
Tensor
.Create<T>(values, [dim1, dim2]);
4689
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4724
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4776
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4793
output =
Tensor
.Create<T>(x.Lengths);
4797
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4863
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4888
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4911
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4932
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4953
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4974
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4995
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5023
output =
Tensor
.Create<T>(x.Lengths);
5027
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5059
output =
Tensor
.Create<T>(x.Lengths);
5063
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5087
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5109
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
5132
Tensor<int> output =
Tensor
.Create<int>(x.Lengths, x.Strides);
5201
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5226
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5251
output =
Tensor
.Create<T>(x.Lengths);
5255
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5278
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5303
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5328
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5353
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5378
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5403
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5438
output =
Tensor
.Create<T>(x.Lengths);
5442
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5465
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5499
output =
Tensor
.Create<T>(x.Lengths);
5503
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5526
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5560
output =
Tensor
.Create<T>(x.Lengths);
5564
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5587
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5621
output =
Tensor
.Create<T>(x.Lengths);
5625
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5648
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5682
output =
Tensor
.Create<T>(x.Lengths);
5686
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5709
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5743
output =
Tensor
.Create<T>(x.Lengths);
5747
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5770
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5804
output =
Tensor
.Create<T>(x.Lengths);
5808
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5831
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5865
output =
Tensor
.Create<T>(x.Lengths);
5869
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5892
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5917
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5934
output =
Tensor
.Create<T>(x.Lengths);
5938
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5980
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6013
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6034
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6059
output =
Tensor
.Create<T>(x.Lengths);
6063
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6086
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6108
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
6141
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6162
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6184
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6214
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6245
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6274
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6295
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6323
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6350
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6378
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6401
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6424
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6445
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6466
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6489
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6544
output =
Tensor
.Create<T>(x.Lengths);
6548
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6611
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6632
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6653
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6674
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6695
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6720
output =
Tensor
.Create<T>(x.Lengths);
6724
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6749
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6843
nint[] newLengths =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7016
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7037
ReadOnlyTensorSpan<T> broadcastedLeft =
Tensor
.LazyBroadcast(left, newSize);
7038
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);