1#ifndef ATEN_OPS_LINALG_H_
2#define ATEN_OPS_LINALG_H_
66template <
bool Conjugate = false>
89 const std::vector<int>& permutation,
119 const std::vector<int64_t>& stride,
140 const std::vector<int64_t>& stride,
148 const int64_t& inner_most_dim,
A multi-dimensional array of elements of a single data type.
Definition tensor.h:32
#define T
Definition exp.cpp:237
ct::Tensor operator*(const ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:181
ct::Tensor operator+(const ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:152
ct::Tensor operator/(const ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:191
ct::Tensor & operator+=(ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:201
ct::Tensor & operator-=(ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:209
ct::Tensor & operator*=(ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:228
ct::Tensor operator-(const ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:162
ct::Tensor & operator/=(ct::Tensor &self, const ct::Tensor &other)
Definition linalg_op.cpp:236
A functor to perform add operation on a Tensor.
Definition linalg_op.h:17
void operator()(const Tensor &x, const Tensor &y, Tensor &z)
Perform add operation on the input Tensors.
Definition linalg_op.cpp:11
Definition linalg_op.h:58
void operator()(const Tensor &x, const Tensor &y, Tensor &z)
Definition linalg_op.cpp:76
A functor for inflating a tensor.
Definition linalg_op.h:128
void operator()(const Tensor &input, const std::vector< int64_t > &stride, Tensor &output)
Inflate the input tensor.
Definition linalg_op.cpp:116
Definition linalg_op.h:43
void operator()(const Tensor &x, const Tensor &y, Tensor &z)
Definition linalg_op.cpp:44
Definition linalg_op.h:145
void operator()(const Tensor &input, const int64_t &inner_most_dim, Tensor &output)
Definition linalg_op.cpp:127
A functor to perform stride operation on a Tensor.
Definition linalg_op.h:103
void operator()(const Tensor &input, const std::vector< int64_t > &stride, Tensor &output)
Perform stride operation on the input Tensor.
Definition linalg_op.cpp:105
Definition linalg_op.h:67
void operator()(const Tensor &input, const std::vector< int > &permutation, Tensor &output)
Perform the transpose operation on the input tensor.
Definition linalg_op.cpp:94
const std::map< std::string, std::vector< double > > op
Definition vdwd3_autoset_xcparam.cpp:372