44 if (start_node ==
nullptr || limit_node ==
nullptr || delta_node ==
nullptr)
49 double start = 0, limit = 0, delta = 0;
51#define GET_RANGE_PARAM(DT) \
52 start = start_node->scalar<DT>(); \
53 limit = limit_node->scalar<DT>(); \
54 delta = delta_node->scalar<DT>();
56 switch (start_node->dtype())
58 case loco::DataType::FLOAT32:
61 case loco::DataType::S32:
80 assert((start >= limit && delta < 0) || (start <= limit && delta > 0));
#define INTERNAL_EXN(msg)
@ brief throw internal exception with message
Class to build tensor data.
loco::Node * delta(void) const
loco::Node * limit(void) const
loco::Node * start(void) const
loco::TensorShape visit(const luci::CircleNode *node) final
Default fallback.
const luci_interpreter::RuntimeShape output_shape
#define GET_RANGE_PARAM(DT)