PyTorch Tensors Explained - Neural Network Programming

  Рет қаралды 51,530

deeplizard

deeplizard

Күн бұрын

Пікірлер: 68
@deeplizard
@deeplizard 6 жыл бұрын
Check out the corresponding blog and other resources for this video at: deeplizard.com/learn/video/jexkKugTg04
@ratkush
@ratkush 4 жыл бұрын
next post (wrapping up heading) link of deeplizard.com/learn/video/UWlFM0R_x6I redirecting to the same page.
@Makwayne
@Makwayne 5 жыл бұрын
11pm and I'm binge watching this series instead of Netflix
@deeplizard
@deeplizard 5 жыл бұрын
Haha I like it! 🤓💻🍿
@deeplizard
@deeplizard 5 жыл бұрын
btw. What's good on Nextflix? Black Mirror? The 100?
@Makwayne
@Makwayne 5 жыл бұрын
@@deeplizard the classic Top Gear ;)
@manuelkarner8746
@manuelkarner8746 4 жыл бұрын
@@deeplizard the 100 is pretty awsome, currently i am watching it the second time
@shuangwang9886
@shuangwang9886 4 жыл бұрын
t1+t2 it works now!
@joebender9052
@joebender9052 5 жыл бұрын
4:15 that is some intense music for typing :)
@haneulkim4902
@haneulkim4902 3 жыл бұрын
Thought there was something wrong with my ear.... Had to unplug, plug my earbuds and looked around multiple times lol.
@ericazheng9668
@ericazheng9668 5 жыл бұрын
Excellent explanation! It's super helpful.
@deeplizard
@deeplizard 5 жыл бұрын
Thank you!
@ShivamSUNDRAM-uj1xy
@ShivamSUNDRAM-uj1xy 7 ай бұрын
the t1+t2 operation is now supported in pytorch, it will typecast every element to float and then add
@mohammedhamdan4514
@mohammedhamdan4514 5 жыл бұрын
{ "question": "Data preprocessing step are the first-line code when programming the neural network with PyTorch. So, the purpose of that code is to: ", "choices": [ "transform whatever the input data into tensors that can feed into NNs. ", "transform only numerical input data into tensors that can feed into NNs. ", "transform only textual input data into tensors that can feed into NNs. ", "transform only image input data into tensors that can feed into NNs. " ], "answer": "transform whatever the input data into tensors that can feed into NNs. ", "creator": "Hamdan", "creationDate": "2019-10-07T19:05:31.514Z" }
@deeplizard
@deeplizard 5 жыл бұрын
Thank you Mohammed! The question is live. I did we word it to make the answers more concise.
@pritamchakraborty6159
@pritamchakraborty6159 4 жыл бұрын
very high-quality videos, and truly good explanations you give. These are very helpful videos. Thank you
@Brahma2012
@Brahma2012 5 жыл бұрын
Gradual development of conceptual understanding. It is going great..
@vivekmittal3478
@vivekmittal3478 5 жыл бұрын
Awesome content and also very well explained
@ayushagarwal4247
@ayushagarwal4247 5 жыл бұрын
The output I'm getting is not returning an error while adding the tensors with different data types. I' getting a tensor with float data type. PS: I'm using version 1.3.1
@deeplizard
@deeplizard 5 жыл бұрын
Hey ayush - Thank you for pointing this out. I'll be making a change to the text version of this episode on the website. PyTorch has recently changed this behavior. As of version 1.3.0, PyTorch has added Type Promotion. See the details here: github.com/pytorch/pytorch/releases Search for the text "Type Promotion".
@saugatbhattarai327
@saugatbhattarai327 4 жыл бұрын
@@deeplizard Thank you for pointing out. Nice Tutorial series Thank you very much for making it free.
@kinlam6304
@kinlam6304 5 жыл бұрын
{ "question": "What is one of the criteria for performing tensor computation in pytorch?", "choices": [ "tensors must be the same type", "tensors must have the same shape", "tensors must have the same rank", "tensors mush have the same number of elements" ], "answer": "tensors must be the same type", "creator": "jlam", "creationDate": "2019-10-17T04:01:12.901Z" }
@deeplizard
@deeplizard 5 жыл бұрын
Hey jlam - Thank you for contributing by making a question! 🙏 I've added the question to the quiz on the site with a slight rewording. You may need to clear your browser cache to see it! You are awesome!
@SandwichMitGurke
@SandwichMitGurke 5 жыл бұрын
Im speeding through these videos with 1.5x and it's just so interesting :D
@roros2512
@roros2512 6 жыл бұрын
when I execute torch.Tensor(data) and all the variants, it doesn't show up the type of the data, what am I missing? thanks for the videos, it's a great work
@willTryAgainTmrw
@willTryAgainTmrw 6 жыл бұрын
I'm a bot, and I'm loving this series.
@deeplizard
@deeplizard 6 жыл бұрын
🤖 bleep, bloop. I'm happy to hear that!
@hosseinaboutalebi9998
@hosseinaboutalebi9998 6 жыл бұрын
Great videos. One thing I would like to mention that it would be helpful if you also specify the pytorch version you are using. The syntax may change over the time.
@deeplizard
@deeplizard 6 жыл бұрын
Thanks for the feedback, Hossein! Everything shown in the videos works with PyTorch v1.0.
@haroldsu1696
@haroldsu1696 4 жыл бұрын
Thank you for the wonderful lectures,and it really helps.
@fahadmuntasir2336
@fahadmuntasir2336 4 жыл бұрын
PyTorch now allows Tensor operation between two different datatypes!
@AshutoshRautela
@AshutoshRautela 6 жыл бұрын
Amazing set of Tutorials
@deeplizard
@deeplizard 6 жыл бұрын
Thank you Ashutosh! Really appreciate your feedback!
@tymo3391
@tymo3391 4 жыл бұрын
awesome tutorial
@karthickkuduva9819
@karthickkuduva9819 10 ай бұрын
What would be best?. learning pytorch and tensorflow or being good at any one.
@deeplizard
@deeplizard 10 ай бұрын
Seek to transcend any single instance of a library. Extract the general pattern and take advantage of the synergistic effects.
@karthickkuduva9819
@karthickkuduva9819 9 ай бұрын
@@deeplizard thanks 😊
@GeNiaaz
@GeNiaaz 4 жыл бұрын
Hi, I tried adding t1 and t2 of type int and float respectively like he showed in the example at 4:32, but when I "t1+t2", Jupyter Notebook didn't complain, I simply got tensor([2., 4., 6.]) as output. Can someone please explain?
@deeplizard
@deeplizard 4 жыл бұрын
Hey Niaaz - This is working differently due to a PyTorch update. Please check the blog post where I added an update about this. See the section called "PyTorch Tensor Type Promotion". Link: deeplizard.com/learn/video/jexkKugTg04 You can also check the "Updates" section on each blog that will detail any changes that have occurred since the video was released. Hope this helps!
@heller4196
@heller4196 5 жыл бұрын
I can do this all day
@MuhammadSalman-be1qz
@MuhammadSalman-be1qz 2 жыл бұрын
In newer versions adding two different dtype tensors does not give any error. It just add them give answer. But adding two tensors present on different devices(one on CPU and one on CUDA) is not possible it gives error syaing "Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!"
@Fighter_Believer_Achiever
@Fighter_Believer_Achiever 5 ай бұрын
thank you so much
@jayachandra677
@jayachandra677 4 жыл бұрын
I did not get error while adding int64 and float32 tensors. pytorch might have added this capability. btw im using 1.6.0 version
@deeplizard
@deeplizard 4 жыл бұрын
Hey Jay - You are right. PyTorch did add this capability. We have an "Updates" section for each video on the site. You can always check there to see if an update for any particular video has been published. This particular issue was already published. An explanation and details in the Updates section here: deeplizard.com/learn/video/jexkKugTg04
@jayachandra677
@jayachandra677 4 жыл бұрын
@@deeplizard thank you
@tonihuhtiniemi1222
@tonihuhtiniemi1222 5 жыл бұрын
In which lesson do we start running the model? :) Cant wait that! :P
@deeplizard
@deeplizard 5 жыл бұрын
Hey Toni - Model details start on #17 in the series. This one: deeplizard.com/learn/video/k4jY9L8H89U
@kalymdros
@kalymdros Жыл бұрын
I am following along and after trying t1 + t2 , I actually got : tensor([2.,4.,6.]) instead of Runtime Error. I can see the video is 5 years old, was there an update or something or did I do something wrong?
@deeplizard
@deeplizard Жыл бұрын
Hello there! You are on the right track. Pytorch made an update in this regard. You can read about the update on the lesson page for this video here: deeplizard.com/learn/video/jexkKugTg04 See the section titled: PyTorch Tensor Type Promotion Happy learning! Chris
@anthonyyaghi6342
@anthonyyaghi6342 5 жыл бұрын
You deserve way more subscribers :/
@psoma2744
@psoma2744 4 жыл бұрын
I have a doubt -- t1 = torch.tensor([1, 2, 3]) / t1 = torch.Tensor([1, 2, 3]) , I get different t1.dtype .. and i am able to add them .. ??
@prathameshdinkar2966
@prathameshdinkar2966 2 жыл бұрын
Now in 2022, you can add tensors with different dtypes also, like int + float!
@zafarahmad6344
@zafarahmad6344 3 жыл бұрын
Hi Sir! I can get the result of t1+t2, regardless that they have different data types t1= int64 while t2= float32 What ...I am doing wrong anything..? Any idea would be appreciated.
@georgeigwegbe7258
@georgeigwegbe7258 6 жыл бұрын
Well done!!!
@deeplizard
@deeplizard 6 жыл бұрын
Hi George - Are you a bot or do you just watch on 4x?
@georgeigwegbe7258
@georgeigwegbe7258 6 жыл бұрын
🤣🤣..Nah, I am just a human on AI journey using PyTorch. Once again Well DONE!!! 💪
@deeplizard
@deeplizard 6 жыл бұрын
Ah, so a human with AI superpowers! ✨ Lol thank you!
@pradeepkumar-ew1ze
@pradeepkumar-ew1ze 4 жыл бұрын
In google colab, I could see the tensor's of different types gets added without error.
@ai-video-stories
@ai-video-stories 3 жыл бұрын
yeah. it's a new feature
5 жыл бұрын
Pytorch 1.4 nightly tensor operations changed. no need to change int to float. it makes automaticly.
@deeplizard
@deeplizard 5 жыл бұрын
Excellent.
@louerleseigneur4532
@louerleseigneur4532 4 жыл бұрын
merci merci
@りょりょりょ-b6s
@りょりょりょ-b6s 4 жыл бұрын
4:30 That's not true now. PyTorch will figure out the data types and do an implicit data type conversion. version: 1.5.0
@utkar1
@utkar1 4 жыл бұрын
I added t1 & t2 as shown got a result, is it a new addition to pytorch? Thanks for the awesome playlist `tensor([2., 4., 6.])` `torch.float32`
@deeplizard
@deeplizard 4 жыл бұрын
It is new 😊 We've already updated the website for this one. You can see the details on the "Updates" section here: deeplizard.com/learn/video/jexkKugTg04 - Chris
@supdenfoosukka
@supdenfoosukka 4 жыл бұрын
I FUCKING UNDERSTAND WHAT THE SOFTWARE TEAM IS DOING
@escapefelicity2913
@escapefelicity2913 3 жыл бұрын
Get rid of the background noise
@auggiewilliams3565
@auggiewilliams3565 4 жыл бұрын
UR channel is getting les recognitoin than it shud
Creating PyTorch Tensors for Deep Learning - Best Options
11:02
deeplizard
Рет қаралды 37 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Power Automate #16: Kiểu dữ liệu Array và các vòng lặp Loops
5:18
Tensors for Neural Networks, Clearly Explained!!!
9:40
StatQuest with Josh Starmer
Рет қаралды 195 М.
CUDA Explained - Why Deep Learning uses GPUs
13:33
deeplizard
Рет қаралды 245 М.
Dataset for Deep Learning - Fashion MNIST
16:04
deeplizard
Рет қаралды 29 М.
Code for Deep Learning - ArgMax and Reduction Tensor Ops
13:41
deeplizard
Рет қаралды 28 М.
The Essential Main Ideas of Neural Networks
18:54
StatQuest with Josh Starmer
Рет қаралды 1 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН