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

Fix (examples): adding bias_quant to final linear layer in resnet18 #720

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

i-colbert
Copy link
Collaborator

Need to quantize the bias of the final layer to support streamlining in end-to-end FINN flow. Verified that this change does not impact accuracy on CIFAR10.

...
2023-10-11 16:06:12,585 Test: [97/100]  Model Time 0.109 (0.121)        Loss Time 0.000 (0.000) Loss 2.6345 (2.2591)    Prec@1 92.000 (92.592)  Prec@5 99.000 (99.694)
2023-10-11 16:06:12,690 Test: [98/100]  Model Time 0.094 (0.120)        Loss Time 0.011 (0.000) Loss 1.7418 (2.2538)    Prec@1 94.000 (92.606)  Prec@5 100.000 (99.697)
2023-10-11 16:06:12,790 Test: [99/100]  Model Time 0.100 (0.120)        Loss Time 0.000 (0.000) Loss 3.5667 (2.2670)    Prec@1 92.000 (92.600)  Prec@5 100.000 (99.700)

@Giuseppe5 Giuseppe5 merged commit e410ff3 into Xilinx:dev Nov 6, 2023
194 of 251 checks passed
@i-colbert i-colbert deleted the fix/bnn_pynq_resnet18 branch November 6, 2023 19:04
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

Successfully merging this pull request may close these issues.

2 participants