1 #ifndef _OPERATORS_ELTWISEOP_OPS_H_
2 #define _OPERATORS_ELTWISEOP_OPS_H_
4 #include "smaug/core/backend.h"
5 #include "smaug/core/operator.h"
6 #include "smaug/core/workspace.h"
16 template <
typename Backend>
20 :
Operator(name, opType, workspace) {
21 inputs.resize(kNumInputs,
nullptr);
22 outputs.resize(kNumOutputs,
nullptr);
26 Tensor* output =
new Tensor(name, getInput(Input0)->getShape());
28 workspace->addTensor(output);
32 enum { Input0, Input1, kNumInputs };
33 enum { Outputs, kNumOutputs };