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:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+3
View File
@@ -286,6 +286,7 @@ def _xpu_fp8_bmm_impl(
This implementation centralizes access to
``torch.ops._xpu_C.fp8_bmm``. Both scales must be contiguous, while
``a`` and ``b`` may be non-contiguous views.
"""
return torch.ops._xpu_C.fp8_bmm(a, b, out_dtype, a_scale, b_scale, bias)
@@ -430,6 +431,7 @@ def _xpu_deepseek_fused_indexer_q_rope_fp8_impl(
index_weights_out: (T, H) float32 output, preallocated;
= index_weights * q_scale * softmax_scale * head_scale (the
per-(token, head) q_scale is folded in here). [written]
"""
torch.ops._xpu_C.deepseek_fused_indexer_q_rope_fp8(
index_q,
@@ -473,6 +475,7 @@ def _xpu_deepseek_fused_indexer_q_rope_mxfp4_impl(
index_weights_out: (T, H) float32 output, preallocated;
= index_weights * softmax_scale * head_scale (no q_scale folded;
per-block scales live in index_q_scale). [written]
"""
torch.ops._xpu_C.deepseek_fused_indexer_q_rope_mxfp4(
index_q,