summaryrefslogtreecommitdiff
path: root/nn/runtime/Manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nn/runtime/Manager.cpp')
-rw-r--r--nn/runtime/Manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/nn/runtime/Manager.cpp b/nn/runtime/Manager.cpp
index 2bc73f465..6b80d208d 100644
--- a/nn/runtime/Manager.cpp
+++ b/nn/runtime/Manager.cpp
@@ -656,8 +656,8 @@ std::pair<int, std::shared_ptr<PreparedModel>> CpuDevice::prepareModel(
<< "Should never call prepareModel with cache information on CpuDevice";
const Model model = makeModel();
- if (!validateModel(model) || !validateExecutionPreference(preference) ||
- !validatePriority(priority)) {
+ if (!validateModel(model, ValidationMode::RUNTIME) ||
+ !validateExecutionPreference(preference) || !validatePriority(priority)) {
return {ANEURALNETWORKS_OP_FAILED, nullptr};
}
if (hasDeadlinePassed(deadline)) {