Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Szankin <[email protected]>
  • Loading branch information
Maciej Szankin committed Feb 5, 2024
1 parent 2abbf65 commit 95b783b
Showing 1 changed file with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,26 @@ def qconfig_parse(
a_observer, a_dtype, a_scheme, a_granularity = qparam_parse(aobserver_type, abit, amode, agranularity)

qconfig = {
'weight': {
'algorithm': [w_observer],
'dtype': [w_dtype],
'scheme': [w_scheme],
'granularity': [w_granularity],
}
if w_dtype != 'fp32'
else {'dtype': ['fp32']},
'activation': {
'algorithm': [a_observer],
'dtype': [a_dtype],
'scheme': [a_scheme],
'granularity': [a_granularity],
}
if a_dtype != 'fp32'
else {'dtype': ['fp32']},
'weight': (
{
'algorithm': [w_observer],
'dtype': [w_dtype],
'scheme': [w_scheme],
'granularity': [w_granularity],
}
if w_dtype != 'fp32'
else {'dtype': ['fp32']}
),
'activation': (
{
'algorithm': [a_observer],
'dtype': [a_dtype],
'scheme': [a_scheme],
'granularity': [a_granularity],
}
if a_dtype != 'fp32'
else {'dtype': ['fp32']}
),
}

return qconfig
Expand Down

0 comments on commit 95b783b

Please sign in to comment.