diff options
author | Michael Butler <butlermichael@google.com> | 2019-07-11 11:45:01 -0700 |
---|---|---|
committer | Michael Butler <butlermichael@google.com> | 2019-07-25 12:15:38 -0700 |
commit | d92f97453da162d14fd08b1e8b17a2270869218f (patch) | |
tree | 0f0bb54b10de9ad276c5755f733f01436841a9da /nn/common/operations/Broadcast.cpp | |
parent | 97a674924a0ee71d2f25c86a80e90c099642bdf2 (diff) | |
download | ml-d92f97453da162d14fd08b1e8b17a2270869218f.tar.gz |
Cleanup HalInterfaces.h
Prior to this CL, HalInterfaces.h polluted the global namespace through
the "using" declarations. This CL creates a new ::android::nn::hal
namespace and places the names there instead.
This CL also changes the namespace of the Callback objects from
::android::hardware::neuralnetworks::V1_2::implementation to
::android::nn to be consistent with the other parts of frameworks/ml/nn.
Fixes: 72880287
Test: mma
Change-Id: I399ad32f5c541a493429c6fa8e192169a903ea9f
Merged-In: I399ad32f5c541a493429c6fa8e192169a903ea9f
(cherry picked from commit 19af9d2d509621c0b07fb5a0f59abd0adb9de468)
Diffstat (limited to 'nn/common/operations/Broadcast.cpp')
-rw-r--r-- | nn/common/operations/Broadcast.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nn/common/operations/Broadcast.cpp b/nn/common/operations/Broadcast.cpp index 9ff6ae82f..132325439 100644 --- a/nn/common/operations/Broadcast.cpp +++ b/nn/common/operations/Broadcast.cpp @@ -19,6 +19,7 @@ #define LOG_TAG "Operations" #include "CpuOperationUtils.h" +#include "HalInterfaces.h" #include "OperationResolver.h" #include <tensorflow/lite/kernels/internal/optimized/legacy_optimized_ops.h> @@ -30,6 +31,9 @@ namespace android { namespace nn { + +using namespace hal; + namespace broadcast { constexpr uint32_t kNumInputs = 3; |