About 50 results
Open links in new tab
  1. What is difference between nn.Module and nn.Sequential

    Aug 1, 2021 · I should start by mentioning that nn.Module is the base class for all neural network modules in PyTorch. As such nn.Sequential is actually a direct subclass of nn.Module, you can look …

  2. pytorch - When should I use nn.ModuleList and when should I use nn ...

    Nov 29, 2017 · I am new to Pytorch and one thing that I don't quite understand is the usage of nn.ModuleList and nn.Sequential. Can I know when I should use one over the other? Thanks.

  3. What exactly is the definition of a 'Module' in PyTorch?

    Aug 12, 2018 · 6 Without being a pytorch expert is my understanding that a module in the context of pytorch is simply a container, which takes receives tensors as input and computes tensors as output. …

  4. What is the difference between register_forward_hook and register ...

    Oct 26, 2023 · As the title suggests, I am trying to understand how the functionality of these two functions as forward hooks in PyTorch? I see that regisfter_module_forward_hook adds a global …

  5. python - Cannot import Pytorch [WinError 126] The specified module ...

    Apr 29, 2020 · I'm trying to do a basic install and import of Pytorch/Torchvision on Windows 10. I installed a Anaconda and created a new virtual environment named photo. I opened Anaconda …

  6. Freeze certain layers of an existing model in PyTorch

    Jun 23, 2020 · Freeze certain layers of an existing model in PyTorch Asked 5 years, 7 months ago Modified 2 years, 4 months ago Viewed 59k times

  7. No module named 'torch' in Jupyter Notebook although pytorch is ...

    Sep 20, 2023 · The Jupyter Notebook not able to find the torch module,despite I have it installed. In the console it has no issue to import torch: How do it fix the issue so that I can import torch in Jupyter

  8. How to obtain sequence of submodules from a pytorch module?

    Jun 15, 2020 · For a pytorch module, I suppose I could use .named_children, .named_modules, etc. to obtain a list of the submodules. However, I suppose the list is not given in order, right?

  9. python - In PyTorch, how to make __call__ () of nn.Module …

    Dec 18, 2024 · In PyTorch, how to make __call__ () of nn.Module automatically copy the type hints and docstring of forward ()? Asked 1 year, 1 month ago Modified 1 year, 1 month ago Viewed 173 times

  10. How do I print the model summary in PyTorch? - Stack Overflow

    How do I print the summary of a model in PyTorch like what model.summary() does in Keras: Model Summary: