module ‘torch.library’ has no attribute ‘register_fake’


This is a weird error that you may get when using the torch library.. fortunately, the error is easy to fix:

It means that your torchvision is too high. Here are your solutions:

  1. downgrade torchvision
  2. determine if you actually need it – if not then pip uninstall torchvision

Leave a Reply

Your email address will not be published. Required fields are marked *