1 Star 0 Fork 1.1K

chenping68/pytorch

forked from Ascend/pytorch 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
generate_code.sh 630 Bytes
一键复制 编辑 原始数据 按行查看 历史
shaoyf 提交于 2023-07-20 15:14 +08:00 . Make error_on_missing_kernels to support op_plugin.
#!/bin/bash
CDIR="$(cd "$(dirname "$0")" ; pwd -P)"
cd $CDIR
python_execute="$1"
${python_execute} -m codegen.gen_backend_stubs \
--output_dir="torch_npu/csrc/aten" \
--source_yaml="$CDIR/torch_npu/csrc/aten/npu_native_functions.yaml" \
--impl_path="$CDIR/torch_npu/csrc/aten" \
--op_plugin_impl_path="$CDIR/third_party/op-plugin/op_plugin/ops" # Used to double-check the yaml file definitions.
${python_execute} -m codegen.autograd.gen_autograd \
--out_dir="$CDIR/torch_npu/csrc/aten" \
--autograd_dir="$CDIR/codegen/autograd" \
--npu_native_function_dir="$CDIR/torch_npu/csrc/aten/npu_native_functions.yaml"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/chenping68/pytorch.git
git@gitee.com:chenping68/pytorch.git
chenping68
pytorch
pytorch
master

搜索帮助