Skip to content
Snippets Groups Projects
Commit f5971035 authored by Tobi-Alonso's avatar Tobi-Alonso
Browse files

[Test] Add idt.bitwidth() != odt.bitwidth() test cases

parent 426113ba
No related branches found
No related tags found
No related merge requests found
...@@ -115,13 +115,8 @@ def prepare_inputs(input_tensor): ...@@ -115,13 +115,8 @@ def prepare_inputs(input_tensor):
return {"inp": input_tensor} return {"inp": input_tensor}
# Note: QuantAvgPool2d with idt = DataType.UINT4 and odt = DataType.UINT8
# (And in general seems to be a problem when odt.bitwidth() > idt.bitwidth())
# passes cppsim but fails rtlsim(Verilator). Cosim with same parameters in
# Vivado_HLS passes.
# input datatype # input datatype
@pytest.mark.parametrize("idt", [DataType.UINT4, DataType.INT4]) @pytest.mark.parametrize("idt", [DataType.UINT4, DataType.INT4, DataType.INT8])
# output datatype # output datatype
@pytest.mark.parametrize("odt", [DataType.UINT4, DataType.INT4]) @pytest.mark.parametrize("odt", [DataType.UINT4, DataType.INT4])
# pool configuration: ( k,stride, pad, ifm_dim ) # pool configuration: ( k,stride, pad, ifm_dim )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment