This will introduce node_shape_with_check() helper in TFShapeInferenceRule for getting node_shape of a node and revise for TFBiasAdd node
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
return sum_shape;
}
+ loco::NodeShape node_shape_with_check(const moco::tf::TFNode::Node *node)
+ {
+ auto nodeshape = node_shape(node);
+ assert(nodeshape.domain() == loco::Domain::Tensor);
+
+ return nodeshape;
+ }
+
bool valid_scala_value(moco::tf::TFConst *node)
{
auto nodeshape = node_shape(node);
loco::NodeShape visit(const moco::tf::TFBiasAdd *node) final
{
- auto value_shape = node_shape(node->value());
- assert(value_shape.domain() != loco::Domain::Unknown);
-
- return value_shape;
+ return node_shape_with_check(node->value());
}
loco::NodeShape visit(const moco::tf::TFConcatV2 *node) final