Torch.utils.data.dataloader Outputs TypeError: 'module' Object Is Not Callable
So im trying to learn pytorch and i got this code from a tutorial and its just there to import a mnist dataset but it outputs 'TypeError: 'module' object is not callable' In the tu
Solution 1:
It's neither dataloader
nor Dataloader
but DataLoader
:)
Side-note: if you're new to PyTorch, consider using the newest version 1.0. torch.autograd.Variable
is deprecated as of PyTorch 0.4.1 (I believe) so you're either using an older version of PyTorch or an outdated tutorial.
Baca Juga
- Pytorch: How Can I Find Indices Of First Nonzero Element In Each Row Of A 2d Tensor?
- Why Is It In Pytorch When I Make A Copy Of A Network's Weight It Would Be Automatically Updated After Back-propagation?
- Runtimeerror: Given Groups=1, Weight Of Size [64, 3, 7, 7], Expected Input[3, 1, 224, 224] To Have 3 Channels, But Got 1 Channels Instead
Post a Comment for "Torch.utils.data.dataloader Outputs TypeError: 'module' Object Is Not Callable"