Skip to content
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

Question on how to change operand precision. #293

Open
a2jinhee opened this issue Nov 3, 2024 · 0 comments
Open

Question on how to change operand precision. #293

a2jinhee opened this issue Nov 3, 2024 · 0 comments

Comments

@a2jinhee
Copy link

a2jinhee commented Nov 3, 2024

Hello, thank you for sharing this great work!
I’m new to Timeloop and currently working through the tutorial exercises. I have a question on how to adjust the operand precision.

In exercise 06-mapper-convlayer-eyeriss, I want to compare the power consumption between two scenarios:

  1. Load FP32 weights from DRAM into the weight scratchpad, and do 4b weight x 4b input convolution.
  2. Load INT8 weights from DRAM into the weight scratchpad, and do 4b weight x 4b input convolution.

I know that there is a datawidth attribute for each level of architecture hierarchy, but I'm not entirely sure how to use this for what I'm intending. Do I just need to change datawidth attribute to DRAM(32)-weight scratchpad(32),input scratchpad(32)-MAC unit(4) for case 1, and DRAM(8)-weight scratchpad(8),input scratchpad(8)-MAC unit(4) for case 2, respectively?

@a2jinhee a2jinhee changed the title Question) Is there a way to control the weight precision in CONV tutorial Question on how to change operand precision. Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant