I pad the Mnist dataset using transforms.Pad(2). Then when I want to iterate through the loader, I get this error:
TypeError: ‘builtin_function_or_method’ object has no attribute 'getitem’
Any ideas?
Thanks