[Docs] Documentation Issue (Frontend Related)
Developer Setup & Documentation Issue (Frontend Related)
ISSUE2: The TFLite tests (e.g., test_frontend_tflite.py) fundamentally require tensorflow==2.9 to avoid _ARRAY_API core dumps via Numpy 2.x and to maintain API compatibility
python=3.10
i ran an upgrade to the pip defaults (tensorflow>=2.16.0 and numpy>=2.0.0)
and ran the frontend tflite tests again pytest tests/python/relax/test_frontend_tflite.py -v
got: Segmentation fault (core dumped)
Testing the frontend with the new TensorFlow and NumPy version: tensorflow>=2.16.0 numpy>=2.0.0
After downgrading to stable versions: tensorflow==2.9.0 numpy==1.26.4
ISSUE2: everything runs correctly if the above issue was resolved, BUT if you used python>=3.11 you'll face errors again
python=3.11.15
- Although in The Install from Source docs explicitly instruct users to set up their environment with
python>=3.10. - old TF/Numpy refuses to install on Python 3.11
TensorFlow 2.9 has no pre-compiled binaries for Python 3.11+. If a user follows the official documentation and installs Python 3.11, they physically cannot install the correct TensorFlow version, forcing a pip upgrade chain that ultimately causes C++ ABI crashes and test failures.
Thank you for reporting, it is outdated, could you send a pr to update that? That'll be helpful.
sure, i'd love to
@tlopex, I also wanted to share some friendly feedback from a new contributor’s perspective.
The current Install from Source guide isn't really friendly especially for anyone trying to set up the project locally without Docker or Conda. Because the official documentation attempts to cover every possible configuration (macOS, Windows, Conda....) all on the same page, it results in heavy walls of text. A new contributor has to manually parse out which specific commands apply to their basic local setup, rather than just having a linear path to follow.
For context, I attached a couple of images showing the kind of straightforward, easily copy-pasteable guide that would be a game-changer for beginners. I’d love to hear your thoughts on whether the community would be open to streamlining the setup docs in the future!
Thanks for the feedback. We'll consider it and have some improvements!