Challenge: Initializing Tensors
Task
Swipe to start coding
- Create a
2x3tensor filled with zeros using thetorch.zeros()function. - Create a 1D tensor with integer values from
1to10inclusive (11exclusive) using thetorch.arange()function. - Create a 1D tensor with
10evenly spaced values between2and4inclusive using thetorch.linspace()function.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 5
Challenge: Initializing Tensors
Swipe to show menu
Task
Swipe to start coding
- Create a
2x3tensor filled with zeros using thetorch.zeros()function. - Create a 1D tensor with integer values from
1to10inclusive (11exclusive) using thetorch.arange()function. - Create a 1D tensor with
10evenly spaced values between2and4inclusive using thetorch.linspace()function.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 4
single