pytorch
4d85e301 - Support at::cpu on non-structured kernels (#51590)

Commit
3 years ago
Support at::cpu on non-structured kernels (#51590) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51590 This PR backports a subset of Jiakai's changes from https://github.com/pytorch/pytorch/pull/51554 that adds support for at::cpu in non-structured kernels. The unusual bits: - Need to add a new forward inference rule for doing conversions of const optional<Tensor>& to const Tensor& - Need to give the wrapper functions a prefix so that the call to wrapper is not ambiguous Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: ljk53 Differential Revision: D26209871 Pulled By: ezyang fbshipit-source-id: 8162686039675ab92a2af7a14f6b18941f8944df
Author
Parents
Loading