You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "LeiWang1999 (via GitHub)" <gi...@apache.org> on 2025/02/13 09:37:15 UTC
[PR] [Refactor] Phase out python dependency attrs [tvm]
LeiWang1999 opened a new pull request, #17649:
URL: https://github.com/apache/tvm/pull/17649
This pull request includes several changes aimed at removing the `attrs` library and replacing its usage with a python 3.7+ builtin `dataclasses` in the codebase. Additionally, it updates various dependency lists and installation scripts to reflect this removal.
Code refactoring:
* [`python/tvm/relay/transform/memory_plan.py`](diffhunk://#diff-09be5ffb3fcaecb371823a1802185d034f224c41d91c7e257784942b318ad92fL23-R23): Replaced `attr.s` with `dataclass` for defining the `Region` class. [[1]](diffhunk://#diff-09be5ffb3fcaecb371823a1802185d034f224c41d91c7e257784942b318ad92fL23-R23) [[2]](diffhunk://#diff-09be5ffb3fcaecb371823a1802185d034f224c41d91c7e257784942b318ad92fL44-L52)
Dependency updates:
* [`conda/recipe/meta.yaml`](diffhunk://#diff-eba2917991959691cc8fe3f70bcc7a181ec4b806191e3b3ded427f067fcd5a30L89): Removed `attrs` from the list of dependencies.
* [`docker/install/ubuntu2004_install_python_package.sh`](diffhunk://#diff-7e95c1dfcc4947180381cc3a845e3f64367a680cd08b8731924912f836001aa7L26): Removed `attrs` from the list of Python packages to be installed.
* [`docker/install/ubuntu_install_python_package.sh`](diffhunk://#diff-6a76ef512408162f24fa70f390ce27e150c1cef7714c678b3f75b3ba41e4bce2L26): Removed `attrs` from the list of Python packages to be installed.
* [`docs/install/from_source.rst`](diffhunk://#diff-fb60f53a75475f5774d6d0a2ec8c35c89b1b34255c19b2c6bf0a0404775efce8L212-R212): Removed `attrs` from the example command for installing extra Python dependencies.
* [`python/gen_requirements.py`](diffhunk://#diff-e90cbe77cd3691891521000b8c60d3ed4dab7b2c8f7a923fd558bcfe0088c43aL66): Removed `attrs` from the base requirements and constraints. [[1]](diffhunk://#diff-e90cbe77cd3691891521000b8c60d3ed4dab7b2c8f7a923fd558bcfe0088c43aL66) [[2]](diffhunk://#diff-e90cbe77cd3691891521000b8c60d3ed4dab7b2c8f7a923fd558bcfe0088c43aL239)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Refactor] Phase out python dependency attrs [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen merged PR #17649:
URL: https://github.com/apache/tvm/pull/17649
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org