Enable concat elimination on acl backend (#3528)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 8 Nov 2018 08:55:29 +0000 (17:55 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 8 Nov 2018 08:55:29 +0000 (17:55 +0900)
Enable concat elimination on acl backend
Change config and remove assertion block

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/src/backend/acl_cl/Config.h
runtimes/neurun/src/backend/acl_cl/TensorBuilder.cc

index cb001db..cb43bfb 100644 (file)
@@ -37,11 +37,7 @@ public:
   virtual std::string id() override { return "acl_cl"; }
   virtual void initialize() override;
   virtual graph::operand::Layout getOperandLayout() { return graph::operand::Layout::NCHW; }
-  virtual bool SupportSubTensorAlloc() override
-  {
-    // NOTE ACL allocator cannot support subtensor allocation yet
-    return false;
-  }
+  virtual bool SupportSubTensorAlloc() override { return true; }
 };
 
 } // namespace acl_cl
index c3ff7b1..d591a36 100644 (file)
@@ -69,7 +69,6 @@ void TensorBuilder::prepare(void)
   // TODO Handle SubTensor(subsumption)
   //      Currently this TensorBuilder does not have subsumption info yet
   //      Allocated subtensor will be mapped to _subtensors instead of _tensors
-  assert(_subtensor_info_map.size() == 0);
   assert(_subtensors.size() == 0);
 
   for (auto &entry : _tensor_info_map)