Skip to content

Commit c5969a9

Browse files
fix: torch.Tensor.random_ frontend (was returning ivy.array not torch_frontend.Tensor) (#28884)
1 parent 8d3ccac commit c5969a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ivy/functional/frontends/torch/tensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ def random_(
22372237
low=from_, high=to, shape=self.size(), dtype=self.dtype
22382238
)
22392239
self.ivy_array = ivy.inplace_update(self.ivy_array, ret)
2240-
return self.ivy_array
2240+
return self
22412241

22422242
@with_unsupported_dtypes(
22432243
{

0 commit comments

Comments
 (0)