This commit introduces overloaded setOperand method which takes non-scalar
(array) values.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
_module->operand()->at(id)->weight(weight);
}
+ // @brief Set non-scalar weight
+ template <typename It> void setOperand(const ann::OperandID &id, It beg, It end)
+ {
+ auto weight = _module->weight()->create();
+ weight->fill(beg, end);
+ _module->operand()->at(id)->weight(weight);
+ }
+
public:
void addOperation(ann::Operation::Code code, std::initializer_list<ann::OperandID> inputs,
std::initializer_list<ann::OperandID> outputs)