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

个人免费网站建设专业软文

个人免费网站建设,专业软文,怎样找别人制作网站,wordpress弹出提示框背景 在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.tj-hxxt.cn/news/101539.html

相关文章:

  • 网上做造价网站百度搜索引擎排名规则
  • 网站建设的五个基本要素苏州seo服务
  • 哪个网站可以付费做淘宝推广外贸网站建设案例
  • 班级网站模板下载培训心得体会模板
  • 昆明网站做的好的公司迈步者seo
  • 建设政府网站十强公司一站传媒seo优化
  • 做网站公网站seo文章
  • 中小企业营销型网站建设百度热搜风云榜
  • 想自己搞一个视频网站怎么做武汉百度推广开户
  • 制作一个教育网站真正免费建站
  • 怎么做软件开发河北百度竞价优化
  • wordpress建站教程jiuyou互联网服务平台
  • 代理网页风和日丽关键词优化如何
  • 网站建设总体方案设计沧州网站优化
  • 域名搭建网站公司企业网站建设方案
  • 品牌网站建设精湛磐石网络2345网址大全
  • 广告推广语seo整站优化公司持续监控
  • 做外贸产品上什么网站推广软件哪个好
  • 门户网站建设意义广州网站优化运营
  • 自建网站服务器企业网站设计图片
  • 海南新闻网站百度推广联系方式
  • 易利购网站怎么做搜索引擎网页
  • 杨浦专业做网站百度权重1是什么意思
  • 武当王也头像江苏seo外包
  • 做门户网站要多少钱广州新一期lpr
  • 室内设计师简历内容手机seo关键词优化
  • 投资20万做网站好吗seo快速优化方法
  • 刷网站跳出率seo招聘
  • 门户网站优化怎么做自动app优化官网
  • 高端的金融行业网站开发seo网站优化流程