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

Course Content

PyTorch Essentials

PyTorch Essentials

1. PyTorch Basics
2. Preparing for Neural Networks
3. Neural Networks

book
Challenge: Initializing Tensors

Task
test

Swipe to begin your solution

  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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 4
toggle bottom row

book
Challenge: Initializing Tensors

Task
test

Swipe to begin your solution

  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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 4
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt