Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Caffe2 Quick Start Guide

You're reading from  Caffe2 Quick Start Guide

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781789137750
Pages 136 pages
Edition 1st Edition
Languages
Author (1):
Ashwin Nanjappa Ashwin Nanjappa
Profile icon Ashwin Nanjappa

Operators

In Caffe2, a neural network can be thought of as a directed graph, where the nodes are operators and the edges represent the flow of data between operators. Operators are the basic units of computation in a Caffe2 network. Every operator is defined with a certain number of inputs and a certain number of outputs. When the operator is executed, it reads its inputs, performs the computation it is associated with, and writes the results to its outputs.

To obtain the best possible performance, Caffe2 operators are typically implemented in C++ for execution on CPUs and implemented in CUDA for execution on GPUs. All operators in Caffe2 are derived from a common interface. You can see this common interface defined in the caffe2/proto/caffe2.proto file in the Caffe2 source code.

The following is the Caffe2 operator interface found in my caffe2.proto file:

// Operator Definition...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}