PyTorch Tutorial 02 - Tensor Basics

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024

ความคิดเห็น • 177

  • @k.k.h9288
    @k.k.h9288 ปีที่แล้ว +27

    this is an awesome tutorial.I am leaving some time-stamps here that can help me later
    4:53 Element-wise Addition and in-place addition, multiplication, division
    7:09 Slicing Operation
    8:57 re-shaping a tensor
    10:39 converting NumPy to tensor and vice-versa
    14:50 CUDA and how to create tensor on GPU
    17:26 Requires grad

  • @dhananjaykansal8097
    @dhananjaykansal8097 5 ปีที่แล้ว +16

    This is my first video of yours channel. I must say you deserve more than million subscribers and thousand of likes and comments. God Bless You! Amen

    • @patloeber
      @patloeber  5 ปีที่แล้ว +1

      Thank you very much! Glad you like it :)

  • @CurryMan12345
    @CurryMan12345 4 ปีที่แล้ว +59

    By the way, you are one of the most underrated youtubers I have seen, and I believe by the end of this year, you will have at least 10,000 subscribers

    • @patloeber
      @patloeber  4 ปีที่แล้ว +5

      Thank you so much 😊

    • @patloeber
      @patloeber  4 ปีที่แล้ว +38

      Just noticed this old comment again. We already crossed the 10.000 :) Thanks for your motivational words back then!

    • @SteelersFans99
      @SteelersFans99 3 ปีที่แล้ว +1

      @@patloeber great job!

    • @sergiolenoo
      @sergiolenoo 3 ปีที่แล้ว +2

      and now there are 42k! :D

    • @phungtruong6698
      @phungtruong6698 3 ปีที่แล้ว +1

      @@sergiolenoo 71.6K subscribers :)

  • @sergiolenoo
    @sergiolenoo 3 ปีที่แล้ว +39

    Thank you so much man. I was struggling on my master's thesis, but thanks to your videos I'm finally able to develop the application I needed.

  • @linxuan757
    @linxuan757 4 ปีที่แล้ว +3

    This is the best tutorial video for pytorch I have ever seen. Thanks!

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      Thank you 😊

  • @sibusisomfana9834
    @sibusisomfana9834 3 หลายเดือนก่อน

    This is such a beautiful tutorial, thank Patrick for this.

  • @igor-policee
    @igor-policee 3 ปีที่แล้ว +3

    Your PyTorch course is simply amazing. This course helped me a lot to understand and start working with this framework. Thanks!

    • @patloeber
      @patloeber  3 ปีที่แล้ว

      happy to hear that!

  • @robosergTV
    @robosergTV 3 ปีที่แล้ว +2

    Also how did you set up VScode to have your prints be printed in the OUTPUT tab of VScode?

  • @Ferdocraft
    @Ferdocraft 13 วันที่ผ่านมา +1

    Sehr gut erklärt. 👍

  • @chiboreache
    @chiboreache ปีที่แล้ว

    15:17 AMD Radeon is also supports! python-pytorch-rocm package already in pacman repo, installing pretty easy in Arch Linux _(long time ago compiling from AUR took whole day and 100Gb of hard memory)_

  • @ravivarma5703
    @ravivarma5703 4 ปีที่แล้ว

    I have never seen a better explanation than this. Brother you are awesome !...Please do continue ML videos dont stop keep rocking...Great no words left
    Thanks for making

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      Thank you :) I will continue!

  • @art-gin
    @art-gin 3 ปีที่แล้ว +1

    Cool tutorial, thanks a lot. Only thing that confused me, at 12:44, lector mentions that both, torch tensor and numpy.ndarray point to same memory location', yet after I ran id(a) and id(b) it printed different addresses in memory (same thing print False for a is b comparison)...

  • @ahmedel-sinousy4848
    @ahmedel-sinousy4848 9 หลายเดือนก่อน

    wonderful tutorial thanks for sharing

  • @AltafHussain-gk2xe
    @AltafHussain-gk2xe 4 ปีที่แล้ว +2

    Thank you sir for such a great toturials your teaching methodology is awesome 💯

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      thank you :)

  • @weirdduck4578
    @weirdduck4578 3 ปีที่แล้ว

    Nice this is gonna help me ton with my projects. Really thanx.

    • @patloeber
      @patloeber  3 ปีที่แล้ว

      glad to hear that!

  • @midnightstudio3579
    @midnightstudio3579 23 วันที่ผ่านมา

    very good explnation

  • @nicolasgabrielsantanaramos291
    @nicolasgabrielsantanaramos291 4 ปีที่แล้ว +1

    Best Class ever!!! You're great.

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      Thanks for watching :)

  • @darthdaenerys
    @darthdaenerys 2 ปีที่แล้ว +1

    Thanks, there are a lot of tutorials on jupyter but I wanted to learn pytorch in VS code. This would help me a lot coz I don't use Jupyter notebook.

  • @fahadrahmanamik7190
    @fahadrahmanamik7190 4 ปีที่แล้ว

    Just Awesome ! Nicely explained pytorch 60 minutes blitz tutorial. Thanks a lot ! Love you man

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      glad you like it :)

  • @abdullahmuhammadmoosa7170
    @abdullahmuhammadmoosa7170 2 ปีที่แล้ว +2

    Hey which IDE are you using?
    Thanks by the way for the amazing tutorial!

  • @thanioruvan4556
    @thanioruvan4556 ปีที่แล้ว +1

    1:30 Why empty tensor shows some random values at output ??!!

  • @krishnabhat547
    @krishnabhat547 3 ปีที่แล้ว +2

    Hey, amazing work! Thank you so much for this :D

  • @fantasymujing1667
    @fantasymujing1667 2 ปีที่แล้ว

    great tutorial, thanks so much

  • @mariabarbarasalinasluna4808
    @mariabarbarasalinasluna4808 2 ปีที่แล้ว

    Excellent Python Engineer !!! It will be very helpful ;)

  • @DazzleWitch
    @DazzleWitch 3 ปีที่แล้ว

    Wow, what an excellent video. Thank you!

    • @patloeber
      @patloeber  3 ปีที่แล้ว

      Glad you liked it!

  • @MohakNarang07
    @MohakNarang07 4 ปีที่แล้ว

    Hey, great video buddy, you earned a sub!
    There is one thing that is happening in colab (torch version 1.5.0+cu101) which are pretty different than yours:
    While converting tensors from numpy to torch (and back), incrementing one variable does not change the value of the other.*
    Code:
    a = torch.zeros(5)
    b = a.numpy()
    a = a+1
    c = np.ones(5)
    d = torch.from_numpy(c)
    c = c+1
    print(a, b)
    print(c, d)
    According to what you said, the changes made in 'a' and 'c' should reflect in 'b' and 'd' respectively but that does not happen.
    Output:
    tensor([1., 1., 1., 1., 1.]) [0. 0. 0. 0. 0.]
    [2. 2. 2. 2. 2.] tensor([1., 1., 1., 1., 1.], dtype=torch.float64)
    Could you please clarify why this is the case?
    Thanks in advance.

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      Hi. Thanks for subscribing! Be careful. There is a difference between a+= 1, and a = a + 1. the latter assigns the value to a NEW variable a, therefore it does not change the others. I should have pointed this out better I guess. this difference is important not only in PyTorch but in general in python

    • @MohakNarang07
      @MohakNarang07 4 ปีที่แล้ว

      ​@@patloeber I certainly didn't know that. Thanks for pointing out the difference.
      Just to be sure that I understand correctly, a=a+1 increments the value of 'a', creates a new tensor (or variable location) in the memory and assigns the incremented value to it while a+=1 increments the value and assigns it to the same tensor (or variable location) 'a'. Is that correct?

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      Correct :)

  • @AneeqaKhalil
    @AneeqaKhalil 2 หลายเดือนก่อน

    very comprehensive

  • @Thomas-vo9ks
    @Thomas-vo9ks 3 ปีที่แล้ว

    Amazing video! Thanks for your helpful content!

  • @junhuishen2150
    @junhuishen2150 6 หลายเดือนก่อน

    So helpful!

  • @eranjitkumar11
    @eranjitkumar11 3 ปีที่แล้ว +2

    Hi .. thanks for the great content. I see that you did not showcase the inplace operation example for subtraction and division, which seems to not produce results as expected. Do you know why ?

  • @starlite5097
    @starlite5097 3 ปีที่แล้ว +2

    Wait, I just came here from the first tutorial. How did you go from the console to visual studio? What settings are there to be done? Also, if I want to use pycharm what should I do?

    • @patloeber
      @patloeber  3 ปีที่แล้ว

      vs code has a built in terminal. same thing with pycharm. just make sure in pycharm and vs code that you use the correct virtual environment

    • @ayushiagarwal6996
      @ayushiagarwal6996 3 ปีที่แล้ว

      what i did was I added a torch package and it worked fine

  • @Gamma3
    @Gamma3 3 ปีที่แล้ว +1

    Thank you. Great channel. I will suscribe

    • @patloeber
      @patloeber  3 ปีที่แล้ว

      Awesome, thank you!

  • @كنطيبلمراتي
    @كنطيبلمراتي 2 ปีที่แล้ว

    Hi, thanks for the containt. I woud ask you what is the IDE you are employing.

  • @Aditya_Kumar_12_pass
    @Aditya_Kumar_12_pass 3 ปีที่แล้ว +1

    ppl worrying what PYTORCH course should they do:
    this is exactly what u want. (of course calculus is important)

    • @patloeber
      @patloeber  3 ปีที่แล้ว

      glad to hear this!

  • @anil801
    @anil801 27 วันที่ผ่านมา

    is using negative values other than -1 not allowed in the view function?

  • @GrandAmericaMotorcycleRides
    @GrandAmericaMotorcycleRides 2 ปีที่แล้ว

    Great video series. I am on the M1 mac book pro. I had to run command: pip install torchvision in terminal in order for "import torch" to work. Maybe you covered that but maybe this will help someone.

    • @nisharahamed8106
      @nisharahamed8106 2 ปีที่แล้ว

      Thanx 👍👍
      my one day is wasted for searching this

  • @ilkayand4
    @ilkayand4 4 ปีที่แล้ว +1

    It is incredible perfect! Thanks a lot

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      Glad you like it :)

  • @sejalchandra2114
    @sejalchandra2114 3 ปีที่แล้ว

    Such amazing content..please create more educational videos

  • @elektoneman7175
    @elektoneman7175 4 ปีที่แล้ว +2

    Thanks for the grea tutorial. May I know how did you run the code directly from the editor?

    • @patloeber
      @patloeber  4 ปีที่แล้ว +5

      Hi, there is an extension for VS Code that is called “code runner” . Then you can run it directly from the editor :)

  • @califflourish6985
    @califflourish6985 2 ปีที่แล้ว

    Thanks for this. What is the software you're using here ?

  • @popamaji
    @popamaji 4 ปีที่แล้ว

    @14:15 I didnt get ur point about being on the gpu in order of referencing the tensors, and I got the result that its matter of the operator not device so if u use a+=1 in any device it will refer to the first tensor but it u use a=a+1 the b tensor wont be the same as a in any device
    correct me if Im wrong
    btw thanks to ur awesome playlist
    I have started learning pytorch from ur channel and I would ask many more questions in folllowing days
    with love

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      yes a=a+1 will create a new reference and so it won't affect b. Sorry i meant this only happens on the CPU, because when you move the tensor to the device with a = a.to(device) you also create a new reference

  • @jorgemercadog
    @jorgemercadog 3 ปีที่แล้ว

    Thank you!

  • @alexardelean7787
    @alexardelean7787 ปีที่แล้ว

    what app do you use to code

  • @c0mplicated
    @c0mplicated 3 ปีที่แล้ว +1

    5:27 y+=x

  • @jabyerre
    @jabyerre 4 ปีที่แล้ว

    3:30
    x = torch.ones(2, 2, dtype=torch.float16)
    RuntimeError: _th_fill_ is not implemented for type torch.HalfTensor

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      maybe in your pytorch version or OS this was not supported. try using torch.float32

    • @jabyerre
      @jabyerre 4 ปีที่แล้ว

      @@patloeber Yes, Working

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      @@jabyerre great!

  • @Leshotgun
    @Leshotgun 2 ปีที่แล้ว +1

    What environment is this? I installed Pytorch and now I am figuring out which environment to use it in.

    • @maxg5196
      @maxg5196 3 หลายเดือนก่อน

      I have the same question. Did you figure it out?

  • @littlebird52
    @littlebird52 4 ปีที่แล้ว +2

    If I create an empty Tensor, I get the value 0, while you get a very high value in your tensor, why is it like that?

    • @FlyingAnanas
      @FlyingAnanas 3 ปีที่แล้ว

      It is similar to how numpy.empty and numpy.ones works. Empty will generate and array/tensor faster as it just references memory to be part of the array but without overwriting the memory (as opposed to numpy.ones/zeros). Therefore you are just left with what was in there before, which can be anything. If you run the .empty generation a bunch of times you should get lot of different results, often 0 but not always.

  • @juleswombat5309
    @juleswombat5309 3 ปีที่แล้ว

    Awesome Tutorial series
    Just a minor query. How do I multiply tensors, like matrices. Since I thought most pytorch operation would be tensor wide multiplication and additions, and not so much element wise multiplications?

    • @LeonNighttime
      @LeonNighttime 3 ปีที่แล้ว

      torch.mul(x,y) is matrix multiplication. The element-wise multiplication can be done with torch.addcmul(input, t1, t2) where input is added to the multiplied tensors. You can look it up in the documentation.

  • @skinnyboystudios9722
    @skinnyboystudios9722 4 ปีที่แล้ว

    Thank you very much. Are yuo going to do reinforcement learning?

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      This is on my list for the future, but it's not a simple topic :)

    • @skinnyboystudios9722
      @skinnyboystudios9722 4 ปีที่แล้ว

      @@patloeber You are a good teacher. what I fail to understand from lot of people, you cover in simplest way. I wish you continue your NLP tutorial and in the future cover things like GAN's and RL

  • @xinqiaozhao5154
    @xinqiaozhao5154 4 ปีที่แล้ว

    Very nice video! Hope you may make some tutorials about the new released dectectron2 source code~

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      i will have a look at that

  • @valarmorghulisx
    @valarmorghulisx 3 ปีที่แล้ว

    Hi thank you so much. i install vs code and i did all extensions which you used. but code runner doesnt work. when i press ctrl+alt+n output says me "python not found" i change right bottom menu language as a python but it doesnt work. i can see in terminal but ctrl+alt+n doesnt work. can you help me? thank you.

  • @chandrasutrisno
    @chandrasutrisno 2 ปีที่แล้ว

    What is the difference betweem torch.rand and torch.empty ?

  • @AndreyPudov
    @AndreyPudov ปีที่แล้ว

    There is no direct way to provide a dtype while converting from np to torch, right? The statement like
    b = torch.from_numpy(a, dtype = np.int32)
    is not valid. As I found, you can create additional torch arraya and specify a type:
    tensor_a = torch.from_numpy(np_array)
    tensor_b = torch.Tensor(np_array)
    tensor_c = torch.tensor(np_array, dtype=torch.int32)

  • @hasanserdarmacit6901
    @hasanserdarmacit6901 11 หลายเดือนก่อน

    hi , i have a for dimension like this torch.size(16, 512 ,14 14), 512 number of features. how can i export this to the txt file

  • @d-shiri
    @d-shiri 3 ปีที่แล้ว +1

    thanks for the video, btw, just being on Linux or Windows is not enough to have CUDA. you gotta have NVIDIA

    • @patloeber
      @patloeber  3 ปีที่แล้ว +1

      yep of course

  • @小P-s2g
    @小P-s2g 9 หลายเดือนก่อน

    amazing❤

  • @shuturelisharri3691
    @shuturelisharri3691 4 ปีที่แล้ว

    I noticed that if the Tensor is created using
    x = np.random.rand(3,2)
    y = torch.tensor(x)
    Then even if you are using cpu and you update the value of x, the value of y remains unchanged.

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      What operation are you using to update x? there is a difference between x += 2, and x = x + 2

  • @sahhaf1234
    @sahhaf1234 2 ปีที่แล้ว

    what does "modify in place" mean? I think this si the only obscure point in the video. otherwise, very clear and understandable...

  • @SleepyBirds-md7im
    @SleepyBirds-md7im 4 หลายเดือนก่อน

    What application is this

  • @improvestepbystep
    @improvestepbystep 3 ปีที่แล้ว

    what is this console and where can we find it?

  • @NostalgiaT
    @NostalgiaT 2 หลายเดือนก่อน

    im getting this when installing pytorch UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
    cpu = _conversion_method_template(device=torch.device("cpu"))

  • @henrybarathmariadossantonisamy
    @henrybarathmariadossantonisamy ปีที่แล้ว

    what IDE is this ? thanks in advance :)

  • @dhananjaykansal8097
    @dhananjaykansal8097 5 ปีที่แล้ว

    Sir what Python script you’re using to write the codes?

    • @patloeber
      @patloeber  5 ปีที่แล้ว +1

      You mean my editor? Visual Studio Code

    • @dhananjaykansal8097
      @dhananjaykansal8097 5 ปีที่แล้ว +1

      @@patloeber Yes your editor. Thanks for a quick response.#regardsfromindia

  • @advaitpatel4629
    @advaitpatel4629 4 ปีที่แล้ว

    Would you save this file in the virtualenv that was created in the last video?

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      I'm not sure what you mean? For all the pytorch code you have to activate the PyTorch environment that we created in the last video

    • @advaitpatel4629
      @advaitpatel4629 4 ปีที่แล้ว

      @@patloeber My bad, I forgot how virtual environments work lol

  • @Paulchen2905
    @Paulchen2905 4 ปีที่แล้ว

    Thanks for the effort you put in your tutorials! But one thing I don't understand: what is the reason (benefit) of reshaping tensors? I watched many explanations but I still don't get it! Hope you can help me out! Thx

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      Thanks for watching. There are many reasons why you need reshaping. One is that e.g. different loss functions expect the Y and Y_predicted in a certain shape (see the Softmax tutorial). Another is that the shape of X is dependent on your first layer in your neural network. And when you work with images, a lot of times you flatten your 2D image array to a 1D tensor. Then you also want to up or downsample your images, so you increase or decrease the size. This needs reshaping, too…

    • @Paulchen2905
      @Paulchen2905 4 ปีที่แล้ว +1

      @@patloeber Thank you very very much

  • @jasminepak6663
    @jasminepak6663 3 ปีที่แล้ว

    How to change to run on OUTPUT instead of in Terminal?

    • @patloeber
      @patloeber  3 ปีที่แล้ว

      you need the Code Runner extension

    • @rAnDoMcHaNnEl593
      @rAnDoMcHaNnEl593 ปีที่แล้ว

      @@patloeber I downloaded the Code Runner but when i run the code it can't find python for some reason

  • @popamaji
    @popamaji 4 ปีที่แล้ว

    Hi the x.to(device) isnt working for me, how can I fix it?
    btw I have cuda availabe and it only uses the device in introduction of variable and wont accept changes

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      hm strange, this should work. is your code like this?
      device = torch.device("cuda")
      x = x.to(device)

    • @popamaji
      @popamaji 4 ปีที่แล้ว +2

      @@patloeber it was just x.to(device)

    • @patloeber
      @patloeber  4 ปีที่แล้ว +2

      @@popamaji you have to assign it to the new x again.

  • @rrogerx92III
    @rrogerx92III 2 ปีที่แล้ว +1

    Minor mistake: You cannot add x and y. One in the gpu memory and the other one in cpu memory.

  • @johnxu2505
    @johnxu2505 3 ปีที่แล้ว

    What ide are you using in tutorial?

  • @tarungupta2715
    @tarungupta2715 4 ปีที่แล้ว

    which editor you are using
    please reply

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      VS code. I have a whole tutorial about my editor setup

    • @misbahanwer3528
      @misbahanwer3528 4 ปีที่แล้ว

      @@patloeber where is it?

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      @@misbahanwer3528 www.python-engineer.com/posts/vscode-python-setup/

  • @Tech_Ez
    @Tech_Ez 2 ปีที่แล้ว +4

    You jumped the gun a bit moving from the terminal to VS Code without instruction

  • @mihaidumitrescu1325
    @mihaidumitrescu1325 8 หลายเดือนก่อน

    Fun fact, if one writes b = torch.from_numpy(a.astype(np.int32)), a += 1, print(b, "not modified by reference, because astype was called"), b will not be modified :D
    This is how bugs are born :D

  • @abdallahsharaf5178
    @abdallahsharaf5178 ปีที่แล้ว

    what is that ide?

  • @rAnDoMcHaNnEl593
    @rAnDoMcHaNnEl593 ปีที่แล้ว

    I know he is using the extension coderunner for the code outpu, but when i try it with code runner, it keep saying python not found.

  • @tesfayeyimam3700
    @tesfayeyimam3700 3 ปีที่แล้ว

    It is time to subscribe to this channel...One more thing, can yo
    u suggest me a book related to PyTorch plz?

    • @patloeber
      @patloeber  3 ปีที่แล้ว +1

      Thanks! "Deep Learning With PyTorch" is ok but not required. I can also recomment the tutorials on the official pytorch website

    • @tesfayeyimam3700
      @tesfayeyimam3700 3 ปีที่แล้ว

      @@patloeber Thank You Dear!

  • @mastershooter64
    @mastershooter64 2 ปีที่แล้ว +1

    technically tensors are multilinear maps from the cartesian product of 'n' number of a vector space and 'm' number of the dual of that vector space to that vector space's underlying field. i.e elements of tensor product spaces. :) what we're seeing here is are just tensors represented in a particular basis. when they are represented in a basis they look like lists of numbers or an NxNx....xN array of numbers

  • @zibiax
    @zibiax 4 ปีที่แล้ว

    I don't get a tensor output. Watched your video on anaconda to get it set up right, but I must have done something wrong. To bad you didn't show how you set it up in between part 1 and 2. Subscribed anyway

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      hmm what error message do you get? Thanks for subscribing!

    • @zibiax
      @zibiax 4 ปีที่แล้ว

      @@patloeber I don't get an error I just get "exited with code=0 in 0.059 seconds". Thanks for answering!

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      @@zibiax this means your code ran successfully! maybe you don't have the print statements?

    • @zibiax
      @zibiax 4 ปีที่แล้ว

      @@patloeber I do have the print statement, but now it just prints "tensor([0.])". It works as it should in the terminal

    • @zibiax
      @zibiax 4 ปีที่แล้ว

      got it working. Had to mark all the code to make it print. 1:20 Thank you very much for the help!

  • @deepakraj008
    @deepakraj008 4 ปีที่แล้ว

    Now I am pronouncing the tensor to tenjor.

  • @robosergTV
    @robosergTV 3 ปีที่แล้ว

    do you really use vs code without autocomplete? :) Pylance addon does it. There is also "Kite" that is AI enchanced code suggest feature

  • @Grenzgaenger13
    @Grenzgaenger13 4 ปีที่แล้ว +2

    Thanks for your vids mate. I succesfully went through the first one but I do not understand how to execute python files because I always get a "no module named 'torch'" error when I try to execute a written file from the cmd. However, I could succesfully execute torch functions when I wrote the code in the cmd. Thanks for any help:)

    • @Grenzgaenger13
      @Grenzgaenger13 4 ปีที่แล้ว

      wow, it only works when I start my program with "python program.py", which I never do since I am used to start my scripts just with "program.py", lol

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      no you should always execute them with "python your_file.py"

  • @jayanthkumar9637
    @jayanthkumar9637 3 ปีที่แล้ว

    wooooooooooooooooooooooooooooooooooooooooooooow.....thank you

    • @patloeber
      @patloeber  3 ปีที่แล้ว +1

      You are welcome!

  • @masoudrahimi3696
    @masoudrahimi3696 ปีที่แล้ว

    Thank you for your contents. How can I practive learnings from this video to strengthen my learning?

  • @anadjurica3035
    @anadjurica3035 4 ปีที่แล้ว

    Thanks!

  • @DanielVazquez
    @DanielVazquez 4 ปีที่แล้ว

    Can someone tell me what IDE is he using?

    • @alexanderpoplawski577
      @alexanderpoplawski577 4 ปีที่แล้ว +1

      Visual Studio Code from Microsoft. Its open source and free.

    • @patloeber
      @patloeber  4 ปีที่แล้ว +1

      Yes, I have a tutorial about my VS Code setup

    • @DanielVazquez
      @DanielVazquez 4 ปีที่แล้ว

      Thanks!

  • @Regalman
    @Regalman 4 ปีที่แล้ว

    HOW TO CONVERT A LIST OR ARRAY INTO A PYTORCH TENSOR?????

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      You can easily do this with torch.tensor(list), or torch.tensor(array)

  • @djangoworldwide7925
    @djangoworldwide7925 4 หลายเดือนก่อน

    I love you

  • @proniss
    @proniss 2 ปีที่แล้ว

    my empty tensor is just full of 0's while yours has actual values in it

  • @BestMotivationalVideos123
    @BestMotivationalVideos123 ปีที่แล้ว

    Your accent is adorable

  • @piyushkumar-wg8cv
    @piyushkumar-wg8cv ปีที่แล้ว

    Also show errors

  • @justinberdell7517
    @justinberdell7517 4 ปีที่แล้ว

    Very useful and informative but way too many ads. It disrupts the learning process and defeats its purpose.

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      sorry about that :(

  • @yssss9368
    @yssss9368 3 ปีที่แล้ว

    watch at 1.75x speed

  • @aryankargwal9907
    @aryankargwal9907 4 ปีที่แล้ว +1

    You speak a bit slow the video rather seems better at 1.5x

  • @dylanpowell2674
    @dylanpowell2674 หลายเดือนก่อน

    Really. Four ads in 11 minutes? Double ad at that.

  • @gameguy7348
    @gameguy7348 ปีที่แล้ว

    me: tf is his voice (tooooooooooorchhhhhhhhhh....)
    mind: nah his gay

  • @mittalmayankcool
    @mittalmayankcool ปีที่แล้ว

    too many advertisements

  • @exploraj4380
    @exploraj4380 ปีที่แล้ว

    tenzoa nhi yarrr tenzor hai
    No offens...brothers

  • @JirongYi
    @JirongYi 3 ปีที่แล้ว

    Man, am I coming here for the ads? The ads even take long time than the main contnent

  • @llllllllllllllllllllIll
    @llllllllllllllllllllIll 25 วันที่ผ่านมา

    Bro straight up yapping without setting up the basics to understand

  • @PWK95
    @PWK95 4 ปีที่แล้ว

    Okay, the way you pronounce "tensors" is super german

    • @patloeber
      @patloeber  4 ปีที่แล้ว

      Haha, yes I can't hide my accent ;)