Advertisement
News
EEtimes
News the global electronics community can trust
eetimes.com
power electronics news
The trusted news source for power-conscious design engineers
powerelectronicsnews.com
EPSNews
News for Electronics Purchasing and the Supply Chain
epsnews.com
elektroda
The can't-miss forum engineers and hobbyists
elektroda.pl
eetimes eu
News, technologies, and trends in the electronics industry
eetimes.eu
Products
Electronics Products
Product news that empowers design decisions
electronicproducts.com
Datasheets.com
Design engineer' search engine for electronic components
datasheets.com
eem
The electronic components resource for engineers and purchasers
eem.com
Design
embedded.com
The design site for hardware software, and firmware engineers
embedded.com
Elector Schematics
Where makers and hobbyists share projects
electroschematics.com
edn Network
The design site for electronics engineers and engineering managers
edn.com
electronic tutorials
The learning center for future and novice engineers
electronics-tutorials.ws
TechOnline
The educational resource for the global engineering community
techonline.com
Tools
eeweb.com
Where electronics engineers discover the latest toolsThe design site for hardware software, and firmware engineers
eeweb.com
Part Sim
Circuit simulation made easy
partsim.com
schematics.com
Brings you all the tools to tackle projects big and small - combining real-world components with online collaboration
schematics.com
PCB Web
Hardware design made easy
pcbweb.com
schematics.io
A free online environment where users can create, edit, and share electrical schematics, or convert between popular file formats like Eagle, Altium, and OrCAD.
schematics.io
Product Advisor
Find the IoT board you’ve been searching for using this interactive solution space to help you visualize the product selection process and showcase important trade-off decisions.
transim.com/iot
Transim Engage
Transform your product pages with embeddable schematic, simulation, and 3D content modules while providing interactive user experiences for your customers.
transim.com/Products/Engage
About
AspenCore
A worldwide innovation hub servicing component manufacturers and distributors with unique marketing solutions
aspencore.com
Silicon Expert
SiliconExpert provides engineers with the data and insight they need to remove risk from the supply chain.
siliconexpert.com
Transim
Transim powers many of the tools engineers use every day on manufacturers' websites and can develop solutions for any company.
transim.com

AI Formats May Ease Neural Jitters

By   12.20.2017 6

SAN JOSE, Calif. — A group of mainly chip vendors released a draft standard that aims to act as an interface between software frameworks for creating neural network models and the hardware accelerators that run them. It shares goals with a separate effort started as an open-source project earlier this year by Facebook and Microsoft.

The Khronos Group is seeking industry feedback on a preliminary version of its Neural Network Exchange Format. NNEF initially aims to be a single file format to describe any trained neural network model to any chip performing inference tasks with it.

“We have dozens of training frameworks and potentially hundreds of inference engines on the way,” said Neil Trevett, president of Khronos. “That’s a horrible fragmentation.”

The working group that created the draft consists of more than 30 mainly semiconductor companies including AMD, ARM, Intel, Imagination, Qualcomm, and Samsung. The chip vendors see NNEF as a way to share the effort of creating a single software target for their chips, something many are already doing internally.

Web giants such as Amazon, Google, and others each develop their own software frameworks for creating neural net models. They see them as strategic tools to get an edge in efficiency and attract developers.

NNEF aims to be a universal file format used by neural net frameworks and inference chips. (Images: Khronos Group)
NNEF aims to be a universal file format used by neural net frameworks and inference chips. (Images: Khronos Group)

To jumpstart their support, Khronos created open-source versions of programs that can export NNEF files from Caffe and Google’s TensorFlow, two popular frameworks.

“We will need a bunch more exporters, but we have those two available now … we will do some paid RFQ-based projects with partners to develop more exporters,” said Trevett.

So far, the web giants seem to be coalescing around their own effort called the Open Neural Network Exchange format (ONNX). The open-source project had a version 1.0 release earlier this month and now has support from Amazon as well as a handful of hardware companies such as AMD, ARM, Huawei, IBM, Intel, and Qualcomm.

ONNX aims to translate models created with any of a dozen competing software frameworks into a graph representation. Trevett said that Khronos is open to collaborating with the effort but pointed out that NNEF is different in two key ways that are important to chip vendors.

Technically, ONNX is a flat representation of operations as a graph. NNEF can do that too, but the Khronos approach also supports compound operations that fuse nodes in a graph. Packing and unpacking operations in this way is one approach that chip vendors plan to use to execute operations efficiently, he said.

Perhaps more importantly, Khronos has had bad experiences with open-source projects that can change rapidly, sometimes breaking hardware compatibility.

For example, changes in the open-source LLVL intermediate representation for processor compilers twice broke compatibility with the group’s OpenCL spec. “People had invested in hardware, and road maps were being broken — this was extremely painful” for chip vendors, said Trevett.

Khronos created its own spec, Spir-V, in place of LLVM, updating it periodically to keep pace with the open-source software. “Our experience with LLVM is that we need a stable spec with multi-company governance,” said Trevett, noting that the group “is up for” the work of keeping that spec current with software shifts.

NNEF requires an interface on the hardware side as well. The initial prototype uses Khronos’ OpenVX interface for computer vision and its recently released neural network extensions.

To use NNEF on smartphones, engineers will have to develop interfaces to Apple’s CoreML or Google’s Android Neural Network API. However, both are openly published formats, so anyone can do that work, said Trevett.

“Once there’s a bunch of trained nets in NNEF, anyone benefits from importing them to their hardware,” he said.

An initial prototype of NNEF works with Khronos’ OpenVX API for computer vision accelerators.
An initial prototype of NNEF works with Khronos’ OpenVX API for computer vision accelerators.

Interestingly, Nvidia is one of the few chip vendors not participating in the NNEF work so far.

“That might change, we haven’t made decisions yet,” said Trevett, who is also vice president of developer ecosystems at Nvidia. The company “has a lot of internal projects that do this sort of thing and is heads-down in solutions for customers.”

To ease the path for chip makers, Khronos also launched an open-source NNEF syntax parser and validator. It lets chip vendors make sure that NNEF files are properly formed and converted for their hardware.

Khronos hopes to stay neutral in any AI battles, giving vendors room to pick the frameworks, APIs, and file formats such as ONNX if they prefer. “NNEF support doesn’t negate support for other things,” he said.

Ultimately, the group hopes that NNEF can also be used as a file format for hardware accelerators used for training and as a way to exchange models among software frameworks.

“We see a need for the authoring interchange, but we haven’t prototyped it, so we will probably have to add stuff … fundamentally, there’s a lot of research in AI, and new neural net topologies will appear, so NNEF will have to evolve,” said Trevett.

— Rick Merritt, Silicon Valley Bureau Chief, EE Times Circle me on Google+

6 comments
Post Comment
emesdoublee   2017-12-20 14:39:51

The information you have entered on this page will be sent over an insecure connection and could be read by a third party.Are you sure you want to send this information?   This is displayed for every clicked webpage on EEtimes. I think something is busted there. Anyone else getting that?

rick merritt   2017-12-20 20:51:38

We're looking into it, thx

elizabethsimon   2017-12-21 12:02:55

I'm getting the same message when using FireFox. On Internet Explorer I get a message at the bottom of hte window that "only secure content is displayed" At least on IE, you don't have to click to dismiss it. Oh, and this also occurs if you just reload the page as well. I just started using the uMatrix add-on for Firefox which allows you to selectively allow domains to be enabled. It seems that this error message is coming from a script in the eet.com domain. Unfortunately this site doesn't work unless that domain is enabled. I also had to enable a bunch of domains to get to where I could logon to type this reply...

Evariste   2017-12-21 13:27:22

I've been getting the same popup for weeks, albeit in German, since that's the computer's language setting.  I'm using Safari.  While we're talking about web issues, I also have the problem that I have to log in each time I want to make a comment, and the browser does not remember my username/password for EETimes.  Maybe it's a security "feature", but I'm not terribly concerned about somebody hacking my computer and posting comments under my pseudonym.

Les_Slater   2017-12-25 16:26:42

Hey, this is the first time I've been able to comment at all for a few weeks now. Seems to be related to what some have been saying here, but now working. Has the popup problem been fixed?

elizabethsimon   2017-12-26 11:49:53

@Les No, the popup problem still exists. I had to dismiss the popup 3 times to post this. I hit cancel every time so whatever information it thinks is insecure is not important.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.