190 references to Tensor
System.Numerics.Tensors (190)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (4)
542nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 545ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths); 598nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 601ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths);
System\Numerics\Tensors\netcore\TensorExtensions.cs (182)
83nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, lengths); 86Tensor<T> output = Tensor.CreateUninitialized<T>(intermediate.Lengths); 100nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 115nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 130nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 320tensor = Tensor.Create<T>([totalLength]); 327tensor = Tensor.Create<T>(lengths); 460result = Tensor.Create<bool>(x.Lengths, false); 464nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 465result = Tensor.Create<bool>(newSize, false); 494nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 538Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 598nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 682nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 828result = Tensor.Create<bool>(x.Lengths, false); 832nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 833result = Tensor.Create<bool>(newSize, false); 865nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 911Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 971Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1037result = Tensor.Create<bool>(x.Lengths, false); 1041nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1042result = Tensor.Create<bool>(newSize, false); 1074nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1120Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 1180Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1241nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1364nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1488nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1612nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1740result = Tensor.Create<bool>(x.Lengths, false); 1744nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1745result = Tensor.Create<bool>(newSize, false); 1777nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1823Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 1883Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1949result = Tensor.Create<bool>(x.Lengths, false); 1953nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1954result = Tensor.Create<bool>(newSize, false); 1986nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2032Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 2092Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 2154nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2278nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2401nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2524nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 3005Tensor<T> output = Tensor.Create<T>(tensor.Lengths); 3019Tensor<T> output = Tensor.Create<T>(tensor.Lengths); 3459outputs[i] = Tensor.Unsqueeze(tensors[0], dimension); 3461return Tensor.ConcatenateOnDimension<T>(dimension, outputs); 3497outputs[i] = Tensor.Unsqueeze(tensors[0], dimension); 3499return ref Tensor.ConcatenateOnDimension<T>(dimension, tensors, destination); 3641nint[] newSize = Tensor.GetSmallestBroadcastableLengths(tensor.Lengths, destination.Lengths); 3733Tensor<T> output = Tensor.Create<T>(x.Lengths); 3758Tensor<T> output = Tensor.Create<T>(x.Lengths); 3783Tensor<T> output = Tensor.Create<T>(x.Lengths); 3808Tensor<T> output = Tensor.Create<T>(x.Lengths); 3837output = Tensor.Create<T>(x.Lengths); 3841output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 3856Tensor<T> output = Tensor.Create<T>(x.Lengths); 3894Tensor<T> output = Tensor.Create<T>(x.Lengths); 3919Tensor<T> output = Tensor.Create<T>(x.Lengths); 3944Tensor<T> output = Tensor.Create<T>(x.Lengths); 3969Tensor<T> output = Tensor.Create<T>(x.Lengths); 3998output = Tensor.Create<T>(x.Lengths); 4002output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4029Tensor<T> output = Tensor.Create<T>(x.Lengths); 4055Tensor<T> output = Tensor.Create<T>(y.Lengths); 4086output = Tensor.Create<T>(x.Lengths); 4090output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4117Tensor<T> output = Tensor.Create<T>(x.Lengths); 4143Tensor<T> output = Tensor.Create<T>(y.Lengths); 4171Tensor<T> output = Tensor.Create<T>(x.Lengths); 4196Tensor<T> output = Tensor.Create<T>(x.Lengths); 4225output = Tensor.Create<T>(x.Lengths); 4229output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4256Tensor<T> output = Tensor.Create<T>(x.Lengths); 4287output = Tensor.Create<T>(x.Lengths); 4291output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4318Tensor<T> output = Tensor.Create<T>(x.Lengths); 4345Tensor<T> output = Tensor.Create<T>(x.Lengths); 4370Tensor<T> output = Tensor.Create<T>(x.Lengths); 4397Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4427Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4457Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4503output = Tensor.Create<T>(x.Lengths); 4507output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, sign.Lengths)); 4547Tensor<T> output = Tensor.Create<T>(x.Lengths); 4572Tensor<T> output = Tensor.Create<T>(x.Lengths); 4612Tensor<T> output = Tensor.Create<T>(values, [dim1, dim2]); 4689Tensor<T> output = Tensor.Create<T>(x.Lengths); 4724Tensor<T> output = Tensor.Create<T>(x.Lengths); 4776Tensor<T> output = Tensor.Create<T>(y.Lengths); 4793output = Tensor.Create<T>(x.Lengths); 4797output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4863Tensor<T> output = Tensor.Create<T>(x.Lengths); 4888Tensor<T> output = Tensor.Create<T>(x.Lengths); 4911Tensor<T> output = Tensor.Create<T>(x.Lengths); 4932Tensor<T> output = Tensor.Create<T>(x.Lengths); 4953Tensor<T> output = Tensor.Create<T>(x.Lengths); 4974Tensor<T> output = Tensor.Create<T>(x.Lengths); 4995Tensor<T> output = Tensor.Create<T>(x.Lengths); 5023output = Tensor.Create<T>(x.Lengths); 5027output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5059output = Tensor.Create<T>(x.Lengths); 5063output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5087Tensor<T> output = Tensor.Create<T>(x.Lengths); 5109Tensor<T> output = Tensor.Create<T>(y.Lengths); 5132Tensor<int> output = Tensor.Create<int>(x.Lengths, x.Strides); 5201Tensor<T> output = Tensor.Create<T>(x.Lengths); 5226Tensor<T> output = Tensor.Create<T>(x.Lengths); 5251output = Tensor.Create<T>(x.Lengths); 5255output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5278Tensor<T> output = Tensor.Create<T>(x.Lengths); 5303Tensor<T> output = Tensor.Create<T>(x.Lengths); 5328Tensor<T> output = Tensor.Create<T>(x.Lengths); 5353Tensor<T> output = Tensor.Create<T>(x.Lengths); 5378Tensor<T> output = Tensor.Create<T>(x.Lengths); 5403Tensor<T> output = Tensor.Create<T>(x.Lengths); 5438output = Tensor.Create<T>(x.Lengths); 5442output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5465Tensor<T> output = Tensor.Create<T>(x.Lengths); 5499output = Tensor.Create<T>(x.Lengths); 5503output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5526Tensor<T> output = Tensor.Create<T>(x.Lengths); 5560output = Tensor.Create<T>(x.Lengths); 5564output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5587Tensor<T> output = Tensor.Create<T>(x.Lengths); 5621output = Tensor.Create<T>(x.Lengths); 5625output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5648Tensor<T> output = Tensor.Create<T>(x.Lengths); 5682output = Tensor.Create<T>(x.Lengths); 5686output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5709Tensor<T> output = Tensor.Create<T>(x.Lengths); 5743output = Tensor.Create<T>(x.Lengths); 5747output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5770Tensor<T> output = Tensor.Create<T>(x.Lengths); 5804output = Tensor.Create<T>(x.Lengths); 5808output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5831Tensor<T> output = Tensor.Create<T>(x.Lengths); 5865output = Tensor.Create<T>(x.Lengths); 5869output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5892Tensor<T> output = Tensor.Create<T>(x.Lengths); 5917Tensor<T> output = Tensor.Create<T>(x.Lengths); 5934output = Tensor.Create<T>(x.Lengths); 5938output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5980Tensor<T> output = Tensor.Create<T>(x.Lengths); 6013Tensor<T> output = Tensor.Create<T>(x.Lengths); 6034Tensor<T> output = Tensor.Create<T>(x.Lengths); 6059output = Tensor.Create<T>(x.Lengths); 6063output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6086Tensor<T> output = Tensor.Create<T>(x.Lengths); 6108Tensor<T> output = Tensor.Create<T>(y.Lengths); 6141Tensor<T> output = Tensor.Create<T>(x.Lengths); 6162Tensor<T> output = Tensor.Create<T>(x.Lengths); 6184Tensor<T> output = Tensor.Create<T>(x.Lengths); 6214Tensor<T> output = Tensor.Create<T>(x.Lengths); 6245Tensor<T> output = Tensor.Create<T>(x.Lengths); 6274Tensor<T> output = Tensor.Create<T>(x.Lengths); 6295Tensor<T> output = Tensor.Create<T>(x.Lengths); 6323Tensor<T> output = Tensor.Create<T>(x.Lengths); 6350Tensor<T> output = Tensor.Create<T>(x.Lengths); 6378Tensor<T> output = Tensor.Create<T>(x.Lengths); 6401Tensor<T> output = Tensor.Create<T>(x.Lengths); 6424Tensor<T> output = Tensor.Create<T>(x.Lengths); 6445Tensor<T> output = Tensor.Create<T>(x.Lengths); 6466Tensor<T> output = Tensor.Create<T>(x.Lengths); 6489Tensor<T> output = Tensor.Create<T>(x.Lengths); 6544output = Tensor.Create<T>(x.Lengths); 6548output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6611Tensor<T> output = Tensor.Create<T>(x.Lengths); 6632Tensor<T> output = Tensor.Create<T>(x.Lengths); 6653Tensor<T> output = Tensor.Create<T>(x.Lengths); 6674Tensor<T> output = Tensor.Create<T>(x.Lengths); 6695Tensor<T> output = Tensor.Create<T>(x.Lengths); 6720output = Tensor.Create<T>(x.Lengths); 6724output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6749Tensor<T> output = Tensor.Create<T>(x.Lengths); 6843nint[] newLengths = Tensor.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths); 7016nint[] newSize = Tensor.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths); 7037ReadOnlyTensorSpan<T> broadcastedLeft = Tensor.LazyBroadcast(left, newSize); 7038ReadOnlyTensorSpan<T> broadcastedRight = Tensor.LazyBroadcast(right, newSize);
System\Numerics\Tensors\netcore\TensorSpan.cs (4)
573nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 576ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths); 627nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 630ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths);