summaryrefslogtreecommitdiff
path: root/nn/common/OperationsUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nn/common/OperationsUtils.cpp')
-rw-r--r--nn/common/OperationsUtils.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/nn/common/OperationsUtils.cpp b/nn/common/OperationsUtils.cpp
index 9f2af2269..d65566f96 100644
--- a/nn/common/OperationsUtils.cpp
+++ b/nn/common/OperationsUtils.cpp
@@ -86,9 +86,8 @@ bool validateOutputTypes(const IOperationValidationContext* context,
[context](uint32_t index) { return context->getOutputType(index); });
}
-bool validateHalVersion(const IOperationValidationContext* context,
- HalVersion minSupportedHalVersion) {
- if (context->getHalVersion() < minSupportedHalVersion) {
+bool validateVersion(const IOperationValidationContext* context, Version minSupportedVersion) {
+ if (context->getVersion() < minSupportedVersion) {
std::ostringstream message;
message << "Operation " << context->getOperationName() << " with inputs {";
for (uint32_t i = 0, n = context->getNumInputs(); i < n; ++i) {
@@ -104,8 +103,8 @@ bool validateHalVersion(const IOperationValidationContext* context,
}
message << context->getOutputType(i);
}
- message << "} is only supported since " << minSupportedHalVersion << " (validating using "
- << context->getHalVersion() << ")";
+ message << "} is only supported since " << minSupportedVersion << " (validating using "
+ << context->getVersion() << ")";
NN_RET_CHECK_FAIL() << message.str();
}
return true;