Make TensorVariable copy assignable (#575)
authorVladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 <v.plazun@partner.samsung.com>
Tue, 10 Jul 2018 10:56:24 +0000 (13:56 +0300)
committerSergey Vostokov/AI Tools Lab /SRR/Staff Engineer/삼성전자 <s.vostokov@samsung.com>
Tue, 10 Jul 2018 10:56:24 +0000 (19:56 +0900)
Required by model IR interpreter

Signed-off-by: Vladimir Plazun <v.plazun@partner.samsung.com>
contrib/nnc/libs/core/include/nnc/core/linalg/TensorVariant.h

index acaf3e8..d955f79 100644 (file)
@@ -47,13 +47,13 @@ public:
   size_t getElementSize() const { return _element_size; }
 
  private:
-  const DTYPE _dtype;
-  const std::shared_ptr<char> _data;
+  DTYPE _dtype;
+  std::shared_ptr<char> _data;
   uint_fast32_t _strides[MAX_DIMENSIONS];
   size_t _rank;
   Shape _shape;
 
-  const size_t _element_size;
+  size_t _element_size;
 };
 
 } // namespace ADT