Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Caffe2 Quick Start Guide

You're reading from   Caffe2 Quick Start Guide Modular and scalable deep learning made easy

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781789137750
Length 136 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ashwin Nanjappa Ashwin Nanjappa
Author Profile Icon Ashwin Nanjappa
Ashwin Nanjappa
Arrow right icon
View More author details
Toc

Caffe2 model file formats

To be able to use Caffe models in Caffe2, we also need to understand the model file formats that Caffe2 can import. Just like Caffe, Caffe2 also uses Protobuf for serialization and deserialization of its model files. Caffe2 imports a trained model from two files:

  1. The structure of the neural network stored as a predict_net.pb file or as a predict_net.pbtxt file
  2. The weights of the operators of the neural network stored as a init_net.pb file

predict_net file

The predict_net binary file, which is usually named predict_net.pb, holds the list of operators in the neural network, the parameters of each operator, and the connections between the operators. This file is a serialization of the neural network...

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 R$50/month. Cancel anytime