ONE - On-device Neural Engine
|
Data Structures | |
struct | EqualizePattern |
class | FMEqualizer |
class | FusePostScalePass |
Pass to fuse CircleCustom(PostScale) to succeeding Ops. More... | |
class | FusePreScalePass |
Pass to fuse CircleCustom(PreScale) to preceding Ops. More... | |
class | InsertScaleShift |
Class to insert scale/shift virtual Ops to loco::Graph. More... | |
class | ProgressReporter |
Functions | |
void | check_patterns_valid (loco::Graph *g, const std::vector< EqualizePattern > &patterns) |
std::vector< EqualizePattern > | read (const std::string &filename) |
std::string | random_str (uint32_t len) |
luci::CircleCustom * | to_scale (loco::Node *node) |
void | copy_shape (luci::CircleNode *from, luci::CircleNode *to) |
loco::Node * | get_input (luci::CircleNode *node) |
void | set_input (luci::CircleNode *node, luci::CircleCustom *input) |
luci::CircleNode * | find_arg_with_name (const luci::CircleNode *node, const std::string &name, const uint32_t &depth) |
void fme_apply::check_patterns_valid | ( | loco::Graph * | g, |
const std::vector< EqualizePattern > & | patterns | ||
) |
It checks if given patterns are valid as follows.
Definition at line 37 of file EqualizePatternCheck.cpp.
References loco::active_nodes(), loco::output_nodes(), and p.
Referenced by fme_apply::FMEqualizer::equalize().
void fme_apply::copy_shape | ( | luci::CircleNode * | from, |
luci::CircleNode * | to | ||
) |
Definition at line 22 of file Support.Misc.cpp.
luci::CircleNode * fme_apply::find_arg_with_name | ( | const luci::CircleNode * | node, |
const std::string & | name, | ||
const uint32_t & | depth | ||
) |
It returns one of given node's arguments whose name is "name".
According to the depth, it finds from more preceded nodes.
Definition at line 174 of file Support.Misc.cpp.
References loco::Node::arg(), loco::Node::arity(), and find_arg_with_name().
Referenced by find_arg_with_name().
loco::Node * fme_apply::get_input | ( | luci::CircleNode * | node | ) |
It returns given node's input.
Definition at line 40 of file Support.Misc.cpp.
References luci::CircleNode::name(), and luci::CircleNode::opcode().
std::string fme_apply::random_str | ( | uint32_t | len | ) |
Definition at line 25 of file RandomString.cpp.
std::vector< EqualizePattern > fme_apply::read | ( | const std::string & | filename | ) |
Definition at line 44 of file EqualizePatternRead.cpp.
References fme_apply::EqualizePattern::front, p, and fme_apply::EqualizePattern::ScaleOnly.
Referenced by entry().
void fme_apply::set_input | ( | luci::CircleNode * | node, |
luci::CircleCustom * | input | ||
) |
It sets given 'input' to node's input.
Definition at line 99 of file Support.Misc.cpp.
References luci::CircleNode::name(), and luci::CircleNode::opcode().
luci::CircleCustom * fme_apply::to_scale | ( | loco::Node * | node | ) |
Definition at line 22 of file Support.Cast.cpp.