Skip to content

Commit 91af8d8

Browse files
committed
Fix formatting
1 parent 05ddd86 commit 91af8d8

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

examples/cpu/features/int8_recipe_tuning/int8_autotune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def train(dataloader, model, loss_fn, optimizer):
8484

8585
epochs = 5
8686
for t in range(epochs):
87-
print(f"Epoch {t+1}\n-------------------------------")
87+
print(f"Epoch {t + 1}\n-------------------------------")
8888
train(train_dataloader, model, loss_fn, optimizer)
8989
print("Done!")
9090

examples/cpu/inference/python/models/bert_large/training/cpu/run_pretrain_mlperf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,8 @@ def main():
11581158
print(
11591159
f"Step {training_steps:5d}: loss: {gloss:6.3f} lm_acc: {lm_acc:.3f} \
11601160
seq_acc: {seq_acc:.3f} lbs: {args.train_batch_size} gbs: {total_batch_size} \
1161-
DT: {(t1-t0)*1000.0:.1f} XT: {(t2-t1)*1000.0:.1f} FT: {(t3-t2)*1000.0:.1f} \
1162-
BT: {(t4-t3)*1000.0:.1f} OT: {(t5-t4)*1000.0:.1f} TT: {(t5-t0)*1000.0:.1f}"
1161+
DT: {(t1 - t0) * 1000.0:.1f} XT: {(t2 - t1) * 1000.0:.1f} FT: {(t3 - t2) * 1000.0:.1f} \
1162+
BT: {(t4 - t3) * 1000.0:.1f} OT: {(t5 - t4) * 1000.0:.1f} TT: {(t5 - t0) * 1000.0:.1f}"
11631163
)
11641164

11651165
update_step = training_steps % args.gradient_accumulation_steps == 0

examples/cpu/llm/inference/distributed/run_generation_with_deepspeed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ def trace_handler(prof):
10641064
generated, _ = generate()
10651065
t_generate_span = time.time() - t_generate_start
10661066
for i, o, _ in generated:
1067-
print_rank0(f"{'-'*60}\nin={i}\nout={o}\n")
1067+
print_rank0(f"{'-' * 60}\nin={i}\nout={o}\n")
10681068

10691069
# benchmark it!
10701070
else:

intel_extension_for_pytorch/cpu/runtime/multi_stream.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,9 @@ def _do_concat_output_for_each_stream(self, hint_object, output_object, idx_or_k
454454
else:
455455
AssertionError(
456456
False
457-
), "Concat output failed, unsupported output hint type of:{}".format(type_arg)
457+
), "Concat output failed, unsupported output hint type of:{}".format(
458+
type_arg
459+
)
458460
return None
459461

460462
def _concat_output_for_each_stream(self):

0 commit comments

Comments
 (0)