Saturday, October 15, 2022

Pytorch framework & Tensorflow Framework

PyTorch and TensorFlow are two of the most popular deep learning frameworks. 

                                                               

PyTorch (Most popular research DL framework*)

  • PyTorch is an open-source ML and DL framework developed by Facebook (Meta) using Python and released to the public in 2016. 
  • Now open source & used by companies such as Tesla, Microsoft, and OpenAI.. etc
  • PyTorch is a low-level API for NLP (natural language processing) and computer vision. It is a more powerful version of Numpy.
  • PyTorch is used by leading tech companies like 
    • Tesla to build the computer vision system for their self-driving vehicles
    • Meta to power the curation and understanding systems for their timelines.
    • Apple to create computationally enhanced photography and even automated weed-killing tractors.

  • What can PyTorch be used for?
          PyTorch allows you to manipulate and process data and write machine learning algorithms using Python code

Deep Learning 
What deep learning is good for



Tensor Explanation from root level

 9    ---> (single number)                            ---> scalar   (0 D Tensor)  (D means Dimensional)

[19, 82] (group of numbers --> Row)        ---> Vector (1D Tensor)

[[9 ,88 ] ,

 [19 ,8]]   (combination of rows & colums) --> Matrix ((2 D Tensor))

3X3  Matrix (Red, Green, and Blue)           ---> 3D Tensor (Ex: Image)

4D or 5D tensor (Videos or large data)

  • Images are first converted into numerical values called tensors. 
  • These tensors are given to a neural network, which processes them using mathematical calculations and generates an output tensor. 
  • This output is then transformed into meaningful information that humans can easily understand.



 CUDA (Compute Unified Device Architecture) is a parallel computing platform and programming model developed by NVIDIA that allows software developers to use a GPU for general-purpose computing, not just graphics.

What CUDA does?

Normally, GPUs were designed mainly for graphics. CUDA lets you use the thousands of GPU cores to perform computational tasks much faster than a CPU for certain workloads.




TensorFlow was developed by Google and released to the public in 2015. Production and research are the main uses of TensorFlow.