Skip to content

Commit 2ddb872

Browse files
Fix code-style for non-IREE scripts
1 parent a283d6b commit 2ddb872

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/accuracy_checker/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def execute(self, idx):
2525
command_line = self.__fill_command_line()
2626
if command_line == '':
2727
self.__log.error('Command line is empty')
28-
self.__log.info(f'Start accuracy check for {idx+1} test: {self._test.model.name}')
28+
self.__log.info(f'Start accuracy check for {idx + 1} test: {self._test.model.name}')
2929
self.__log.info(f'Command line is : {command_line}')
3030
self._executor.set_target_framework(self._test.framework)
3131
command_line = self._executor.prepare_command_line(self._test, command_line)

src/inference/io_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def get_slice_input(self, *args, **kwargs):
433433
return [self._prompts[0]] * self._batch_size
434434

435435
def process_output(self, result, log):
436-
output_text = '\n'.join([f'{i+1}) {text} ... \n' for i, text in enumerate(result)])
436+
output_text = '\n'.join([f'{i + 1}) {text} ... \n' for i, text in enumerate(result)])
437437
log.info(f'Generated results: \n{output_text}')
438438

439439

@@ -443,7 +443,7 @@ def get_slice_input(self, *args, **kwargs):
443443
return self.audio_data, self.sampling_rate, self.audio_length
444444

445445
def process_output(self, result, log):
446-
output_text = '\n'.join([f'{i+1}) {text} ... \n' for i, text in enumerate(result)])
446+
output_text = '\n'.join([f'{i + 1}) {text} ... \n' for i, text in enumerate(result)])
447447
log.info(f'Generated results: \n{output_text}')
448448

449449

src/quantization/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def execute(self, idx):
7474
command_line = self.__fill_command_line()
7575
if command_line == '':
7676
self.__log.error('Command line is empty')
77-
self.__log.info(f'Start quantization model #{idx+1}!')
77+
self.__log.info(f'Start quantization model #{idx + 1}!')
7878
self.__log.info(f'Command line is : {command_line}')
7979
self._status, self._output = self._executor.execute_process(command_line)
8080
if type(self._output) is not list:

0 commit comments

Comments
 (0)