@@ -95,11 +95,11 @@ def test_quantconv1d(backend, io_type):
9595 if io_type == 'io_stream' :
9696 x = np .ascontiguousarray (x .permute (0 , 2 , 1 ))
9797 config = config_from_pytorch_model (
98- model , (None , n_in , size_in ), channels_last_conversion = " internal" , transpose_outputs = False
98+ model , (None , n_in , size_in ), channels_last_conversion = ' internal' , transpose_outputs = False
9999 )
100100 else :
101101 config = config_from_pytorch_model (
102- model , (None , n_in , size_in ), channels_last_conversion = " full" , transpose_outputs = True
102+ model , (None , n_in , size_in ), channels_last_conversion = ' full' , transpose_outputs = True
103103 )
104104
105105 output_dir = str (test_root_path / f'hls4mlprj_brevitas_conv1d_{ backend } _{ io_type } ' )
@@ -156,11 +156,11 @@ def test_quantconv2d(backend, io_type):
156156 if io_type == 'io_stream' :
157157 x = np .ascontiguousarray (x .permute (0 , 2 , 3 , 1 ))
158158 config = config_from_pytorch_model (
159- model , (None , n_in , size_in_height , size_in_width ), channels_last_conversion = " internal" , transpose_outputs = False
159+ model , (None , n_in , size_in_height , size_in_width ), channels_last_conversion = ' internal' , transpose_outputs = False
160160 )
161161 else :
162162 config = config_from_pytorch_model (
163- model , (None , n_in , size_in_height , size_in_width ), channels_last_conversion = " full" , transpose_outputs = True
163+ model , (None , n_in , size_in_height , size_in_width ), channels_last_conversion = ' full' , transpose_outputs = True
164164 )
165165
166166 output_dir = str (test_root_path / f'hls4mlprj_brevitas_conv2d_{ backend } _{ io_type } ' )
@@ -270,7 +270,7 @@ def test_pytorch_upsampling1d(data_1d, io_type, backend):
270270 model ,
271271 (None , in_feat , in_width ),
272272 default_precision = 'ap_fixed<16,6>' ,
273- channels_last_conversion = " internal" ,
273+ channels_last_conversion = ' internal' ,
274274 transpose_outputs = False ,
275275 )
276276 odir = str (test_root_path / f'hls4mlprj_pytorch_upsampling_1d_{ backend } _{ io_type } ' )
@@ -300,7 +300,7 @@ def test_pytorch_upsampling2d(data_2d, io_type, backend):
300300 model ,
301301 (in_feat , in_height , in_width ),
302302 default_precision = 'ap_fixed<16,6>' ,
303- channels_last_conversion = " full" , # With conversion to channels_last
303+ channels_last_conversion = ' full' , # With conversion to channels_last
304304 transpose_outputs = True ,
305305 )
306306 odir = str (test_root_path / f'hls4mlprj_pytorch_upsampling_2d_{ backend } _{ io_type } ' )
@@ -338,7 +338,7 @@ def test_brevitas_quanteltwiseadd(io_type, backend):
338338 model ,
339339 [(None , 4 , 4 ), (None , 4 , 4 )],
340340 default_precision = 'ap_fixed<16,6>' ,
341- channels_last_conversion = " off" ,
341+ channels_last_conversion = ' off' ,
342342 transpose_outputs = False ,
343343 )
344344 odir = str (test_root_path / f'hls4mlprj_brevitas_quanteltwiseadd_{ backend } _{ io_type } ' )
0 commit comments