Closed ccleavinger closed 3 months ago
Hi @ccleavinger , please follow our setup guide to install the supported nightly dependencies. Here are the commands:
pip uninstall torch torchvision torch_xla
pip install -r https://raw.githubusercontent.com/google-ai-edge/ai-edge-torch/main/requirements.txt
pip install ai-edge-torch-nightly
and make sure your installed dependencies match the versions specified here https://github.com/google-ai-edge/ai-edge-torch/blob/main/requirements.txt . Please let me know if you have any issues with the setup, thanks!
Thank you I just had some library conflicts! I should've used the requirements listed on the github I just thought they would've been handled on the PyPi version. Thanks so much for the help you're a lifesaver!
Description of the bug:
Got an ImportError from ai-edge-torch when I imported ai-edge torch. Code:
Error:
Actual vs expected behavior:
I expected a tf-lite model to be exported.
Any other information you'd like to share?
My version of pytorch is 2.4.0 (as this library requires) and torch_xla is 2.3.* I believe this is where the issue stems from. I simply don't know where a version of torch_xla that is compatible with the 2.4 version of pytorch can be installed. Sorry if this is a dumb issue I just desperately need to fix this. Any help would be appreciated!