当前位置: 首页 > news >正文

中国十大大型门户网站设计logo理念

中国十大大型门户网站,设计logo理念,免费个人网站申请,西安抖音代运营公司背景 在vscode 中 如果执行命令需要传递进来参数,那么直接通过命令行终端的方式不太方便。通过task 任务的方式来进行启动执行,降低反复输入参数等繁琐工作。 首先可以查看vscode 官方文档 task 启动 crtl shift p .vscode/task.json 示例 执行cp…

背景

  • 在vscode 中 如果执行命令需要传递进来参数,那么直接通过命令行终端的方式不太方便。
  • 通过task 任务的方式来进行启动执行,降低反复输入参数等繁琐工作。

首先可以查看vscode 官方文档

  • task 启动 crtl + shift + p

.vscode/task.json 示例

执行cpp 带参数二进制

{"version": "2.0.0","tasks": [{"label": "Run BIN","type": "shell",  // shell 类型的任务"command": "${command:cmake.launchTargetPath}", // CMake 生成的二进制文件路径"args": ["${workspaceFolder}/config.toml",  // 第一个参数"${workspaceFolder}/model.onnx"  // 第二个参数],"options": {"cwd": "${command:cmake.launchTargetDirectory}"},"group": {"kind": "build", // 此任务的组别"isDefault": true // 设为默认任务},"problemMatcher": [], // 没有特定的错误匹配器"presentation": {"echo": true, // 在输出面板中回显命令"reveal": "always", // 始终在面板中显示"focus": false, // 不聚焦到输出面板"panel": "new", // 在新面板中显示输出"close": false, // 任务完成后关闭输出面板"clear": false // 任务启动前清空输出面板}}]
}

在执行task时,手动输入传参

  • 硬编码方式虽然比较简单粗暴,但是,当使用git来管理的时候,会引入一些没有必要的改变,那么此时就需要将参数,不是使用硬编码,而是去通过启动任务时,动态加载进去。
  • 那就简单介绍几种输入方式
        {  // 简单理解就是输入文本框"type": "promptString","id": "outputPath","description": "Please input the output path:",},{ // 简单理解说就是选择框"type": "pickString","id": "quantize","description": "use quantize","options": [{"label": "True","value": "-q"},{"label": "False","value": ""}],"default": ""},
  • 详细示例如下
{"version": "2.0.0","inputs":[{"type": "promptString","id": "outputPath","description": "Please input the output path:",},{"type": "pickString","id": "quantize","description": "use quantize","options": [{"label": "True","value": "-q"},{"label": "False","value": ""}],"default": ""},{"type": "pickString","id": "task","description": "task type","options": ["weigh","arc"],"default": "arc"},{"type": "promptString","id": "config","description": "Please input using configs file",},{"type": "pickString","id": "test_data","description": "juse use test data","options": [{"label": "True","value": "-b"},{"label": "False","value": ""}],"default": ""},{"type": "pickString","id": "qat","description": "use keras quantization aware training","options": [{"label": "True","value": "--qat"},{"label": "False","value": ""}],"default": ""},],"tasks": [{"label": "torch_inf","type": "shell","command": "${command:python.interpreterPath}","args": ["${workspaceFolder}/inference_torch.py","-i","${workspaceFolder}/output/${input:task}/${input:outputPath}"],"presentation": {"echo": true,"reveal": "always","focus": false,"panel": "shared","showReuseMessage": true,"clear": true},"problemMatcher": []},{"label" : "train","type": "shell","command": "${command:python.interpreterPath}","args": ["${workspaceFolder}/test.py","-c","${workspaceFolder}/configs/${input:config}"],"presentation": {"echo": true,"reveal": "always","focus": false,"panel": "shared","showReuseMessage": true,"clear": true},"problemMatcher": []},{"label" : "exprot_tfl","type": "shell","command": "${command:python.interpreterPath}","args": ["${workspaceFolder}/export2.py","-i","${workspaceFolder}/output/${input:task}/${input:outputPath}","${input:quantize}"],"presentation": {"echo": true,"reveal": "always","focus": false,"panel": "shared","showReuseMessage": true,"clear": true},"problemMatcher": []}]
}
http://www.yayakq.cn/news/419655/

相关文章:

  • 网站改版好吗wordpress获取评论数
  • 深圳做营销网站的公司简介今天的重要新闻
  • 太原做网站设计京东网站是自己做的吗
  • 国外教育网站模板做外贸需要用什么网站
  • 手机搜索网站建设乐辰网站建设
  • win2012 iis配置网站廊坊网站搭建
  • 深圳网站建设 诺骐网wordpress 去掉 index.php
  • 网站注册页面模板下载上海专业建网站公司
  • 网站建设所需wordpress 暗盒
  • 网站怎么显示百度名片网络舆情监控
  • 网站开发的岗位wang域名注册网站
  • 唯品会网站建设建议网站收录登录入口
  • 东莞做网站做什么赚钱做网站后台
  • 临沂医院手机网站建设北京企业网站建设价格
  • 上海模板网站公司网络营销与推广的概念
  • 给公司做网站的费用入什么科目网站开发市场
  • 做php网站用什么软件如何构成网站
  • 佛山网站建设的首选网站seo优化有哪些方面
  • 网站建设参考文献2017上海建网站计划
  • 做网站傻瓜网站开发外包维护合同范本
  • 干网站建设销售怎么样俄罗斯网络攻击数量增长了80%
  • 车机油哪个网站做的好网站建设饣金手指科杰十二
  • wordpress建站安全性誉字号网站
  • 建公司网站的详细步骤如何去除网站外链
  • 东航集团客户网站是哪家公司建设免费咨询英文
  • 钢管公司网站建设泉州关键词优化排名
  • 广西住房城乡建设厅官网站创意网站布局
  • 阿里云模板建站怎么样网站建设项目经费的报告
  • 网站seo完整seo优化方案模版和模板的区别
  • 公司做网站的流程徐州网站建设xlec