You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
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.
The text was updated successfully, but these errors were encountered:
System Info
Who can help?
No response
Information
Tasks
examples
folder (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__.py
file.I am willing to submit a pull request to implement this enhancement if it is deemed appropriate.
The text was updated successfully, but these errors were encountered: