[Kernel] Remove unused fake implementation (#55535)
Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai>
This commit is contained in:
@@ -718,17 +718,6 @@ def _spec_aware_nonspec_subset(
|
||||
return attn_out.squeeze(0)
|
||||
|
||||
|
||||
def cpu_gdn_attention_core_fake(
|
||||
mixed_qkv: torch.Tensor,
|
||||
b: torch.Tensor,
|
||||
a: torch.Tensor,
|
||||
core_attn_out: torch.Tensor,
|
||||
layer_name: LayerNameType,
|
||||
) -> None:
|
||||
"""Fake implementation for torch.compile."""
|
||||
return
|
||||
|
||||
|
||||
def register_cpu_gdn_attention_ops() -> None:
|
||||
global _CPU_GDN_ATTENTION_OPS_REGISTERED
|
||||
if _CPU_GDN_ATTENTION_OPS_REGISTERED:
|
||||
@@ -738,6 +727,5 @@ def register_cpu_gdn_attention_ops() -> None:
|
||||
op_name="cpu_gdn_attention_core",
|
||||
op_func=cpu_gdn_attention_core,
|
||||
mutates_args=["core_attn_out"],
|
||||
fake_impl=cpu_gdn_attention_core_fake,
|
||||
)
|
||||
_CPU_GDN_ATTENTION_OPS_REGISTERED = True
|
||||
|
||||
Reference in New Issue
Block a user