Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c475eca9
Unverified
Commit
c475eca9
authored
Jan 23, 2024
by
Scruel Tao
Committed by
GitHub
Jan 23, 2024
Browse files
`tensor_size` - fix copy/paste error msg typo (#28660)
Fix copy/paste error msg typo
parent
27c79a0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/utils/generic.py
src/transformers/utils/generic.py
+1
-1
No files found.
src/transformers/utils/generic.py
View file @
c475eca9
...
@@ -660,7 +660,7 @@ def tensor_size(array):
...
@@ -660,7 +660,7 @@ def tensor_size(array):
elif
is_jax_tensor
(
array
):
elif
is_jax_tensor
(
array
):
return
array
.
size
return
array
.
size
else
:
else
:
raise
ValueError
(
f
"Type not supported for
expand_dims
:
{
type
(
array
)
}
."
)
raise
ValueError
(
f
"Type not supported for
tensor_size
:
{
type
(
array
)
}
."
)
def
add_model_info_to_auto_map
(
auto_map
,
repo_id
):
def
add_model_info_to_auto_map
(
auto_map
,
repo_id
):
...
...
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