Closed agordo closed 3 years ago
Summary: Add support to other types to recursive_copy_to_device. In particular, as long as the input has a "to" method, recursive_copy_to_device will be able to handle it. This opens support to more complex inputs, e.g. classes.
Differential Revision: D24910581
This pull request was exported from Phabricator. Differential Revision: D24910581
Summary: Add support to other types to recursive_copy_to_device. In particular, as long as the input has a "to" method, recursive_copy_to_device will be able to handle it. This opens support to more complex inputs, e.g. classes.
Differential Revision: D24910581