Introduction to Pytorch: Linear Model
The City Of Knowledge
Welcome back. In the last session, we discussed the autograd. Variable element of PyTorch and how to create and preserve the computational graph. We've also briefly mentioned the CUDA functionality of PyTorch. Today, we're going to create a Linear Model with PyTorch. So let us start. So first, we are importing their required libraries, which is the torch Library. As you remember, the torch library is the Tensor library of PyTorch. Then we are importing nn module, and neural network module and then we import autograd from autograd. Variable. As you remember, autograd. Variable is the main building block of PyTorch, a computational graph and here we're importing just numpy.
The initial lectures series on this topic can find in the below links: What is SystemML (1/2) https://www.youtube.com/watch?v=2Zpi0RvIoCg&list=PLpW3QouFxOnM6YWVOrcUBaQiy8EWi05pi&index=29 What is SystemML (2/2) https://www.youtube.com/watch?v=-oQw-jg1Au4&list=PLpW3QouFxOnM6YWVOrcUBaQiy8EWi05pi&index=30 Introduction to Pytorch:PyTorch Installation https://www.youtube.com/watch?v=FXpvZJFnhxM&list=PLpW3QouFxOnM6YWVOrcUBaQiy8EWi05pi&index=31 PyTorch Packages https://www.youtube.com/watch?v=FFeIq6FhpXw&list=PLpW3QouFxOnM6YWVOrcUBaQiy8EWi05pi&index=32 Tensor Creation and Visualization of Higher Dimensional Tensors https://www.youtube.com/watch?v=cuIC55fYL1o&list=PLpW3QouFxOnM6YWVOrcUBaQiy8EWi05pi&index=33 Math Computation and Reshape https://www.youtube.com/watch?v=qI_aOF9f8XA&list=PLpW3QouFxOnM6YWVOrcUBaQiy8EWi05pi&index=34 Computation Graph, CUDA https://www.youtube.com/watch?v=MnnoUHtxeoU&list=PLpW3QouFxOnM6YWVOrcUBaQiy8EWi05pi&index=35 ... https://www.youtube.com/watch?v=e-Do8558IL8
56961484 Bytes