These changes are needed to remove some layers from a graph
Signed-off-by: Poshshoev Dilshodzhon <d.poshshoev@samsung.com>
void addOutput(const operand::Index &ind);
void finishBuilding(void);
void lower(void);
+ void removeOperand(const operand::Index &ind) { _model->operands.remove(ind); }
std::unique_ptr<linear::Linear> linearize(void);
bool isBuildingPhase(void) const { return _phase == Phase::BUILDING; }
bool isLowered(void) const { return _phase == Phase::LOWERED; }
public:
Index append(const Shape &, const TypeInfo &);
+ void remove(const Index &index) { _objects.erase(index); };
public:
const Object &at(const Index &) const;
public:
Index append(std::unique_ptr<Node> &&node);
+ void remove(const Index &index) { _nodes.erase(index); };
public:
const Node &at(const Index &) const;