tensor_size - fix copy/paste error msg typo (#28660)

Fix copy/paste error msg typo
This commit is contained in:
Scruel Tao 2024-01-23 19:22:02 +08:00 committed by GitHub
parent 27c79a0fb4
commit c475eca9cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -660,7 +660,7 @@ def tensor_size(array):
elif is_jax_tensor(array):
return array.size
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):