This commit implements BiasShape -> ShapeDescription converter.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
return res;
}
+ShapeDescription to_shape_description(const loco::BiasShape &shape)
+{
+ ShapeDescription res;
+
+ res._rank_known = true;
+
+ res._dims.resize(1);
+ res._dims.at(0) = shape.length().value();
+
+ return res;
+}
+
ShapeDescription to_shape_description(const loco::NodeShape &shape)
{
switch (shape.domain())
return to_shape_description(shape.as<loco::TensorShape>());
case loco::Domain::Feature:
return to_shape_description(shape.as<loco::FeatureShape>());
+ case loco::Domain::Bias:
+ return to_shape_description(shape.as<loco::BiasShape>());
default:
break;
}
ShapeDescription to_shape_description(const loco::TensorShape &shape);
ShapeDescription to_shape_description(const loco::FeatureShape &shape);
+ShapeDescription to_shape_description(const loco::BiasShape &shape);
ShapeDescription to_shape_description(const loco::NodeShape &shape);
/**