Skip to content

Commit

Permalink
fix(library): use name in define
Browse files Browse the repository at this point in the history
  • Loading branch information
dacorvo committed Feb 8, 2024
1 parent f634e07 commit 4bffe4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quanto/library/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def define(name, schema):
torch.library.define(f"{libname}::{name}", schema)

# Provide the inplementation for all dispatch key in the main library
@torch.library.impl("quanto::unpack", "default")
@torch.library.impl(f"quanto::{name}", "default")
def impl(*args, **kwargs):
if _ext_enabled:
return getattr(torch.ops.quanto_ext, name)(*args, **kwargs)
Expand Down

0 comments on commit 4bffe4e

Please sign in to comment.