@@ -43,10 +43,6 @@ def __init__(self, config):
43
43
self .layer_type_conv_implementation = {}
44
44
self .layer_name_conv_implementation = {}
45
45
46
- self .model_dense_resource_implementation = 'Standard'
47
- self .layer_type_dense_resource_implementation = {}
48
- self .layer_name_dense_resource_implementation = {}
49
-
50
46
self .model_compression = False
51
47
self .layer_type_compression = {}
52
48
self .layer_name_compression = {}
@@ -190,17 +186,6 @@ def get_conv_implementation(self, layer):
190
186
191
187
return conv_implementation
192
188
193
- def get_dense_resource_implementation (self , layer ):
194
- dense_resource_implementation = self .layer_name_dense_resource_implementation .get (layer .name .lower ())
195
- if dense_resource_implementation is None :
196
- dense_resource_implementation = self .layer_type_dense_resource_implementation .get (
197
- layer .__class__ .__name__ .lower ()
198
- )
199
- if dense_resource_implementation is None :
200
- dense_resource_implementation = self .model_dense_resource_implementation
201
-
202
- return dense_resource_implementation
203
-
204
189
def is_resource_strategy (self , layer ):
205
190
return self .get_strategy (layer ).lower () == 'resource'
206
191
@@ -280,7 +265,6 @@ def _parse_hls_config(self):
280
265
self .model_rf = model_cfg .get ('ReuseFactor' )
281
266
self .model_targ_cycles = model_cfg .get ('TargetCycles' )
282
267
self .model_conv_implementation = model_cfg .get ('ConvImplementation' , 'LineBuffer' )
283
- self .model_dense_resource_implementation = model_cfg .get ('DenseResourceImplementation' , 'Standard' )
284
268
self .model_strategy = model_cfg .get ('Strategy' , 'Latency' )
285
269
self .model_compression = bool (model_cfg .get ('Compression' , 0 ))
286
270
self .pipeline_style = model_cfg .get ('PipelineStyle' , 'pipeline' )
@@ -311,10 +295,6 @@ def _parse_hls_config(self):
311
295
if conv_implementation is not None :
312
296
self .layer_type_conv_implementation [layer_type .lower ()] = conv_implementation
313
297
314
- dense_resource_implementation = layer_cfg .get ('DenseResourceImplementation' )
315
- if conv_implementation is not None :
316
- self .layer_type_dense_resource_implementation [layer_type .lower ()] = dense_resource_implementation
317
-
318
298
compression = layer_cfg .get ('Compression' )
319
299
if compression is not None :
320
300
self .layer_type_compression [layer_type .lower ()] = bool (compression )
0 commit comments