Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Initializing Tensors | PyTorch Introduction
PyTorch Essentials
course content

Kursinnehåll

PyTorch Essentials

PyTorch Essentials

1. PyTorch Introduction
2. More Advanced Concepts
3. Neural Networks in PyTorch

book
Challenge: Initializing Tensors

Uppgift

Swipe to start coding

  1. Create a 2x3 tensor filled with zeros using the appropriate creation function.
  2. Create a 1D tensor with integer values from 1 to 10 inclusive (11 exclusive) using the appropriate creation function.
  3. Create a 1D tensor with 10 evenly spaced values between 2 and 4 inclusive using the appropriate creation function.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
toggle bottom row

book
Challenge: Initializing Tensors

Uppgift

Swipe to start coding

  1. Create a 2x3 tensor filled with zeros using the appropriate creation function.
  2. Create a 1D tensor with integer values from 1 to 10 inclusive (11 exclusive) using the appropriate creation function.
  3. Create a 1D tensor with 10 evenly spaced values between 2 and 4 inclusive using the appropriate creation function.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt