Challenge: Reshaping Tensors
Taak
Swipe to start coding
- Reshape the given tensor (with an initial shape of
3x4
) into a2x6
tensor. - Create a view of the reshaped tensor as a
4x3
tensor. - 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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 10
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 5
Challenge: Reshaping Tensors
Veeg om het menu te tonen
Taak
Swipe to start coding
- Reshape the given tensor (with an initial shape of
3x4
) into a2x6
tensor. - Create a view of the reshaped tensor as a
4x3
tensor. - 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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Awesome!
Completion rate improved to 5Sectie 1. Hoofdstuk 10
single