aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/tensor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'reference_model/src/tensor.cc')
-rw-r--r--reference_model/src/tensor.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/reference_model/src/tensor.cc b/reference_model/src/tensor.cc
index 1aabe5b..5fffa8a 100644
--- a/reference_model/src/tensor.cc
+++ b/reference_model/src/tensor.cc
@@ -36,6 +36,7 @@ TosaReference::Tensor::Tensor(const std::string tensorName_,
isSubgraphInput = false;
isSubgraphOutput = false;
isParentGraphOutput = false;
+ isVariable = false;
}
TosaReference::Tensor::~Tensor()
@@ -59,6 +60,12 @@ int TosaReference::Tensor::setIsSubgraphOutput()
return 0;
}
+int TosaReference::Tensor::setIsVariable()
+{
+ isVariable = true;
+ return 0;
+}
+
int TosaReference::Tensor::setProducer(GraphNode* node)
{
ASSERT_MSG(node, "Tensor::setProducer: no node passed in");