Skip to content

Commit 05d71b5

Browse files
committed
shut up!
1 parent c8990ed commit 05d71b5

File tree

6 files changed

+0
-20
lines changed

6 files changed

+0
-20
lines changed

hls4ml/converters/keras_v2_to_hls.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ def parse_keras_model(model_arch, reader):
256256

257257
layer_config = None
258258
if model_arch['class_name'] == 'Sequential':
259-
print('Interpreting Sequential')
260259
layer_config = model_arch['config']
261260
if 'layers' in layer_config: # Newer Keras versions have 'layers' in 'config' key
262261
layer_config = layer_config['layers']
@@ -267,9 +266,7 @@ def parse_keras_model(model_arch, reader):
267266
input_layer['class_name'] = 'InputLayer'
268267
input_layer['input_shape'] = layer_config[0]['config']['batch_input_shape'][1:]
269268
layer_list.append(input_layer)
270-
print('Input shape:', input_layer['input_shape'])
271269
elif model_arch['class_name'] in ['Model', 'Functional']: # TF >= 2.3 calls it 'Functional' API
272-
print('Interpreting Model')
273270
layer_config = model_arch['config']['layers']
274271
input_layers = [inp[0] for inp in model_arch['config']['input_layers']]
275272
output_layers = [out[0] for out in model_arch['config']['output_layers']]
@@ -282,7 +279,6 @@ def parse_keras_model(model_arch, reader):
282279
output_shapes = {}
283280
output_shape = None
284281

285-
print('Topology:')
286282
for keras_layer in layer_config:
287283
if 'batch_input_shape' in keras_layer['config']:
288284
if 'inbound_nodes' in keras_layer and len(keras_layer['inbound_nodes']) > 0:
@@ -321,11 +317,6 @@ def parse_keras_model(model_arch, reader):
321317

322318
layer, output_shape = layer_handlers[keras_class](keras_layer, input_names, input_shapes, reader)
323319

324-
print(
325-
'Layer name: {}, layer type: {}, input shapes: {}, output shape: {}'.format(
326-
layer['name'], layer['class_name'], input_shapes, output_shape
327-
)
328-
)
329320
layer_list.append(layer)
330321
if 'activation' in layer and layer['class_name'] not in activation_layers + recurrent_layers: # + qkeras_layers:
331322
act_layer = {}
@@ -357,6 +348,5 @@ def parse_keras_model(model_arch, reader):
357348
def keras_v2_to_hls(config):
358349
model_arch, reader = get_model_arch(config)
359350
layer_list, input_layers, output_layers, _ = parse_keras_model(model_arch, reader)
360-
print('Creating HLS model')
361351
hls_model = ModelGraph.from_layer_list(config, layer_list, input_layers, output_layers)
362352
return hls_model

hls4ml/writer/catapult_writer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,6 @@ def write_tar(self, model):
910910
print("Project .tar.gz archive already exists")
911911

912912
def write_hls(self, model):
913-
print('Writing HLS project')
914913
self.write_output_dir(model)
915914
self.write_project_cpp(model)
916915
self.write_project_header(model)
@@ -924,4 +923,3 @@ def write_hls(self, model):
924923
self.write_generated_code(model)
925924
self.write_yml(model)
926925
self.write_tar(model)
927-
print('Done')

hls4ml/writer/oneapi_writer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,6 @@ def write_tar(self, model):
964964
archive.add(model.config.get_output_dir(), recursive=True)
965965

966966
def write_hls(self, model):
967-
print('Writing HLS project')
968967
self.write_project_dir(model)
969968
self.write_project_cpp(model)
970969
self.write_project_header(model)
@@ -978,4 +977,3 @@ def write_hls(self, model):
978977
self.write_activation_tables(model)
979978
self.write_yml(model)
980979
self.write_tar(model)
981-
print('Done')

hls4ml/writer/quartus_writer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,6 @@ def write_tar(self, model):
13491349
archive.add(model.config.get_output_dir(), recursive=True)
13501350

13511351
def write_hls(self, model):
1352-
print('Writing HLS project')
13531352
self.write_project_dir(model)
13541353
self.write_project_cpp(model)
13551354
self.write_project_header(model)
@@ -1363,4 +1362,3 @@ def write_hls(self, model):
13631362
self.write_activation_tables(model)
13641363
self.write_yml(model)
13651364
self.write_tar(model)
1366-
print('Done')

hls4ml/writer/symbolic_writer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def write_build_script(self, model):
102102
build_lib_dst.chmod(build_lib_dst.stat().st_mode | stat.S_IEXEC)
103103

104104
def write_hls(self, model):
105-
print('Writing HLS project')
106105
self.write_project_dir(model)
107106
self.write_project_cpp(model)
108107
self.write_project_header(model)
@@ -116,4 +115,3 @@ def write_hls(self, model):
116115
self.write_generated_code(model)
117116
self.write_yml(model)
118117
self.write_tar(model)
119-
print('Done')

hls4ml/writer/vivado_writer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ def write_tar(self, model):
851851
archive.add(model.config.get_output_dir(), recursive=True, arcname='')
852852

853853
def write_hls(self, model):
854-
print('Writing HLS project')
855854
self.write_project_dir(model)
856855
self.write_project_cpp(model)
857856
self.write_project_header(model)
@@ -865,4 +864,3 @@ def write_hls(self, model):
865864
self.write_generated_code(model)
866865
self.write_yml(model)
867866
self.write_tar(model)
868-
print('Done')

0 commit comments

Comments
 (0)