diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-04-23 10:14:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-04-23 10:14:58 +0000 |
commit | 597ec94dd22dcbecc0d1db3646c910b12ae5bb87 (patch) | |
tree | ae9c1164a76d212174087d700e1b439408249ce3 /nn/runtime/ModelBuilder.cpp | |
parent | 56a09d4da981c00ce9709abad6c5d34325e18ea6 (diff) | |
parent | a144106df8f9b82251a5e584b1b083fb39d33b88 (diff) | |
download | ml-597ec94dd22dcbecc0d1db3646c910b12ae5bb87.tar.gz |
Merge "Error code fix and added new (std::nothrow) where needed." into pi-dev
Diffstat (limited to 'nn/runtime/ModelBuilder.cpp')
-rw-r--r-- | nn/runtime/ModelBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nn/runtime/ModelBuilder.cpp b/nn/runtime/ModelBuilder.cpp index d136f5b48..f8c318eca 100644 --- a/nn/runtime/ModelBuilder.cpp +++ b/nn/runtime/ModelBuilder.cpp @@ -301,7 +301,7 @@ int ModelBuilder::createCompilation(CompilationBuilder** compilation) { *compilation = nullptr; return ANEURALNETWORKS_BAD_STATE; } - *compilation = new CompilationBuilder(this); + *compilation = new (std::nothrow) CompilationBuilder(this); return (*compilation ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_OUT_OF_MEMORY); } |