Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -178,6 +178,7 @@ def pack_seq_triton(
|
||||
|
||||
Returns:
|
||||
packed: [B, Lmax, ...] — packed tensor.
|
||||
|
||||
"""
|
||||
is_uint8 = x.dtype == torch.uint8
|
||||
if is_uint8:
|
||||
@@ -334,8 +335,7 @@ def unpack_seq_triton(
|
||||
block_t: int = 64,
|
||||
block_d: int = 64,
|
||||
) -> torch.Tensor:
|
||||
"""
|
||||
Unpack a packed decode query tensor back to the original format.
|
||||
"""Unpack a packed decode query tensor back to the original format.
|
||||
Efficient Triton implementation.
|
||||
|
||||
Args:
|
||||
@@ -346,8 +346,8 @@ def unpack_seq_triton(
|
||||
|
||||
Returns:
|
||||
unpacked_tensor: [N, ...] where N = sum(lengths)
|
||||
"""
|
||||
|
||||
"""
|
||||
# Handle multi-dimensional input by reshaping to (B, Lmax, -1)
|
||||
original_shape = packed_tensor.shape
|
||||
if len(original_shape) > 3:
|
||||
|
||||
Reference in New Issue
Block a user