脚本报错:input_lbg-11881-8101636lbg-11881-8101636sh line 3 syntax error near unexpected token &&input_lbg-11881-8101636lbg-11881-8101636sh line 3 source optmambabinactivate && mkdir results && && python
这个脚本报错的原因是在第3行有一个语法错误。在&&之前多了一个空格,并且在第3行最后两个&&之间多了一个空格。正确的脚本应该是这样的:
source /opt/mamba/bin/activate && mkdir results && python source/fixed_proton.py --n 16 --dim 3 --rs 1.5 --twists 1 --wfn_type wanghan --wfn_depth 4 --wfn_h1size 16 --wfn_h2size 16 --wfn_nh 1 --Nf 1 --K 1 --nk 1 --equal_footing --det_mode gemi --gemi_weight_dim 0 --walker 64 --batch 8 --mc_therm 50 --mc_steps 10 --mc_width 0.05 --lr 0.01 --decay 0.001 --damping 0.001 --maxnorm 0.001 --clip_factor 5.0 --alpha 0.05 --acc_steps 1 --optimizer cg --cg_mode svd --xp_file source/data/n_16_dim_3_rs_1.5_T_1200.npy --folder results/ --epoch 100000 > out.log 2>&1
原文地址: https://www.cveoy.top/t/topic/iqTE 著作权归作者所有。请勿转载和采集!