Skip to content

Commit d11ec0e

Browse files
ds5678alinpahontu2912
authored andcommitted
broadcast_tensors
1 parent 4e73ba8 commit d11ec0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/TorchSharp/Tensor/torch.OtherOperations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static IList<Tensor> broadcast_tensors(params Tensor[] tensors)
6363
throw new ArgumentException(nameof(tensors));
6464
}
6565
if (tensors.Length == 1) {
66-
return tensors;
66+
return new Tensor[] { tensors[0].alias() };
6767
}
6868

6969
IntPtr[] ptrArray;

0 commit comments

Comments
 (0)