Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Update transformers/__init__.py warning#1129

Merged
mgoin merged 2 commits into
mainfrom
nm-transformers-warn
Jul 19, 2023
Merged

Update transformers/__init__.py warning#1129
mgoin merged 2 commits into
mainfrom
nm-transformers-warn

Conversation

@mgoin

@mgoin mgoin commented Jul 19, 2023

Copy link
Copy Markdown
Member

Needed to actually use the string nm_transformers rather than some variable

This was causing an error when hitting the warning:

File "deepsparse/transformers/__init__.py", line 47, in _check_transformers_install
    f"installed via `pip install {nm_transformers}`"
NameError: name 'nm_transformers' is not defined. Did you mean: '_transformers'?

@mgoin mgoin requested review from bfineran and rahul-tuli July 19, 2023 18:34
@mgoin mgoin merged commit 23178bc into main Jul 19, 2023
@mgoin mgoin deleted the nm-transformers-warn branch July 19, 2023 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants