0% found this document useful (0 votes)
54 views37 pages

Ibrahim Badhusha

PyTorch is an open-source machine learning framework developed by Meta AI. It is based on Torch and allows users to define, train, and deploy deep learning models. PyTorch uses dynamic computational graphs and automatic differentiation to speed up research and deployment. It supports applications like computer vision, NLP, and reinforcement learning. Key advantages include being easy to use, supporting debugging, and enabling data parallelism.

Uploaded by

computer kily
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views37 pages

Ibrahim Badhusha

PyTorch is an open-source machine learning framework developed by Meta AI. It is based on Torch and allows users to define, train, and deploy deep learning models. PyTorch uses dynamic computational graphs and automatic differentiation to speed up research and deployment. It supports applications like computer vision, NLP, and reinforcement learning. Key advantages include being easy to use, supporting debugging, and enabling data parallelism.

Uploaded by

computer kily
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 37

DEPARTMENT OF

COMPUTER
ENGINEERING
Seminar Review – Final
Review 21-11-2022
PyTorch
BY
IBRAHIM BADHUSHA P S
CONTENTS
• Introduction • Pytorch examples
• History • conclusion
• What is pytorch?
• Torch library
• Machine learning
• Deep learning
• types of libraries
• Applications
• Advantages
• Disadvantages
INTRODUCTION
• PyTorch is a machine learning library
based on the Torch library
• Developed by Meta AI
• Used for natural language processing
• IDE is TorchStudio
• Now part of the Linux Foundation
• Pytorch is used for developing and
training deep learning models
• It is free and open-source software
• PyTorch also has a C++ interface
HISTORY
● Developed by META AI(FB)

● Orginal Authors : Adam Paszke,


Sam Gross,Soumith Chintala,Gregory
Chanan

● Initial release-September 2016


Stable release - October-28- 2022
WHAT IS PyTorch ?

● PyTorch is an open source machine


learning library
● Based on the Torch Library
● Automatic computation of gradients
● Fast tracks the path from research
prototyping to production deployment.
● mainly used in computer vision, deep
learning
● Programmer can build a complex neural
network with ease using PyTorch
● PyTorch is one of the top deep learning
tools.
TORCH LIBRARY

● Torch is an open-source machine learning


library
● It provides a wide range of algorithms for
deep learning
● PyTorch, which is based on the Torch
library
● Actively developed as of October 2022
INSTALL PyTorch

● Download and install Anaconda (choose


the latest Python version)
● Go to PyTorch's site and get started
locally section.
● Specify the appropriate configuration
options for particular environment.
● Run the presented command in the
terminal to install PyTorch.
USED FOR PyTorch

● PyTorch is an open source machine


learning (ML) framework

● Based on the Python programming


language and the Torch library.

● It is one of the preferred platforms for


deep learning research.
● The framework is built to speed up the
process

● between research prototyping and


deployment.
BENFITS

● Easy-to-learn
● Easy debugging
● Well-supported on major cloud platforms
● User-friendly interface
TESLA USING PyTorch

• Even Tesla is using PyTorch to develop full


self-driving capabilities

• For its vehicles, including AutoPilot and


Smart Summon

• Switching to PyTorch decreased our


iteration time on research ideas in
generative modeling from weeks to days
WORKING OF PyTorch
● PyTorch uses dynamic computational
graphs.

● The graph is defined indirectly using


operator overloading while the forward
computation gets executed.

● Dynamic graphs are more flexible than


static graphs
● wherein users can make interleaved
construction and valuation of the graph
FEATURES
● Cross front-end

● Dispressed training

● Tools and libraries

● Cloud partners
MACHINE LEARNING
● Machine learning is a branch of artificial
intelligence (AI)

● Focuses on the use of data and


algorithms to imitate the way that
humans learn
DEEP LEARNING
● Deep learning is a class of machine
learning algorithms

● Uses multiple layers to progressively


extract higher-level features from the
raw input.

● For example, in image processing, lower


layers may identify edges, while higher
TYPES OF LIBRARIES
● TensorFlow

● PyTorch

● Mxnet

● Theano

● Caffe
APPLICATIONS

• Computer vison

• Natural Language Processing

• Reinforcement Learning
COMPUTER VISION
• Computer vision is the art of teaching a
compute

• Binary classification

• Multi-class classification

• Object detection

• Panoptic segmentation
NATURAL LANGUAGE PROCESSING
• Natural language processing (NLP) refers
to the branch of computers
• Specifically, the branch of artificial
intelligence or AI
• Giving computers the ability to
understand text and spoken words in
much the same way human beings.
• NLP combines computational linguistics
—rule-based modeling of human
languagewith statistical,
• machine learning, and deep learning
models
ADVANTAGES

• PyTorch is based on python

• Easier learn

• Debugging

• Dynamic computational graph

• Data parallelism
• Community
DISADVANTAGES
● Lacks model serving in production

● Limited monitoring and visualization


interface

● Not as extensive as TensorFlow


PyTorch EXAMPLES
• TENSORS

• AUTOGRAD

• NN MODULES
TENSORS
• A PyTorch Tensor is conceptually identical
to a numpy array

• A Tensor is an n-dimensional array


PyTorch provides many functions for
operating on these Tensors.

• Tensors can keep track of a


computational graph and gradients
• They are also useful as a generic tool for
scientific computing
AUTOGRAD
• we can use automatic differentiation to
automate the computation of backward
passes in neural networks.

• The autograd package in PyTorch provides


exactly this functionality
• When using autograd, the forward pass of
your network will define a computational
graph
• Backpropagating through this graph then
allows you to easily compute gradients.
nn MODULES
• The nn package serves this same
purpose.

• The nn package defines a set of


Modules

• Which are roughly equivalent to neural


network layers

• A Module receives input Tensors and


• but may also hold internal state such as
Tensors containing learnable
parameters.

• The nn package also defines a set of


useful loss functions

• commonly used when training neural


networks
CONCLUSION
• PyTorch is one of the best deep learning
frameworks development of neural
networks

• Extremely simplistic library

• Access to better-debugging capabilities

• Ability to code easily


REFERENCES

● www.wiki.com

● www.pytorch.com

● www.machinelearnig.com
THANK YOU

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy