Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Initializing Tensors | Section
Neural Networks and Deep Learning Foundations with PyTorch
Section 1. Chapitre 4
single

single

bookChallenge: Initializing Tensors

Glissez pour afficher le menu

Tâche

Glissez pour commencer à coder

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

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 4
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt