Skip to content

Commit

Permalink
fixes config notation, tested layerwise with extra bit width options
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianandresgrob committed Oct 12, 2023
1 parent cef43e9 commit 887ceff
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
parser.add_argument(
'--gpfq-p', default=0.25, type=float, help='P parameter for GPFQ (default: 0.25)')
parser.add_argument(
'--quant_format',
'--quant-format',
default='int',
choices=['int', 'float'],
help='Quantization format to use for weights and activations (default: int)')
Expand Down Expand Up @@ -231,10 +231,10 @@ def main():
f"{args.model_name}_"
f"{args.target_backend}_"
f"{args.quant_format}_"
f"{args.weight_mantissa_bit_width if args.quant_format == 'float' else ''}_"
f"{args.weight_exponent_bit_width if args.quant_format == 'float' else ''}_"
f"{args.act_mantissa_bit_width if args.quant_format == 'float' else ''}_"
f"{args.act_exponent_bit_width if args.quant_format == 'float' else ''}_"
f"{str(args.weight_mantissa_bit_width) + '_' if args.quant_format == 'float' else ''}"
f"{str(args.weight_exponent_bit_width) + '_' if args.quant_format == 'float' else ''}"
f"{str(args.act_mantissa_bit_width) + '_' if args.quant_format == 'float' else ''}"
f"{str(args.act_exponent_bit_width) + '_' if args.quant_format == 'float' else ''}"
f"{args.scale_factor_type}_"
f"a{args.act_bit_width}"
f"w{args.weight_bit_width}_"
Expand Down

0 comments on commit 887ceff

Please sign in to comment.