-
Notifications
You must be signed in to change notification settings - Fork 962
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
[WIP]add other devices supported model list #2259
base: develop
Are you sure you want to change the base?
[WIP]add other devices supported model list #2259
Conversation
Thanks for your contribution! |
4430b50
to
ca9d659
Compare
@@ -159,6 +163,15 @@ def serve(pipeline, *, device, use_hpip, serial_number, update_license, host, po | |||
run_server(app, host=host, port=port, debug=False) | |||
|
|||
|
|||
def clear_cache(): |
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.
clear_cache 函数移到.utils.cache中,同时clear_cache()可以接受参数控制删除CACHE下的什么内容
@@ -65,6 +68,7 @@ def parse_str(s): | |||
|
|||
################# install pdx ################# | |||
parser.add_argument("--install", action="store_true", default=False, help="") | |||
parser.add_argument("--clear_cache", action="store_true", default=False, help="") |
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.
改为可接受参数,参数值可以对应CACHE_DIR下的目录名(或者是相应的),默认是删除全部
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
OTHER_DEVICES_MODEL_LIST = { |
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.
OTHER_DEVICES_MODEL_LIST这个命名不太好,可以改成:XPU_MODEL_WHITE_LIST这样多个list,再定义个device_support_model_dict = {"xpu": XPU_MODEL_WHITE_LIST}
ca9d659
to
9024ba3
Compare
9024ba3
to
31d099b
Compare
No description provided.