As suggested by @jwodder in this thread, the torch import in the setup.py file is not necessary because normal package installation will already ensure that torch is installed. Keeping the import is problematic for further packaging (as described here).
As suggested by @jwodder in this thread, the
torch
import in thesetup.py
file is not necessary because normal package installation will already ensure thattorch
is installed. Keeping the import is problematic for further packaging (as described here).