190 references to Tensor
System.Numerics.Tensors (190)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (4)
559nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 562ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths); 615nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 618ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths);
System\Numerics\Tensors\netcore\TensorExtensions.cs (182)
68nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, lengths); 71Tensor<T> output = Tensor.CreateUninitialized<T>(intermediate.Lengths); 85nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 100nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 115nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 305tensor = Tensor.Create<T>([totalLength]); 312tensor = Tensor.Create<T>(lengths); 445result = Tensor.Create<bool>(x.Lengths, false); 449nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 450result = Tensor.Create<bool>(newSize, false); 479nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 523Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 583nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 667nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 813result = Tensor.Create<bool>(x.Lengths, false); 817nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 818result = Tensor.Create<bool>(newSize, false); 850nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 896Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 956Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1022result = Tensor.Create<bool>(x.Lengths, false); 1026nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1027result = Tensor.Create<bool>(newSize, false); 1059nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1105Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 1165Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1226nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1349nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1473nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1597nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1725result = Tensor.Create<bool>(x.Lengths, false); 1729nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1730result = Tensor.Create<bool>(newSize, false); 1762nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1808Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 1868Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1934result = Tensor.Create<bool>(x.Lengths, false); 1938nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1939result = Tensor.Create<bool>(newSize, false); 1971nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2017Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 2077Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 2139nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2263nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2386nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2509nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2996Tensor<T> output = Tensor.Create<T>(tensor.Lengths); 3010Tensor<T> output = Tensor.Create<T>(tensor.Lengths); 3450outputs[i] = Tensor.Unsqueeze(tensors[i], dimension); 3452return Tensor.ConcatenateOnDimension<T>(dimension, outputs); 3488outputs[i] = Tensor.Unsqueeze(tensors[i], dimension); 3490return ref Tensor.ConcatenateOnDimension<T>(dimension, outputs, destination); 3620nint[] newSize = Tensor.GetSmallestBroadcastableLengths(tensor.Lengths, destination.Lengths); 3751Tensor<T> output = Tensor.Create<T>(x.Lengths); 3776Tensor<T> output = Tensor.Create<T>(x.Lengths); 3801Tensor<T> output = Tensor.Create<T>(x.Lengths); 3826Tensor<T> output = Tensor.Create<T>(x.Lengths); 3855output = Tensor.Create<T>(x.Lengths); 3859output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 3874Tensor<T> output = Tensor.Create<T>(x.Lengths); 3912Tensor<T> output = Tensor.Create<T>(x.Lengths); 3937Tensor<T> output = Tensor.Create<T>(x.Lengths); 3962Tensor<T> output = Tensor.Create<T>(x.Lengths); 3987Tensor<T> output = Tensor.Create<T>(x.Lengths); 4016output = Tensor.Create<T>(x.Lengths); 4020output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4047Tensor<T> output = Tensor.Create<T>(x.Lengths); 4073Tensor<T> output = Tensor.Create<T>(y.Lengths); 4104output = Tensor.Create<T>(x.Lengths); 4108output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4135Tensor<T> output = Tensor.Create<T>(x.Lengths); 4161Tensor<T> output = Tensor.Create<T>(y.Lengths); 4189Tensor<T> output = Tensor.Create<T>(x.Lengths); 4214Tensor<T> output = Tensor.Create<T>(x.Lengths); 4256output = Tensor.Create<T>(x.Lengths); 4260output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4287Tensor<T> output = Tensor.Create<T>(x.Lengths); 4318output = Tensor.Create<T>(x.Lengths); 4322output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4349Tensor<T> output = Tensor.Create<T>(x.Lengths); 4376Tensor<T> output = Tensor.Create<T>(x.Lengths); 4401Tensor<T> output = Tensor.Create<T>(x.Lengths); 4428Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4458Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4488Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4534output = Tensor.Create<T>(x.Lengths); 4538output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, sign.Lengths)); 4578Tensor<T> output = Tensor.Create<T>(x.Lengths); 4603Tensor<T> output = Tensor.Create<T>(x.Lengths); 4643Tensor<T> output = Tensor.Create<T>(values, [dim1, dim2]); 4720Tensor<T> output = Tensor.Create<T>(x.Lengths); 4755Tensor<T> output = Tensor.Create<T>(x.Lengths); 4807Tensor<T> output = Tensor.Create<T>(y.Lengths); 4824output = Tensor.Create<T>(x.Lengths); 4828output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4894Tensor<T> output = Tensor.Create<T>(x.Lengths); 4919Tensor<T> output = Tensor.Create<T>(x.Lengths); 4942Tensor<T> output = Tensor.Create<T>(x.Lengths); 4963Tensor<T> output = Tensor.Create<T>(x.Lengths); 4984Tensor<T> output = Tensor.Create<T>(x.Lengths); 5005Tensor<T> output = Tensor.Create<T>(x.Lengths); 5026Tensor<T> output = Tensor.Create<T>(x.Lengths); 5054output = Tensor.Create<T>(x.Lengths); 5058output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5090output = Tensor.Create<T>(x.Lengths); 5094output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5118Tensor<T> output = Tensor.Create<T>(x.Lengths); 5140Tensor<T> output = Tensor.Create<T>(y.Lengths); 5163Tensor<int> output = Tensor.Create<int>(x.Lengths, x.Strides); 5232Tensor<T> output = Tensor.Create<T>(x.Lengths); 5257Tensor<T> output = Tensor.Create<T>(x.Lengths); 5282output = Tensor.Create<T>(x.Lengths); 5286output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5309Tensor<T> output = Tensor.Create<T>(x.Lengths); 5334Tensor<T> output = Tensor.Create<T>(x.Lengths); 5359Tensor<T> output = Tensor.Create<T>(x.Lengths); 5384Tensor<T> output = Tensor.Create<T>(x.Lengths); 5409Tensor<T> output = Tensor.Create<T>(x.Lengths); 5434Tensor<T> output = Tensor.Create<T>(x.Lengths); 5469output = Tensor.Create<T>(x.Lengths); 5473output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5496Tensor<T> output = Tensor.Create<T>(x.Lengths); 5530output = Tensor.Create<T>(x.Lengths); 5534output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5557Tensor<T> output = Tensor.Create<T>(x.Lengths); 5591output = Tensor.Create<T>(x.Lengths); 5595output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5618Tensor<T> output = Tensor.Create<T>(x.Lengths); 5652output = Tensor.Create<T>(x.Lengths); 5656output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5679Tensor<T> output = Tensor.Create<T>(x.Lengths); 5713output = Tensor.Create<T>(x.Lengths); 5717output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5740Tensor<T> output = Tensor.Create<T>(x.Lengths); 5774output = Tensor.Create<T>(x.Lengths); 5778output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5801Tensor<T> output = Tensor.Create<T>(x.Lengths); 5835output = Tensor.Create<T>(x.Lengths); 5839output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5862Tensor<T> output = Tensor.Create<T>(x.Lengths); 5896output = Tensor.Create<T>(x.Lengths); 5900output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5923Tensor<T> output = Tensor.Create<T>(x.Lengths); 5948Tensor<T> output = Tensor.Create<T>(x.Lengths); 5965output = Tensor.Create<T>(x.Lengths); 5969output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6011Tensor<T> output = Tensor.Create<T>(x.Lengths); 6044Tensor<T> output = Tensor.Create<T>(x.Lengths); 6065Tensor<T> output = Tensor.Create<T>(x.Lengths); 6090output = Tensor.Create<T>(x.Lengths); 6094output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6117Tensor<T> output = Tensor.Create<T>(x.Lengths); 6139Tensor<T> output = Tensor.Create<T>(y.Lengths); 6172Tensor<T> output = Tensor.Create<T>(x.Lengths); 6193Tensor<T> output = Tensor.Create<T>(x.Lengths); 6215Tensor<T> output = Tensor.Create<T>(x.Lengths); 6245Tensor<T> output = Tensor.Create<T>(x.Lengths); 6276Tensor<T> output = Tensor.Create<T>(x.Lengths); 6305Tensor<T> output = Tensor.Create<T>(x.Lengths); 6326Tensor<T> output = Tensor.Create<T>(x.Lengths); 6354Tensor<T> output = Tensor.Create<T>(x.Lengths); 6381Tensor<T> output = Tensor.Create<T>(x.Lengths); 6409Tensor<T> output = Tensor.Create<T>(x.Lengths); 6432Tensor<T> output = Tensor.Create<T>(x.Lengths); 6455Tensor<T> output = Tensor.Create<T>(x.Lengths); 6476Tensor<T> output = Tensor.Create<T>(x.Lengths); 6497Tensor<T> output = Tensor.Create<T>(x.Lengths); 6520Tensor<T> output = Tensor.Create<T>(x.Lengths); 6588output = Tensor.Create<T>(x.Lengths); 6592output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6668Tensor<T> output = Tensor.Create<T>(x.Lengths); 6689Tensor<T> output = Tensor.Create<T>(x.Lengths); 6710Tensor<T> output = Tensor.Create<T>(x.Lengths); 6731Tensor<T> output = Tensor.Create<T>(x.Lengths); 6752Tensor<T> output = Tensor.Create<T>(x.Lengths); 6777output = Tensor.Create<T>(x.Lengths); 6781output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6806Tensor<T> output = Tensor.Create<T>(x.Lengths); 6900nint[] newLengths = Tensor.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths); 7073nint[] newSize = Tensor.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths); 7094ReadOnlyTensorSpan<T> broadcastedLeft = Tensor.LazyBroadcast(left, newSize); 7095ReadOnlyTensorSpan<T> broadcastedRight = Tensor.LazyBroadcast(right, newSize);
System\Numerics\Tensors\netcore\TensorSpan.cs (4)
588nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 591ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths); 642nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 645ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths);