First implementation of the Neural Networks API. This first version can run a simple query on the CPU either via the fallback path or through a simulated driver. This code has many deficiencies: single threaded, not all validation are done, not going through HIDL, and not enough unit tests. Expect more changes! Test: Compiled and ran the unit tests Change-Id: I9f6a485a2e7207aeb5f91a2904dcb4b7fd8a6f65
diff --git a/common/Android.bp b/common/Android.bp new file mode 100644 index 0000000..8f00067 --- /dev/null +++ b/common/Android.bp
@@ -0,0 +1,33 @@ +/* + * Copyright 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +cc_library_static { + name: "libneuralnetworks_common", + defaults: ["neuralnetworks_defaults"], + host_supported: true, + export_include_dirs: ["include"], + + srcs: [ + "CpuExecutor.cpp", + "Operations.cpp", + "OperationsUtils.cpp", + "Utils.cpp", + ], + + header_libs: [ + "libneuralnetworks_headers", + ], +}