facebookresearch/d2go

ImportError: cannot import name 'get_fqn_to_example_inputs' from 'torch.ao.quantization.utils' (/usr/local/lib/python3.7/dist-packages/torch/ao/quantization/utils.py)

nikitha-debug opened this issue ยท 3 comments

Instructions To Reproduce the ๐Ÿ› Bug:

  1. Full runnable code or full changes you made:
If making changes to the project itself, please use output of the following command:
git rev-parse HEAD; git diff

<put code or diff here>
  1. What exact command you run:
  2. Full logs or other relevant observations:
<put logs here>
  1. please simplify the steps as much as possible so they do not require additional resources to run, such as a private dataset.

Expected behavior:

If there are no obvious error in "what you observed" provided above,
please tell us the expected behavior.

@nikitha-debug hi, could you re-install the pytorch-nightly? The latest version should contain this function.

Are you still getting this error after re-installing pytorch-nightly?
Same error: #360

@bryantwilliam I solved the problem after I re-install the pytorch-nightly.

  1. Find the install command at pytorch.org .
  2. Run the install command.
  3. Check the version of torch and torchvision are the latest and compatiable in torch-torchvision matrix.