Skip to content

Commit b853ace

Browse files
committed
add args for epoch
1 parent adb6d08 commit b853ace

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

examples/euler_beam/euler_beam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
ppsci.utils.misc.set_random_seed(42)
2929
# set training hyper-parameters
3030
ITERS_PER_EPOCH = 1
31-
EPOCHS = 20 if not args.epochs else args.epochs
31+
EPOCHS = 10000 if not args.epochs else args.epochs
3232
# set output directory
3333
OUTPUT_DIR = "./output/euler_beam" if not args.output_dir else args.output_dir
3434
# initialize logger

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ wget
88
scipy
99
visualdl
1010
pyvista==0.37.0
11-
pybind11==2.9.2
1211
pysdf
1312
pyyaml
1413
scikit-optimize

test_tipc/configs/train_eular_beam/train_eular_beam.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python:python3.10
44
gpu_list:0
55
Global.use_gpu:null
66
null:null
7-
null:null
7+
--epochs
88
null:null
99
null:null
1010
null:null

test_tipc/prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ ${pip} install -r requirements.txt
2323

2424
if [ ! -n ${download_dataset}] ; then
2525
${python} ${PDSC_DIR}${download_dataset}
26-
fi
26+
fi

0 commit comments

Comments
 (0)