Skip to content

Commit

Permalink
fix: examples training code
Browse files Browse the repository at this point in the history
  • Loading branch information
cnstark committed Apr 24, 2022
1 parent 4b6b4cb commit c8eca2a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 41 deletions.
2 changes: 1 addition & 1 deletion examples/linear_regression/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
* CPU

```shell
python train.py -c linear_regression_cpu_cfg.py
easytrain -c linear_regression_cpu_cfg.py
```
18 changes: 0 additions & 18 deletions examples/linear_regression/train.py

This file was deleted.

4 changes: 2 additions & 2 deletions examples/mnist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* CPU

```shell
python train.py -c config\mnist_cpu_cfg.py
easytrain -c config\mnist_cpu_cfg.py
```

* GPU (1x)

```shell
python train.py -c config\mnist_1x_cfg.py --gpus 0
easytrain -c config\mnist_1x_cfg.py --gpus 0
```

## Validate
Expand Down
18 changes: 0 additions & 18 deletions examples/mnist/train.py

This file was deleted.

2 changes: 0 additions & 2 deletions examples/mnist/validate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sys
sys.path.append('../..')
from argparse import ArgumentParser

from easytorch import launch_runner, Runner
Expand Down

0 comments on commit c8eca2a

Please sign in to comment.