Загрузка страницы

PyTorch Hooks Explained - In-depth Tutorial

In this video, I explain how hooks work in PyTorch. Hooks allow you to inject code into different parts of the computational graphs (in both the forward graph and the backward graph). The four types of hooks that are available in PyTorch are:
Tensor.register_hook (https://pytorch.org/docs/master/autograd.html?highlight=register#torch.Tensor.register_hook)
Module.register_forward_pre_hook (https://pytorch.org/docs/master/generated/torch.nn.Module.html?highlight=register#torch.nn.Module.register_forward_pre_hook)
Module.register_forward_hook (https://pytorch.org/docs/master/generated/torch.nn.Module.html?highlight=register#torch.nn.Module.register_forward_hook)
Module.register_backward_hook (https://pytorch.org/docs/master/generated/torch.nn.Module.html?highlight=register#torch.nn.Module.register_backward_hook)

My previous video, "PyTorch Autograd Explained - In-depth Tutorial":
📼 https://youtu.be/MswxJw-8PvE

GitHub code examples of using hooks:
💻 https://github.com/elliotwaite/pytorch-hooks-tutorial

Join our Discord community:
💬 https://discord.gg/cdQhRgw

Connect with me:
🐦 Twitter - https://twitter.com/elliotwaite
📷 Instagram - https://www.instagram.com/elliotwaite
👱 Facebook - https://www.facebook.com/elliotwaite
💼 LinkedIn - https://www.linkedin.com/in/elliotwaite

🎵 Kazukii - Return
→ https://soundcloud.com/ohthatkazuki
→ https://open.spotify.com/artist/5d07MpiIaNmmEMTq79KAga
→ https://www.youtube.com/user/OfficialKazuki

Видео PyTorch Hooks Explained - In-depth Tutorial канала Elliot Waite
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
26 августа 2020 г. 4:57:53
00:22:08
Яндекс.Метрика