mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
54a4867675
* Bring back C++ extension torch.h * Fix python.h include in python_tensor.cpp
8 lines
114 B
C++
8 lines
114 B
C++
#include <torch/torch.h>
|
|
|
|
using namespace at;
|
|
|
|
Tensor exp_add(Tensor x, Tensor y) {
|
|
return x.exp() + y.exp();
|
|
}
|