[locop] Ignore the shape attribute for Push nodes (#6485)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 12 Aug 2019 11:03:03 +0000 (20:03 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 12 Aug 2019 11:03:03 +0000 (20:03 +0900)
CanonicalNodeSummaryBuilder now ignores (deprecated) tensor shape
attributes when it generates a node summary for Push nodes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/locop/src/CanonicalNodeSummaryBuilder.cpp

index 9b762b2..2691f10 100644 (file)
@@ -62,20 +62,6 @@ loco::TensorShape tensor_shape(const loco::NodeMixin<loco::NodeTrait::TensorShap
   return res;
 }
 
-loco::TensorShape push_shape(const loco::Push *m)
-{
-  loco::TensorShape res;
-
-  res.rank(m->rank());
-
-  for (uint32_t axis = 0; axis < m->rank(); ++axis)
-  {
-    res.dim(axis) = m->dim(axis);
-  }
-
-  return res;
-}
-
 loco::TensorShape pull_shape(const loco::Pull *m)
 {
   loco::TensorShape res;
@@ -221,7 +207,6 @@ public:
 
     res.arg("index", node->indexed() ? pp::fmt(node->index()) : pp::fmt('?'));
     res.arg("from", symbol_lookup(*_symtbl, node->from()));
-    res.arg("shape", pp::fmt(pretty(push_shape(node))));
     res.state(NodeDesc::State::Complete);
 
     return res;