Зміст курсу
PyTorch Essentials
PyTorch Essentials
1. PyTorch Introduction
What is PyTorch?Introduction to TensorsTensor Creation FunctionsChallenge: Initializing TensorsCreating Random TensorsChallenge: Initializing Model Weights and BiasesMathematical Operations with TensorsChallenge: Performing Mathematical OperationsShapes and Dimensions in PyTorchChallenge: Reshaping Tensors
3. Neural Networks in PyTorch
Challenge: Reshaping Tensors
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 10
Challenge: Reshaping Tensors
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 10