Skip to content

Commit

Permalink
remove useless
Browse files Browse the repository at this point in the history
  • Loading branch information
jikunshang committed Sep 11, 2024
1 parent b6e4a59 commit 903ba2f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions vllm/_ipex_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,14 @@ def _reshape_activation_tensor(

@staticmethod
def silu_and_mul(out: torch.Tensor, x: torch.Tensor) -> None:
# x1, x2 = ipex_ops._reshape_activation_tensor(x)
# ipex.llm.functional.silu_mul(x1, x2, out)
ipex.llm.functional.silu_and_mul(x, out)

@staticmethod
def gelu_and_mul(out: torch.Tensor, x: torch.Tensor) -> None:
# x1, x2 = ipex_ops._reshape_activation_tensor(x)
# ipex.llm.functional.gelu_mul(x1, x2, out, "none")
ipex.llm.functional.gelu_and_mul(x, out)

@staticmethod
def gelu_tanh_and_mul(out: torch.Tensor, x: torch.Tensor) -> None:
# x1, x2 = ipex_ops._reshape_activation_tensor(x)
# ipex.llm.functional.gelu_mul(x1, x2, out, "tanh")
ipex.llm.functional.gelu_and_mul(x, out)

@staticmethod
Expand Down

0 comments on commit 903ba2f

Please sign in to comment.