mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
7 lines
114 B
C++
7 lines
114 B
C++
#include <torch/torch.h>
|
|
|
|
using namespace at;
|
|
|
|
Tensor exp_add(Tensor x, Tensor y) {
|
|
return x.exp() + y.exp();
|
|
}
|