pytorch
409a76f7 - [Static Runtime] Fix bug in static_runtime::to_copy (#53634)

Commit
3 years ago
[Static Runtime] Fix bug in static_runtime::to_copy (#53634) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/53634 Make the op signature of `static_runtime::to_copy` consistent with that of native_functions.yaml so it works with 2-5 args: ``` - func: to.dtype(Tensor self, ScalarType dtype, bool non_blocking=False, bool copy=False, MemoryFormat? memory_format=None) -> Tensor variants: method device_guard: False ``` (Note: this ignores all push blocking failures!) Reviewed By: ajyu Differential Revision: D26906726 fbshipit-source-id: b9203eb23619aba42b1bfed1a077401f9fe2ddf0
Author
Hao Lu
Parents
Loading