Reduce and tighten comments and docstrings across the test suite (#6429)
* Reduce and tighten comments and docstrings in tests Shorten verbose comments and docstrings across the test suite without changing any test logic. Remove narration that restates the next line, collapse long module and test docstrings to a single line, and drop banner separators. Keep regression context (issue and PR references, run ids), skip reasons, mocking and timing rationale, license headers, lint and type directives, and commented-out code. Comments and docstrings only: an AST signature check confirms no code, assertions, or string literals changed, and the suite byte-compiles cleanly. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
1b697ed6fc
commit
a6dc10dad2
122 changed files with 1847 additions and 4511 deletions
|
|
@ -56,12 +56,7 @@ def describe_param(
|
|||
include_infinity: bool = False,
|
||||
as_str: bool = True,
|
||||
) -> dict:
|
||||
"""
|
||||
Statistical summary (shape, mean, std, min/max, percentiles) of a tensor.
|
||||
|
||||
Optionally includes L1/L2/infinity norms. Returns a formatted string when
|
||||
as_str is True, else a dict.
|
||||
"""
|
||||
"""Statistical summary of a tensor (optional L1/L2/inf norms); string if as_str else dict."""
|
||||
|
||||
param = param.float()
|
||||
summary = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue