commit | dcbb656a66d001dd2e6fbdc91be6e1fa24f20620 | [log] [tgz] |
---|---|---|
author | Miao Wang <miaowang@google.com> | Fri Mar 23 15:48:13 2018 -0700 |
committer | Michael Butler <butlermichael@google.com> | Wed Apr 18 19:06:22 2018 +0000 |
tree | 39e0ded5aa4166d772276c42142214f1ec7abd8f | |
parent | 6fadf5dc70cc68111c1c617c421b99b8c4ed168e [diff] |
Use abort() instead of exit(1) for bad activation functions Bug: 69008440 Test: mm Test: NeuralNetworksTests pass Merged-In: Ida0350d2c9c7325888c3eaaa3dbe285441ef655c Change-Id: Ida0350d2c9c7325888c3eaaa3dbe285441ef655c (cherry picked from commit 3d99acd641483363da564d24733199ff26078f44)
diff --git a/common/include/ActivationFunctor.h b/common/include/ActivationFunctor.h index fb966c4..ed9ef93 100644 --- a/common/include/ActivationFunctor.h +++ b/common/include/ActivationFunctor.h
@@ -52,7 +52,7 @@ __android_log_print(ANDROID_LOG_ERROR, "NN API", "Invalid enum value for activation function: 0x%0X", act_); - exit(1); + abort(); } }