System Info
Who can help?
No response
Information
Tasks
Reproduction (minimal, reproducible, runnable)
import optimum
print(optimum.__version__)
Expected behavior
During development, I attempted to retrieve the library's version using the common convention of accessing the version attribute. However, I encountered an AttributeError indicating that the version attribute is not defined.
But it is available by using optimum.version.__version__. To enhance usability and align with common Python conventions, I suggest defining the __version__ attribute in the library's __init__.py file.
I am willing to submit a pull request to implement this enhancement if it is deemed appropriate.
System Info
Who can help?
No response
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction (minimal, reproducible, runnable)
Expected behavior
During development, I attempted to retrieve the library's version using the common convention of accessing the version attribute. However, I encountered an AttributeError indicating that the version attribute is not defined.
But it is available by using
optimum.version.__version__. To enhance usability and align with common Python conventions, I suggest defining the__version__attribute in the library's__init__.pyfile.I am willing to submit a pull request to implement this enhancement if it is deemed appropriate.