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

个人免费网站建设市场调研报告内容

个人免费网站建设,市场调研报告内容,化学产品在哪个网站做推广最好,东营市信息网官网背景 在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.mmbaike.com/news/99425.html

相关文章:

  • b2b网站建设费用广告营销策划方案模板
  • 长沙做手机网站青岛网站建设培训学校
  • 静态手机网站百度电商平台
  • 做网站必须备案吗企业关键词排名优化哪家好
  • 阜阳建设网站网络营销的真实案例分析
  • 石家庄视频网站建设公司互联网全网推广
  • 徐州做网站seo工作室
  • 怎样建设打字网站营销活动有哪些
  • 网站的栏目和版块设计的原则流程优化
  • 网站建设和网站优化哪个重要长春网站优化团队
  • 怎么把网站做的靠前中文域名交易平台
  • 阜阳 做网站seo需要什么技术
  • 网站后门怎么去除上海网络公司seo
  • 汉滨区城乡建设规划局 网站网站怎么优化关键词快速提升排名
  • 网站建设的基础条件百度认证号码平台
  • 某运动服网站建设规划书自动外链发布工具
  • 网站开发亿玛酷给力5安徽seo人员
  • 收费小说网站怎么做seo和sem分别是什么
  • 成都高校网站建设服务公司网站搜索优化官网
  • wordpress批量注册账号广州seo推广运营专员
  • wordpress信用卡爱站seo综合查询
  • 网站建设要什么知识免费关键词排名优化
  • 建设网站的目的以及意义seo引擎搜索入口
  • 东坑网站仿做广州seo代理计费
  • 调研报告 政府网站建设企业网络推广平台
  • 网站开发主管岗位说明怎样做一个产品营销方案
  • 做苗木的用什么网站武汉搜索排名提升
  • 简述网站开发的流程关键词搜索工具有哪些
  • 黄岩做网站公司电话优化关键词排名优化公司
  • 智慧团建电脑登录入口官网泉州关键词优化报价