Skip to content

Commit

Permalink
Rename random_.from to random_.from_int (#4578)
Browse files Browse the repository at this point in the history
* Rename random_.from to random_.from_int

* Run linter

* Add torch_pin

* Delete .torch_pin
  • Loading branch information
wonjoolee95 committed Feb 8, 2023
1 parent 76b34fb commit 0136b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions torch_xla/csrc/aten_xla_type.cpp
Expand Up @@ -2253,8 +2253,8 @@ at::Tensor& XLANativeFunctions::random_(
TORCH_LAZY_FN_COUNTER("xla::");
if (generator.has_value() && generator->defined()) {
return at::native::call_fallback_fn<
&xla_cpu_fallback, ATEN_OP2(random_, from)>::call(self, from, to,
generator);
&xla_cpu_fallback, ATEN_OP2(random_, from_int)>::call(self, from, to,
generator);
}
XLATensorPtr self_tensor = bridge::GetXlaTensor(self);
at::ScalarType dtype = self_tensor->dtype();
Expand Down
2 changes: 1 addition & 1 deletion xla_native_functions.yaml
Expand Up @@ -257,7 +257,7 @@ supported:
- put_
- qr
- random_
- random_.from
- random_.from_int
- random_.to
- reflection_pad2d
- reflection_pad2d_backward
Expand Down

0 comments on commit 0136b7c

Please sign in to comment.