Section 1. Chapitre 10
single
Challenge: Reshaping Tensors
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
- Reshape the given tensor (with an initial shape of
3x4) into a2x6tensor. - Create a view of the reshaped tensor as a
4x3tensor. - Use the appropriate method to add a new dimension at the third position (index
2) of the tensor. - Use
squeeze()to remove the added dimension.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 10
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion