Jeremy Reizenstein 85c396f822 avoid using torch/extension.h in cuda
Summary:
Use aten instead of torch interface in all cuda code. This allows the cuda build to work with pytorch 1.5 with GCC 5 (e.g. the compiler of ubuntu 16.04LTS). This wasn't working. It has been failing with errors like the below, perhaps due to a bug in nvcc.

```
torch/include/torch/csrc/api/include/torch/nn/cloneable.h:68:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >
```

Reviewed By: nikhilaravi

Differential Revision: D21204029

fbshipit-source-id: ca6bdbcecf42493365e1c23a33fe35e1759fe8b6
2020-04-23 10:26:17 -07:00
..
2020-04-11 00:21:24 -07:00
2020-04-11 00:21:24 -07:00
2020-04-17 10:50:22 -07:00
2020-04-11 00:21:24 -07:00
2020-04-11 00:21:24 -07:00
2020-04-11 00:21:24 -07:00
2020-04-11 00:21:24 -07:00
2020-04-11 00:21:24 -07:00
2020-04-11 00:21:24 -07:00