Skip to content

Commit

Permalink
Merge branch 'dev-1.x' into dev-1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Fran authored Feb 23, 2023
2 parents 105a0a4 + 83bfa52 commit ca790fb
Show file tree
Hide file tree
Showing 471 changed files with 16,472 additions and 4,905 deletions.
2 changes: 1 addition & 1 deletion .circleci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ workflows:
name: minimum_version_cpu
torch: 1.6.0
torchvision: 0.7.0
python: 3.6.9 # The lowest python 3.6.x version available on CircleCI images
python: 3.7.4
requires:
- lint
- build_cpu:
Expand Down
11 changes: 10 additions & 1 deletion .dev_scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [8. Deterministic training](#8-deterministic-training)
- [9. Automatically check links](#9-automatically-check-links)
- [10. Calculate flops](#10-calculate-flops)
- [11. Update model idnex](#11-update-model-index)

## 1. Check UT

Expand Down Expand Up @@ -237,10 +238,18 @@ You can specify the `--target` by a file or a directory.

**Notes:** DO NOT use it in CI, because requiring too many http requirements by CI will cause 503 and CI will propabaly fail.

10. Calculate flops
## 10. Calculate flops

To summarize the flops of different models, you can run the following commands:

```bash
python .dev_scripts/benchmark_valid_flop.py --flops --flops-str
```

## 11. Update model index

To update model-index according to `README.md`, please run the following commands,

```bash
python .dev_scripts/update_model_index.py
```
Loading

0 comments on commit ca790fb

Please sign in to comment.