30 if (node->rank() != shape.
rank())
33 for (uint32_t i = 0; i < node->rank(); ++i)
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)
64 const auto circle_node = loco::must_cast<const luci::CircleNode *>(node);
65 for (uint32_t i = 0; i < circle_node->rank(); ++i)
66 if (!circle_node->dim(i).known())
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
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