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

single

bookChallenge: Reshaping Tensors

Glissez pour afficher le menu

Tâche

Glissez pour commencer à coder

  1. Reshape the given tensor (with an initial shape of 3x4) into a 2x6 tensor.
  2. Create a view of the reshaped tensor as a 4x3 tensor.
  3. Use the appropriate method to add a new dimension at the third position (index 2) of the tensor.
  4. Use squeeze() to remove the added dimension.

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 10
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