Dive into Deep Learning – Lec 6: Basics of Object-Oriented Programming in PyTorch (torch.nn.Module)

preview_player
Показать описание

- super(NeuralNetwork, self).__init__()
- def forward(self, x)

#PyTorch #Inheritance #nn.Module
Рекомендации по теме
Комментарии
Автор

These videos are so well made and offer an exhaustive and detailled explanation. I wish there would be more!

ahlem
Автор

Exactly what I was looking for. Thank you! :)

jxsh
Автор

I want to make a note on the use of `super` method in the ``__init__`` method of the subclass. There's an alternative, less cumbersome syntax to use `super`: you can use `super().__init__()` instead of `super(NeuralNetwork, self).__init__()` (see timestamp 17:16). These expressions are both equivalent.

adnanhashem
Автор

Wow really a clear explanation, this helped me a lot. Thanks for the video.

ritobrotomohanto
Автор

how model(x) work, is he should right

moatazomar-dluo