Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a1160185
Unverified
Commit
a1160185
authored
Jun 07, 2023
by
Michael Benayoun
Committed by
GitHub
Jun 07, 2023
Browse files
Fix `is_optimum_neuron_available` (#23961)
Fix is_optimum_neuron_available
parent
6b548129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/transformers/utils/import_utils.py
src/transformers/utils/import_utils.py
+1
-2
No files found.
src/transformers/utils/import_utils.py
View file @
a1160185
...
@@ -98,7 +98,6 @@ _natten_available = _is_package_available("natten")
...
@@ -98,7 +98,6 @@ _natten_available = _is_package_available("natten")
_onnx_available
=
_is_package_available
(
"onnx"
)
_onnx_available
=
_is_package_available
(
"onnx"
)
_openai_available
=
_is_package_available
(
"openai"
)
_openai_available
=
_is_package_available
(
"openai"
)
_optimum_available
=
_is_package_available
(
"optimum"
)
_optimum_available
=
_is_package_available
(
"optimum"
)
_optimumneuron_available
=
_optimum_available
and
_is_package_available
(
"optimum.neuron"
)
_pandas_available
=
_is_package_available
(
"pandas"
)
_pandas_available
=
_is_package_available
(
"pandas"
)
_peft_available
=
_is_package_available
(
"peft"
)
_peft_available
=
_is_package_available
(
"peft"
)
_phonemizer_available
=
_is_package_available
(
"phonemizer"
)
_phonemizer_available
=
_is_package_available
(
"phonemizer"
)
...
@@ -520,7 +519,7 @@ def is_optimum_available():
...
@@ -520,7 +519,7 @@ def is_optimum_available():
def
is_optimum_neuron_available
():
def
is_optimum_neuron_available
():
return
_optimum
neuron
_available
return
_optimum_available
and
_is_package_available
(
"optimum.neuron"
)
def
is_safetensors_available
():
def
is_safetensors_available
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment