Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor pytorch engine #2104
Refactor pytorch engine #2104
Changes from 95 commits
038f6bf
68936c9
ccdb3ea
b123e4d
5a09d9f
4755b1e
60df32f
67aba31
4312826
ef092e5
9fefda5
839f0be
3345181
6746e67
e5a790b
fbc0912
a9ec3fa
67e427a
5158b96
580cdd0
449f947
0e16e69
e6a3048
364737b
93d3746
2dfcc6f
93c64ee
3622635
973d222
871b788
09149ac
935c25c
c363832
b5bb49f
8cf2ab2
3ce4e2d
30c2066
047e58e
6ef049d
7b75a65
c21bf95
b8f7f54
40fc417
9df5161
476bce2
eca95ff
d14289e
8424a21
6395a00
d34a2b4
fc7a78a
4e87115
9a6855d
694bb04
6d47b63
49e51ca
8550f04
6889cc6
481182d
b1c4ff7
71d55a4
90a4a63
5f772ab
1d3b27d
5607566
494649d
5f33ccf
17abf91
c6824d5
985c769
5de7cd9
7716147
9daa0d1
7d8ac69
e5a6c37
2236f28
3327d6d
fe18df4
b74a22d
2f29a78
d810128
27ec376
6e4da93
b98153e
77616aa
3bfcae2
50f5b3c
e61ddcf
a27bf51
0387730
195ed83
9b5bc43
3020ada
331e2c0
aa9c722
adbc531
84e9b01
1fae365
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里MODULE_MAP为啥我们要设计成Dict[str, str] 的形式,不是 Dict[str, class]的形式啊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
custom_module_map is a path to the
.py
file contain the map and custom module.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我是说内部的 MODULE_MAP 字典,之前用 patch 的话字符串能理解,但是改成自己加载权重推理的话,继续用字符串意义不大了吧。直接传类,简单直接
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load all classes is slow.