Commit ff80951
torch_vision.py: use set device type (#621)
* use device enum to transfer model to cuda
* Update libs/infinity_emb/infinity_emb/transformer/vision/torch_vision.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
---------
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>1 parent f84d8e2 commit ff80951
File tree
1 file changed
+1
-1
lines changed- libs/infinity_emb/infinity_emb/transformer/vision
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments