Skip to content

Commit

Permalink
Add missing tk_kernel_args arg in function calls (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinsubbiah authored Jul 25, 2024
1 parent 7f8a2b0 commit bf63aec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/turbine_models/custom_models/sdxl_inference/unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def export_unet_model(
use_punet=False,
quant_paths=None,
add_tk_kernels=False,
tk_kernels_dir=None,
):
if use_punet:
submodel_name = "punet"
Expand Down Expand Up @@ -234,6 +235,7 @@ def export_unet_model(
attn_spec=attn_spec,
flagset_keywords=["punet"] if use_punet else [],
add_tk_kernels=add_tk_kernels,
tk_kernels_dir=tk_kernels_dir,
)
return vmfb_path
elif use_punet:
Expand Down Expand Up @@ -371,6 +373,7 @@ class CompiledUnet(CompiledModule):
flagset_keywords=["punet"] if use_punet else [],
add_tk_kernels=add_tk_kernels,
batch_size=batch_size,
tk_kernels_dir=tk_kernels_dir,
)
if exit_on_vmfb:
exit()
Expand Down Expand Up @@ -410,6 +413,7 @@ class CompiledUnet(CompiledModule):
attn_spec=args.attn_spec,
input_mlir=args.input_mlir,
add_tk_kernels=args.add_tk_kernels,
tk_kernels_dir=args.tk_kernels_dir
)
if args.input_mlir:
exit()
Expand Down

0 comments on commit bf63aec

Please sign in to comment.