Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite328d0c

Browse files
committed
Fix undefined variable 'device' in kernel_config
1 parent04e27cb commite328d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/transformers/utils/kernel_config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def create_compatible_mapping(self, model, compile=False):
217217

218218
ifisinstance(kernel,str):
219219
repo_name=kernel
220-
add_to_mapping(layer_name,device,repo_name,mode,compatible_mapping)
220+
add_to_mapping(layer_name,current_device,repo_name,mode,compatible_mapping)
221221
elifisinstance(kernel,dict):
222222
fordevice,repo_nameinkernel.items():
223223
ifdevice!=current_device:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp