aboutsummaryrefslogtreecommitdiff
path: root/src/core/ITensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ITensor.cpp')
-rw-r--r--src/core/ITensor.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/ITensor.cpp b/src/core/ITensor.cpp
index b65c4f4c97..eb5f072d82 100644
--- a/src/core/ITensor.cpp
+++ b/src/core/ITensor.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017 ARM Limited.
+ * Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -151,3 +151,13 @@ void ITensor::print(std::ostream &s, IOFormatInfo io_fmt) const
}
}
}
+
+bool ITensor::is_used() const
+{
+ return _is_used;
+}
+
+void ITensor::mark_as_unused() const
+{
+ _is_used = false;
+}