Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PyTorch Deep Learning Hands-On

You're reading from   PyTorch Deep Learning Hands-On Build CNNs, RNNs, GANs, reinforcement learning, and more, quickly and easily

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781788834131
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Sherin Thomas Sherin Thomas
Author Profile Icon Sherin Thomas
Sherin Thomas
Sudhanshu Passi Sudhanshu Passi
Author Profile Icon Sudhanshu Passi
Sudhanshu Passi
Arrow right icon
View More author details
Toc

Exploring RedisAI

We have seen the optimization we can get through TorchScript, but what will we do with the optimized binary? Yes, we can load it in the C++ world and make a Go server, and load it there, but that's still painful.

Redis Labs and Orobix brought us another solution called RedisAI. It is a highly optimized runtime built on top of LibTorch and can accept compiled TorchScript binaries for serving through the Redis protocol. For people who don't have prior experience with Redis, http://redis.io has good documentation and the introduction doc given there [3] should be a good start.

RedisAI comes with three options to configure three backends: PyTorch, TensorFlow, and ONNX Runtime. It doesn't stop there: RedisAI uses DLPack in the backend to enable tensors to pass through different frameworks without much conversion cost.

What does that even mean? Let's say you have a TensorFlow model that converts the human face to a 128-dimensional embedding (this...

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 $19.99/month. Cancel anytime
Banner background image