文件传输工具rsync|rust开发环境安装|Ascend实验相关命令

bash 复制代码
rsync -avz 源文件 用户名@远程IP:目标路径  # 传输到远程
rsync -avz 用户名@远程IP:源文件 本地路径  # 下载到本地
bash 复制代码
scp 本地文件 4090:远程路径   # 上传
scp 4090:远程文件 本地路径   # 下载
bash 复制代码
rsync -avzP ~/projects/ 4090:~/backups/
rsync -avzP exp3-atc.zip 4090:/root/data1/huawei/
rsync -avzP exp3-atc.zip A200i:/root/ascend-code/exp2-mindspore

将本地的 ~/projects/ 同步到远程的 ~/backups/

-P 会显示每个文件的传输进度

jupyter lab 启动方式

bash 复制代码
 jupyter lab --ip 192.168.137.100 --allow-root --no-browser

cann算子开发根据json文件生成算子开发工程文件

bash 复制代码
/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/bin/msopgen gen -i /root/ascend-code/exp5-op/add_dsl.json -f tf -c ai_core-Ascend310B1 -out /root/ascend-code/exp5-op/AddDsl

deeplabv3模型转换,从pb到om

bash 复制代码
atc \
    --model=./deeplabv3_plus.pb \
    --framework=3 \
    --output=deeplabv3_plus \
    --soc_version=Ascend310 \
    --input_shape="ImageTensor:1,513,513,3" \
    --output_type="SemanticPredictions:0:FP32" \
    --out_nodes="SemanticPredictions:0"

cartoon图像模型转换

bash 复制代码
atc --output_type=FP32 --input_shape="train_real_A:1,256,256,3" --input_format=NHWC --output="./cartoonization" --soc_version=Ascend310B1 --insert_op_conf=insert_op.cfg --framework=3 --save_original_model=false --model="./cartoonization.pb" --precision_mode=allow_fp32_to_fp16
bash 复制代码
# 检查 Rust 版本
rustc --version
cargo --version

# 检查 Rust 工具链
rustup show

# 更新 Rust
rustup update
bash 复制代码
# 安装 VS Code(如果还没安装)
brew install --cask visual-studio-code

# 安装常用的 Rust 组件
rustup component add rustfmt    # 代码格式化工具
rustup component add clippy    # 代码检查工具
rustup component add rust-src  # 源代码(用于代码跳转等)

# 安装实用的 cargo 子命令
cargo install cargo-edit     # 管理依赖
cargo install cargo-watch   # 文件改动时自动编译
cargo install cargo-expand  # 查看宏展开
相关推荐
疯狂打码的少年7 小时前
编译程序与解释程序的区别
java·开发语言·笔记
caimouse9 小时前
reactos编码规范
c语言·开发语言
xieliyu.13 小时前
Java算法精讲:双指针(三)
java·开发语言·算法
星辰徐哥14 小时前
Spring Boot 微服务架构设计与实现
spring boot·后端·微服务
星辰徐哥14 小时前
Spring Boot 数据导入导出与报表生成
spring boot·后端·ui
明夜之约14 小时前
Spring Boot 自动装配源码
java·spring boot·后端
Leaton Lee14 小时前
Spring Boot分层架构详解:从Controller到Service再到Mapper的完整流程
java·spring boot·后端·架构
Micro麦可乐14 小时前
Spring Boot 实战:从零设计一个短链系统(含完整代码与数据库设计)
数据库·spring boot·后端·哈希算法·雪花算法·短链系统
Jinkxs14 小时前
Resilience4j- 与 Spring Boot 快速集成:自动配置与基础注解使用
java·spring boot·后端
毕设源码_郑学姐14 小时前
计算机毕业设计springboot网络相册设计与实现 基于Spring Boot框架的在线相册管理系统开发与应用 Spring Boot驱动的网络影集设计与实践
spring boot·后端·课程设计