-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1D-CNN's problem.yaml configuration #241
Comments
Some of those scripts (e.g., construct_workloads.py) are just helpers scripts and aren't as well-tested as the main codebase. Please feel free to modify them and submit bugfixes. That said, I don't believe we have stride=0 in any of our regression tests for the main codebase either. The recommended way to model 1D conv is to have a separate problem spec. However, you are correct that configuring it as a special case of 2D conv should work. Does it work after your script changes? You can also try directly invoking the Timeloop binary from hand-written YAMLs. |
hi, sfter modifying construct_workloads.py, the generated yaml file is as follows:
After executing
I can't quite understand the other generated files at the moment, but as far as |
Hello! I recently started working with timeloop, and I noticed that both
construct_workloads.py
andcnn_layers.py
intimeloop-accelergy-exercises/workspace/baseline_designs/scripts
are configuration files forCONV2D
.I consider
CONV1D
as a special case ofCONV2D
. For a one-dimensional convolution withifmap=(1,3600)
,kernel size=(8,7)
,stride=2
, andofmap=(8,1802)
, I configured it incnn_layers.py
as follows:My question is, is it appropriate to set
H
andS
to1
, andHpad
andHstride
to0
? Because in order to make this code run, I had to change the original code inconstruct_workloads.py
from:to:
In addition, the reason why
q = int((w - s + 2 * wpad) / wstride) + 1
is changed toq = int((h - s + 2 * hpad) / hstride) + 1
is to match the official tutorial corresponds to the pictures in thetutorial.pdf
.In fact, if do not make any changes and just add the judgment conditionif hstride != 0
, then runpython3 run_example_designs.py --architecture eyeriss_like --problem 1d_cnn_layers.yaml
, the original 3600 inputs will be recognized as 7 inputs. mistake intimeloop-mapper.map.txt
.I am concerned that changing the source code provided by the official repository may introduce errors.
The text was updated successfully, but these errors were encountered: