Skip to content

Commit

Permalink
add support for < 8 bits in weight_type
Browse files Browse the repository at this point in the history
not tested end-to-end yet.
  • Loading branch information
FrancescoConti committed Jul 27, 2024
1 parent 67113b3 commit bf51fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/NeurekaTestConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def check_valid_out_type(cls, v: IntegerType) -> IntegerType:
@field_validator("weight_type")
@classmethod
def check_valid_weight_type(cls, v: IntegerType) -> IntegerType:
NeurekaTestConf._check_type("weight_type", v, ["int8"])
NeurekaTestConf._check_type("weight_type", v, ["int8", "int7", "int6", "int5", "int4", "int3", "int2"])
return v

@field_validator("scale_type")
Expand Down

0 comments on commit bf51fdc

Please sign in to comment.