[exo] passing param of InputHandler as reference type (#8768)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Wed, 6 Nov 2019 03:14:57 +0000 (12:14 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 6 Nov 2019 03:14:57 +0000 (12:14 +0900)
vector is now passed as a reference type.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/exo/src/Conversion/EltwiseBinaryConverter.h
compiler/exo/src/GraphBlock.h

index 70b992e..095da9e 100644 (file)
@@ -47,7 +47,7 @@ public:
     return inputs;
   }
 
-  void set(TFLBIN *replacer, std::vector<loco::Node *> to) override
+  void set(TFLBIN *replacer, std::vector<loco::Node *> &to) override
   {
     assert(to.size() == 2);
 
index b50930b..c98b1f1 100644 (file)
@@ -110,7 +110,7 @@ public:
   virtual std::vector<loco::Node *> getInputsToConvert(CanonicalT *origin) = 0;
 
   /// @brief Set the inputs of replacer to new_inputs
-  virtual void set(TFLT *replacer, std::vector<loco::Node *> new_inputs) = 0;
+  virtual void set(TFLT *replacer, std::vector<loco::Node *> &new_inputs) = 0;
 
   /// @brief Set the inputs to nullptr
   virtual void nullify(CanonicalT *origin) = 0;