Skip to content

Commit

Permalink
Feat (examples/a2q): adding A2Q+ examples
Browse files Browse the repository at this point in the history
  • Loading branch information
i-colbert committed Jan 30, 2024
1 parent b51a958 commit 5c34f9c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/brevitas_examples/imagenet_classification/a2q/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,28 @@
act_bit_width=4,
acc_bit_width=12,
weight_bit_width=4,
weight_quant=CommonIntAccumulatorAwareWeightQuant)}
weight_quant=CommonIntAccumulatorAwareWeightQuant),
"quant_resnet18_w4a4_a2q_plus_32b":
partial(
quant_resnet18,
act_bit_width=4,
acc_bit_width=32,
weight_bit_width=4,
weight_quant=CommonIntAccumulatorAwareZeroCenterWeightQuant),
"quant_resnet18_w4a4_a2q_plus_16b":
partial(
quant_resnet18,
act_bit_width=4,
acc_bit_width=16,
weight_bit_width=4,
weight_quant=CommonIntAccumulatorAwareZeroCenterWeightQuant),
"quant_resnet18_w4a4_a2q_plus_12b":
partial(
quant_resnet18,
act_bit_width=4,
acc_bit_width=12,
weight_bit_width=4,
weight_quant=CommonIntAccumulatorAwareZeroCenterWeightQuant)}

root_url = 'https://github.com/Xilinx/brevitas/releases/download/'

Expand Down

0 comments on commit 5c34f9c

Please sign in to comment.