Skip to content

Commit

Permalink
fix lint (#1720)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-garvey authored Aug 4, 2023
1 parent a686d7d commit a57eccc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apps/stable_diffusion/scripts/train_lora_word.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ def __getitem__(self, i):

if self.center_crop:
crop = min(img.shape[0], img.shape[1])
(h, w,) = (
(
h,
w,
) = (
img.shape[0],
img.shape[1],
)
Expand Down
5 changes: 4 additions & 1 deletion apps/stable_diffusion/src/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def compile_through_fx(
if "cuda" in args.device:
shark_args.enable_tf32 = True

(mlir_module, func_name,) = import_with_fx(
(
mlir_module,
func_name,
) = import_with_fx(
model=model,
inputs=inputs,
is_f16=is_f16,
Expand Down

0 comments on commit a57eccc

Please sign in to comment.