Skip to content

Commit 4799ca4

Browse files
committed
broadcast_tensors
1 parent 0999ba7 commit 4799ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TorchSharp/Tensor/torch.OtherOperations.cs

Lines changed: 1 addition & 1 deletion
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)