std::shared_ptr<backend::operand::IObject> wrapTensor(const model::OperandIndex &ind) override;
void iterate(const IterateFunction &fn) override;
+ 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);
void TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::notifyFirstUse(
const model::OperandIndex &)
{
- // DO NOTHING
+ // TODO FILL THIS
}
template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
void TemplTensorBuilder<T_ITensor, T_Tensor, T_SubTensor, T_Object>::notifyLastUse(
const model::OperandIndex &)
{
- // DO NOTHING
+ // TODO FILL THIS
}
template <typename T_ITensor, typename T_Tensor, typename T_SubTensor, typename T_Object>
}
}
+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;
+}
+
+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;
+}
+
+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;
+}
+
+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
+}
+
+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;
+}
+
+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
void iterate(const IterateFunction &fn) override;
+ 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;
+
+ // Only act on the linear executor on acl
+ 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);