Deprecate nnAssert in favor of CHECK
CHECK is part of android-base/logging.h, provides the ability to
include an explanation, and comes with a bunch of helpers like
CHECK_EQ, CHECK_CONSTEXPR, and DCHECK.
`nnAssert(1 == 0);` aborts and produces the following LOG(FATAL) message:
nnAssert failed at frameworks/ml/nn/common/operations/Gather.cpp:124 - 'true == false'
`CHECK(1 == 0) << "my explanation";` aborts and produces the following LOG(FATAL) message:
Gather.cpp:124] Check failed: 1 == 0 my explanation
Bug: 118737105
Bug: 114704873
Test: NeuralNetworksTest_static
Change-Id: I20d610ad056f69059012d469f81cc6ee191f975e
Merged-In: I20d610ad056f69059012d469f81cc6ee191f975e
(cherry picked from commit df7e232ce9553d6f3db71787594cd6d216fb9b09)
2 files changed