mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
11 lines
217 B
C++
11 lines
217 B
C++
|
|
#include <ATen/Tensor.h>
|
||
|
|
|
||
|
|
namespace custom {
|
||
|
|
namespace native {
|
||
|
|
at::Tensor& add_3_out(const at::Tensor& a, const at::Tensor& b, const at::Tensor& c, at::Tensor& out) {
|
||
|
|
out = a.add(b).add(c);
|
||
|
|
return out;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|