Android 8.1 Introduces Neural Networks API
Android 8.1 Introduces Neural Networks API
Written by Lucy Black   
Thursday, 26 October 2017

Google has released the first developer preview of Android 8.1. It includes a new Neural Networks API to accelerate on-device machine intelligence and optimizations for Android Go, as well as smaller enhancements to Oreo resulting from user and developer feedback.

 

The Neural Networks API (NNAPI) is part of Google's efforts to bring machine intelligence to Android. It is an Android C API designed for running computationally intensive operations by enabling hardware-accelerated inference operations on supported devices. As such it is intended to provide a base layer of functionality for higher-level machine learning frameworks that build and train neural networks.

This is where another piece of news comes in. Google will be bringing us TensorFlow Lite, which it describes as its upcoming cross-platform ML framework for mobile.

NNAPI supports inferencing, such as classifying images, predicting user behavior, and selecting appropriate responses to a search query, by applying data from Android devices to previously trained, developer-defined models. Among its claimed benefits are:

 

  • Latency: You don’t need to send a request over a network connection and wait for a response. This can be critical for video applications that process successive frames coming from a camera.

  • Availability: The application runs even when outside of network coverage.

  • Speed: New hardware specific to neural networks processing provide significantly faster computation than with general-use CPU alone.

  • Privacy: The data does not leave the device.

  • Cost: No server farm is needed when all the computations are performed on the device.

NNAPI is meant to be called by machine learning libraries, frameworks, and tools that let developers train their models off-device and deploy them on Android devices. Apps typically would not use NNAPI directly, but would instead directly use higher-level machine learning frameworks which in turn could use NNAPI to perform hardware-accelerated inference operations on supported devices.

Its high-level system architecture is given in this diagram:

nnapiarch

 

Other major features relate to Android Go - the version of Oreo, announced at Google I/O in May 2017, that is a lightweight Android capable of operating with only 1 GB, or even 512 MB, of RAM. As well as memory optimizations, Google has added two new hardware feature constants:

FEATURE_RAM_LOW
FEATURE_RAM_NORMAL

to allow devs to target the distribution of apps and APK splits to normal or low-RAM devices running Android 8.1 and later.

Other new features in Android 8.1 include:

  • Autofill enhancements designed to make it easier for password managers and other Autofill services to use the Autofill framework introduced with API level 26. For example, there is added support for more UI customization of the Save dialog, as well as setAutofillOptions() for users to set credit card expiration using a spinner.

  • Shared memory API This new API, which is parcelable, AIDL friendly, and exposes useful features like removing write permissions, lets apps allocate shared memory for faster access to common data. Using it apps can map anonymous shared memory and manage protection controls  The API is parcelable, AIDL friendly, and exposes useful features like removing write permissions.

and81timetable

 

 

This initial preview is a beta quality release in which the new APIs are already final and, according to its overview, is suitable for daily use by developers and early adopters. A second preview with near-final system images for final testing will be released in November, with the final release expected in December.

androidoreo

More Information 

Android 8.1 Developer Preview

Neural Networks API

Related Articles

Spectacular Launch For Android Oreo

Android O on the Horizon

Android Instant Apps Updates API

Android Gets Architecture Components

Kotlin Begins Its Takeover Of Android

 

 

Banner


Increase In Uptake of Computer Science Challenges Universities
13/11/2017

The current surge in undergraduate enrollments in Computer Science courses and degree programs is straining resources at many U.S. colleges and universities according to the National Academies of [ ... ]



Apple And GE Bring Predix to iPad and iPhone
19/10/2017

Apple and GE are making Predix available for iPad and iPhone via a new SDK for iOS, meaning developers have the tools to create Industrial Internet of Things apps on the Apple platform.


More News

 

 
 

 

blog comments powered by Disqus

Last Updated ( Wednesday, 15 November 2017 )
 
 

   
Banner
Banner
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.