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

single

bookChallenge: Reshaping Tensors

Swipe um das Menü anzuzeigen

Aufgabe

Wischen, um mit dem Codieren zu beginnen

  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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 10
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt