No code uses "rank" and "dim" method in Push class.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
*/
bool indexed(void) const { return _index != -1; }
-public:
- // This method works only when "graph() != nullptr" and "indexed()"
- uint32_t rank(void) const;
-
- // This method works only when "graph() != nullptr" and "indexed()"
- const Dimension &dim(uint32_t axis) const;
-
private:
int64_t _index = -1; // Uninitialized
};
return static_cast<GraphOutputIndex>(_index);
}
-uint32_t Push::rank(void) const
-{
- assert(graph() != nullptr);
- assert(indexed());
- return graph()->outputs()->at(index())->shape()->rank();
-}
-
-const Dimension &Push::dim(uint32_t axis) const
-{
- assert(graph() != nullptr);
- assert(indexed());
- return graph()->outputs()->at(index())->shape()->dim(axis);
-}
-
void link(GraphOutput *output, Push *push) { push->index(output->index()); }
Push *push_node(Graph *g, const GraphOutputIndex &index)