30 if (node->rank() != shape.
rank())
35 if (node->dim(
i).known() != shape.
dim(
i).
known())
38 if (node->dim(
i).value() != shape.
dim(
i).
value())
50 if (node->rank() != shape.size())
54 for (
auto it = shape.begin();
it != shape.end(); ++
it, ++
i)
56 if (node->dim(
i).value() != *
it)
uint32_t value(void) const
Return the value.
bool known(void) const
Return whether the value is known (or not)
Logical unit of computation.
const Dimension & dim(uint32_t axis) const
uint32_t rank(void) const
T must_cast(FeatureEncoder *node)
A helper dynamic_cast that throws when failed.
T must_cast(loco::Node *node)
bool has_dynamic_shape(const loco::Node *node)
bool is_same_shape(const luci::CircleNode *node, const loco::TensorShape &shape)
ShapeStatus shape_status(void) const