Skip to content

Commit

Permalink
Expose lazy all number special scalars (#8361)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpsilva-aws authored Nov 14, 2024
1 parent d4c90c9 commit f610f70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torch_xla/csrc/init_python_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,8 @@ void InitXlaModuleBindings(py::module m) {
FLAGS_torch_lazy_all_numbers_special_scalars =
all_numbers_special_scalars;
});
m.def("_get_xla_all_numbers_special_scalars",
[]() { return FLAGS_torch_lazy_all_numbers_special_scalars; });
m.def("_set_xla_handle_special_scalars", [](bool handle_special_scalars) {
FLAGS_torch_lazy_handle_special_scalars = handle_special_scalars;
});
Expand Down

0 comments on commit f610f70

Please sign in to comment.