Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / runtime / onert / core / include / backend / ITensor.h
index 217d9de..12b1c54 100644 (file)
@@ -32,6 +32,8 @@ namespace onert
 namespace backend
 {
 
+struct IDynamicTensorManager;
+
 class ITensor
 {
 public:
@@ -51,6 +53,15 @@ public:
   virtual void access(const std::function<void(ITensor &tensor)> &fn) = 0;
 
   /**
+   * @brief Return the dynamic tensor manager
+   *
+   * If dynamic tensors are not supported, it returns @c nullptr .
+   *
+   * @return IDynamicTensorManager* DynamicTensorManager
+   */
+  virtual IDynamicTensorManager *dynamic_tensor_manager() { return nullptr; }
+
+  /**
    * @brief Return true if the tensor is constant
    */
   virtual bool is_constant() const