[moco-tf] Fix build break (#6087)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 1 Aug 2019 01:45:06 +0000 (10:45 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 1 Aug 2019 01:45:06 +0000 (10:45 +0900)
This commit fixes build break related with API deisgn changes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/moco-tf/src/IR/TFDepthwiseConv2dNative.h
compiler/moco-tf/src/Op/AvgPool.cpp
compiler/moco-tf/src/Op/DepthwiseConv2dNative.cpp
compiler/moco-tf/src/Transforms/FixShapeTransform.cpp

index 51ab87f..6eadaa8 100644 (file)
@@ -25,6 +25,7 @@
 #include <loco/IR/Pad.h>
 
 #include <string>
+#include <vector>
 
 namespace moco
 {
index 043e2ae..3046aec 100644 (file)
@@ -34,6 +34,8 @@
 #include <cassert>
 #include <stdexcept>
 
+using namespace plier::tf;
+
 namespace moco
 {
 namespace tf
index 9f30b6a..b05dd1a 100644 (file)
@@ -31,6 +31,8 @@
 
 #include <cassert>
 
+using namespace plier::tf;
+
 namespace
 {
 using namespace moco::tf;
index 17b821b..90c2c5d 100644 (file)
 #include <sstream>
 #include <stdexcept>
 
+using namespace plier::tf;
+// TODO Remove this workaround
+const plier::tf::DataLayout as_DataLayout(const std::string &s)
+{
+  return plier::tf::as_data_layout(s);
+}
+
 namespace
 {