Open zhangqijun opened 1 year ago
pycharm的插件,自动注释功能,输入以下代码:
container = dockerclient.containers.run(tritonimage , command=['--model-repository=/models', '--model-control-mode=poll'] , entrypoint='tritonserver' , name="triton_server" , auto_remove=False , restart_policy={"Name": "always"} , detach=True , volumes={model_path: {'bind': '/models', 'mode': 'ro'}}, ipc_mode='host', environment={"SUDO": "yes", "NVIDIA_VISIBLE_DEVICES": '0'}, privileged=False, runtime='nvidia', ports={'8000': '8000', '8001': '8001', '8002': '8002'}, tty=False)
生成以下注释,无注释结果,反而引入了一句重复语句,wrong word标注
container = dockerclient.containers.run(tritonimage , command=['--model-repository=/models', '--model-control-mode=poll'] , entrypoint='tritonserver' , name="triton_server" , auto_remove=False , restart_policy={"Name": "always"} , detach=True , volumes={model_path: {'bind': '/models', 'mode': 'ro'}}, , volumes={model_path: {'bind': '/models','mode': 'ro'}}, (wrong word) ipc_mode='host', environment={"SUDO": "yes", "NVIDIA_VISIBLE_DEVICES": '0'}, privileged=False, runtime='nvidia', ports={'8000': '8000', '8001': '8001', '8002': '8002'}, tty=False)
pycharm的插件,自动注释功能,输入以下代码:
生成以下注释,无注释结果,反而引入了一句重复语句,wrong word标注