pytorch/test/cpp_extensions/jit_extension2.cpp
Peter Goldsborough 22fe542b8e Use TORCH_EXTENSION_NAME macro to avoid mismatched module/extension name (#5277)
* Warn users about mismatched module/extension name

* Define TORCH_EXTENSION_NAME macro
2018-02-16 22:31:04 -05:00

8 lines
114 B
C++

#include <torch/torch.h>
using namespace at;
Tensor exp_add(Tensor x, Tensor y) {
return x.exp() + y.exp();
}