void preVisit(const model::Operation &node) override;
void postVisit(const model::Operation &node) override;
- // TODO Consider removing after #5642 fixes
- void registerModelObject(const model::OperandIndex &ind, const model::Operand &obj) override;
- void markConstant(const model::OperandIndex &ind) override;
- bool isConstant(const model::OperandIndex &ind) override;
- void deallocateConstants(void) override;
- void notifyFirstUseIf(const model::OperandIndex &ind) override;
- void notifyLastUseIf(const model::OperandIndex &ind) override;
-
std::unique_ptr<IMemoryManager> releaseMemoryManager(void) override;
std::shared_ptr<T_ITensor> at(const ::neurun::model::OperandIndex &ind);
[](std::pair<const model::OperandIndex, uint32_t> it) { return it.second == 0; }));
}
-// TODO Consider removing after #5642 fixes
-template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
-void TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::registerModelObject(
- const model::OperandIndex &ind, const model::Operand &obj)
-{
- // TODO Fill this
- (void)ind;
- (void)obj;
-}
-
-// TODO Consider removing after #5642 fixes
-template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
-void TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::markConstant(
- const model::OperandIndex &ind)
-{
- // TODO Fill this
- (void)ind;
-}
-
-// TODO Consider removing after #5642 fixes
-template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
-bool TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::isConstant(
- const model::OperandIndex &ind)
-{
- // TODO Fill this
- (void)ind;
- return false;
-}
-
-// TODO Consider removing after #5642 fixes
-template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
-void TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::deallocateConstants()
-{
- // TODO Fill this
-}
-
-// TODO Consider removing after #5642 fixes
-template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
-void TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::notifyFirstUseIf(
- const model::OperandIndex &ind)
-{
- // TODO Fill this
- (void)ind;
-}
-
-// TODO Consider removing after #5642 fixes
-template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
-void TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::notifyLastUseIf(
- const model::OperandIndex &ind)
-{
- // TODO Fill this
- (void)ind;
-}
-
} // namespace acl_common
} // namespace backend
} // namespace neurun
return std::move(_mem_mgr);
}
-void TensorBuilder::registerModelObject(const model::OperandIndex &ind, const model::Operand &obj)
-{
- // TODO Fill this
- (void)ind;
- (void)obj;
-}
-
-void TensorBuilder::markConstant(const model::OperandIndex &ind)
-{
- // TODO Fill this
- (void)ind;
-}
-
-bool TensorBuilder::isConstant(const model::OperandIndex &ind)
-{
- // TODO Fill this
- (void)ind;
- return false;
-}
-
-void TensorBuilder::deallocateConstants(void)
-{
- // DO NOTHING
-}
-
-void TensorBuilder::notifyFirstUseIf(const model::OperandIndex &ind)
-{
- VERBOSE(CPU_TensorBuilder) << "notifyFirstUseIf()... skip operand #" << ind.value() << std::endl;
- // DO NOTHING
-}
-
-void TensorBuilder::notifyLastUseIf(const model::OperandIndex &ind)
-{
- VERBOSE(CPU_TensorBuilder) << "notifyLastUseIf()... skip operand #" << ind.value() << std::endl;
- // DO NOTHING
-}
-
} // namespace cpu
} // namespace backend
} // namespace neurun
void preVisit(const model::Operation &) override {}
void postVisit(const model::Operation &) override {}
- // TODO Consider removing after #5642 fixes
- void registerModelObject(const model::OperandIndex &ind, const model::Operand &obj) override;
- void markConstant(const model::OperandIndex &ind) override;
- bool isConstant(const model::OperandIndex &ind) override;
- void deallocateConstants(void) override;
- void notifyFirstUseIf(const model::OperandIndex &) override;
- void notifyLastUseIf(const model::OperandIndex &) override;
-
std::unique_ptr<IMemoryManager> releaseMemoryManager(void) override;
std::shared_ptr<operand::Tensor> at(const ::neurun::model::OperandIndex &ind);
virtual void preVisit(const model::Operation &) = 0;
virtual void postVisit(const model::Operation &) = 0;
- // TODO Consider removing after #5642 fixes
- virtual void registerModelObject(const model::OperandIndex &, const model::Operand &) = 0;
- virtual void markConstant(const model::OperandIndex &) = 0;
- virtual bool isConstant(const model::OperandIndex &) = 0;
- virtual void deallocateConstants(void) = 0;
- virtual void notifyFirstUseIf(const model::OperandIndex &) = 0;
- virtual void notifyLastUseIf(const model::OperandIndex &) = 0;
-
virtual std::unique_ptr<IMemoryManager> releaseMemoryManager(void) = 0;
};