Skip to content

Commit

Permalink
fix py format
Browse files Browse the repository at this point in the history
  • Loading branch information
jingguo-st committed Sep 4, 2024
1 parent 99b1e76 commit 1c23ede
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deeplink_ext/ascend_speed/_rotary_embedding_npu.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ def forward(ctx, x, cos, sin):
@staticmethod
def backward(ctx, grad_output):
out, cos, sin = ctx.saved_tensors
return torch_npu.npu_rotary_mul_backward(grad_output, out, cos, sin)[0], None, None
return (
torch_npu.npu_rotary_mul_backward(grad_output, out, cos, sin)[0],
None,
None
)
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from deeplink_ext.utils import PlatformType, deeplink_ext_get_platform_type


@pytest.fixture(scope='session', autouse=True)
def import_module():
platform = deeplink_ext_get_platform_type()
Expand Down

0 comments on commit 1c23ede

Please sign in to comment.