forked from analogdevicesinc/ai8x-synthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MaximIntegratedAI:develop' into develop
- Loading branch information
Showing
16 changed files
with
101,081 additions
and
66,577 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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,116 @@ | ||
--- | ||
# HWC (big data) configuration for ai85kws20netnas | ||
|
||
arch: ai85kws20netnas | ||
dataset: KWS_20 | ||
|
||
# Define layer parameters in order of the layer sequence | ||
layers: | ||
# Conv 1D - 14 layers | ||
# Unit-1 | ||
- data_format: HWC | ||
operation: Conv1d | ||
kernel_size: 1 | ||
pad: 0 | ||
activate: ReLU | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 3 | ||
pad: 1 | ||
activate: ReLU | ||
out_offset: 0x0000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 3 | ||
pad: 1 | ||
activate: ReLU | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
# Unit-2 | ||
- max_pool: 2 | ||
pool_stride: 2 | ||
operation: Conv1d | ||
kernel_size: 3 | ||
pad: 1 | ||
activate: ReLU | ||
out_offset: 0x0000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 1 | ||
pad: 0 | ||
activate: ReLU | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 1 | ||
pad: 0 | ||
activate: ReLU | ||
out_offset: 0x0000 | ||
processors: 0xffffffffffffffff | ||
# Unit-3 | ||
- max_pool: 2 | ||
pool_stride: 2 | ||
operation: Conv1d | ||
kernel_size: 3 | ||
pad: 1 | ||
activate: ReLU | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 5 | ||
pad: 2 | ||
activate: ReLU | ||
out_offset: 0x0000 | ||
processors: 0xffffffffffffffff | ||
# Unit-4 | ||
- max_pool: 2 | ||
pool_stride: 2 | ||
operation: Conv1d | ||
kernel_size: 5 | ||
pad: 2 | ||
activate: ReLU | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 1 | ||
pad: 0 | ||
activate: ReLU | ||
out_offset: 0x0000 | ||
processors: 0xffffffffffffffff | ||
# Unit-5 | ||
- max_pool: 2 | ||
pool_stride: 2 | ||
operation: Conv1d | ||
kernel_size: 5 | ||
pad: 2 | ||
activate: ReLU | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 3 | ||
pad: 1 | ||
activate: ReLU | ||
out_offset: 0x0000 | ||
processors: 0xffffffffffffffff | ||
# Unit-6 | ||
- max_pool: 2 | ||
pool_stride: 2 | ||
operation: Conv1d | ||
kernel_size: 5 | ||
pad: 2 | ||
activate: ReLU | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
- operation: Conv1d | ||
kernel_size: 1 | ||
pad: 0 | ||
activate: ReLU | ||
out_offset: 0x0000 | ||
processors: 0xffffffffffffffff | ||
# Classification layer | ||
- flatten: true | ||
out_offset: 0x2000 | ||
processors: 0xffffffffffffffff | ||
operation: MLP | ||
output_width: 32 |
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,6 @@ | ||
#!/bin/sh | ||
DEVICE="MAX78000" | ||
TARGET="sdk/Examples/$DEVICE/CNN" | ||
COMMON_ARGS="--device $DEVICE --timer 0 --display-checkpoint --verbose" | ||
|
||
python ai8xize.py --test-dir $TARGET --prefix kws20_nas --checkpoint-file trained/ai85-kws20_nas-qat8-q.pth.tar --config-file networks/kws20-nas-hwc.yaml --softmax $COMMON_ARGS "$@" |
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,2 @@ | ||
#!/bin/sh | ||
python quantize.py trained/ai85-kws20_nas-qat8.pth.tar trained/ai85-kws20_nas-qat8-q.pth.tar --device MAX78000 -v "$@" |
Binary file not shown.
Oops, something went wrong.