文件最后提交记录最后更新时间
!813 [华南师范大学][高校贡献][Pytorch][TextCNN]--初次提交 !813 [华南师范大学][高校贡献][Pytorch][TextCNN]--初次提交 3 年前
!4671 【fix】批量修改模型python版本,兼容环境上的python3.8版本 * fix python version 3 年前
init 4 年前
!813 [华南师范大学][高校贡献][Pytorch][TextCNN]--初次提交 !813 [华南师范大学][高校贡献][Pytorch][TextCNN]--初次提交 3 年前
init 4 年前
init 4 年前
!3545 [自研][Pytorch]批量适配1.11端口号 * 批量适配1.11端口号 3 年前
init 4 年前
init 4 年前
init 4 年前
README.md

TextCNN

TextCNN Detail

本仓库为使用Ascend NPU实现TextCNN迁移的仓库。请使用NPU运行该仓库。

Requirements

  • 安装 1.8.1+ascend.rc2.20220505
  • 安装 requirement.txt
  • fork 本仓库

Training

To train a model, run run.py with the desired model architecture and the path to the THUCNEWS dataset:

# training 1p accuracy
bash ./test/train_full_1p.sh --data_path=real_data_path

# training 1p performance
bash ./test/train_performance_1p.sh --data_path=real_data_path

# training 8p accuracy
bash ./test/train_full_8p.sh --data_path=real_data_path

# training 8p performance
bash ./test/train_performance_8p.sh --data_path=real_data_path

#test 8p accuracy
bash test/train_eval_8p.sh --data_path=real_data_path --pth_path=real_pre_train_model_path

Log path: test/output/devie_id/train_${device_id}.log # training detail log

TextCNN training result

Acc@1 FPS Npu_nums Epochs AMP_Type Loss_Scale
- 8230 1 1 O2 dynamic
91.00 59200 8 20 O2 dynamic