33 for (uint32_t r = 0;
r < tensor_shape.
rank(); ++
r)
57 cloned->newShape()->rank(rank);
114 "Reshape infer shape is invalid.");
122 auto rank = new_shape->
rank();
130 if (new_shape->dim(
i) > 0)
144 auto num_elements =
shape_node->dim(0).value();
163 INFO(l) <<
"CircleReshape: Two new shape information mismatched : " << std::endl;
215 INTERNAL_EXN(
"Reshape Op cannot infer unknown dimension from inputs.");
#define INTERNAL_EXN(msg)
@ brief throw internal exception with message
std::ostream & operator<<(std::ostream &os, const circledump::ModelEx &model)
uint32_t value(void) const
Return the value.
bool known(void) const
Return whether the value is known (or not)
const Dimension & dim(uint32_t axis) const
uint32_t rank(void) const
Class to build tensor data.
Temporary DummyNode used with dangle CircleNode.
uint32_t rank(void) const
int32_t dim(uint32_t n) const
const Shape * newShape(void) const
loco::Node * shape(void) const
loco::Node * tensor(void) const
loco::TensorShape visit(const luci::CircleNode *node) final
Default fallback.
const luci_interpreter::RuntimeShape output_shape
#define LUCI_ASSERT(condition, msg)
T must_cast(FeatureEncoder *node)
A helper dynamic_cast that throws when failed.
DataType
"scalar" value type
loco::TensorShape circle_shape(const luci::CircleNode *node)
T must_cast(loco::Node *node)