-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d481bea
commit 40701a0
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## relu_main.py | ||
The relu_main script is used to run and log sparsity collection and optimiser for different relu tuning policies | ||
|
||
### Notes | ||
Assumes the existence of a the following directories: | ||
- ./runlog | ||
- ./runlog/<arch-name< | ||
- ./relu_thresholds | ||
- ./relu_thresholds/<arch-name< | ||
- ./relu_thresholds | ||
- ./relu_thresholds/<arch-name< | ||
- ../../fpgaconvnet-optimiser/fpgaconvnet/optimiser/<arch-name< | ||
|
||
Uses the krish-skipping branches of fpgaconvnet-optimiser and fpgaconvnet-model | ||
|
||
|
||
### Usage | ||
''' | ||
python relu_main.py | ||
''' | ||
|
||
### Flags | ||
- **arch**: model_name | ||
- **relu-policy**: relu policy choice between slowest_node and uniform | ||
- **fixed-hardware**: Uses fixed-hardware and does not run optimiser. Must provide "platform_path", and "optimised_config_path" flags to load fixed hardware | ||
- **normalise-hardware**: Runs optimiser on same DSPs for dense and no skipping windows | ||
- **accuracy_path**: "model_path". For fixed hardware | ||
- **model_path**: Path to sparse .onnx model. | ||
- **platform_path**: Path to platform specs (.toml). For fixed hardware | ||
- **gpu** | ||
- **enable-wandb** | ||
|
||
### Parameters you may want to vary | ||
- **THRESHOLD_INC in relu_main.py**: Amount you want to increase ReLU by for each iteration | ||
- **--gain flag in fpgaconvnet-optimiser cli**: Minimum gain to push fine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters