Skip to content

Commit

Permalink
Fix config.use_to for npu compile (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
xduzhangjiayu authored Jul 20, 2024
1 parent d5e5b05 commit 0562410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intel_npu_acceleration_library/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def compile(model: torch.nn.Module, config: CompilerConfig) -> torch.nn.Module:
with torch.no_grad():
# Model lowering to NPU ops
if config.use_to:
model = model
model = model.to("npu")
else:
# General optimizations
apply_general_optimizations(model)
Expand Down

0 comments on commit 0562410

Please sign in to comment.