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

Kursusindhold

PyTorch Essentials

PyTorch Essentials

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

book
Challenge: Initializing Tensors

Opgave

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 desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 4
toggle bottom row

book
Challenge: Initializing Tensors

Opgave

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 desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 4
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt