Skip to content

[codex] Fix PyTorch backend std signature#1872

Merged
FlorianPfaff merged 4 commits intomainfrom
codex/pytorch-std-axis-ddof
Apr 25, 2026
Merged

[codex] Fix PyTorch backend std signature#1872
FlorianPfaff merged 4 commits intomainfrom
codex/pytorch-std-axis-ddof

Conversation

@FlorianPfaff
Copy link
Copy Markdown
Owner

Summary

  • Replace the PyTorch backend std wrapper with a NumPy-compatible signature for axis, ddof, keepdims, dtype, out, and correction.
  • Add focused PyTorch backend tests covering population vs. sample standard deviation, keepdims, dtype, and conflicting ddof/correction arguments.

Notes

This intentionally excludes the SE2PartiallyWrappedNormalDistribution alias and other unrelated changes from #1807.

Validation

  • Not run locally; this workspace is read-only and the branch was created through the GitHub API.
  • Verified the GitHub compare contains only src/pyrecest/_backend/pytorch/__init__.py and tests/test_pytorch_backend.py.

@FlorianPfaff FlorianPfaff marked this pull request as ready for review April 25, 2026 10:43
@FlorianPfaff FlorianPfaff enabled auto-merge (squash) April 25, 2026 10:43
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 25, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 16.63s
✅ JSON prettier 2 0 0 0 0.44s
✅ JSON v8r 2 0 0 2.86s
✅ MARKDOWN markdownlint 2 0 0 0 0.69s
✅ MARKDOWN markdown-table-formatter 2 0 0 0 0.26s
✅ PYTHON bandit 394 0 0 5.99s
✅ PYTHON black 394 6 0 0 9.24s
✅ PYTHON flake8 394 0 0 3.37s
✅ PYTHON isort 394 10 0 0 0.76s
✅ PYTHON mypy 394 0 0 5.34s
✅ PYTHON pylint 394 0 0 120.52s
✅ PYTHON ruff 394 10 0 0 0.08s
✅ REPOSITORY checkov yes no no 23.87s
✅ REPOSITORY gitleaks yes no no 11.32s
✅ REPOSITORY git_diff yes no no 0.06s
✅ REPOSITORY secretlint yes no no 6.97s
✅ REPOSITORY syft yes no no 2.83s
✅ REPOSITORY trivy-sbom yes no no 3.07s
✅ REPOSITORY trufflehog yes no no 20.46s
✅ YAML prettier 4 0 0 0 0.49s
✅ YAML v8r 4 0 0 4.78s
✅ YAML yamllint 4 0 0 0.45s

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_BANDIT,PYTHON_MYPY,PYTHON_RUFF,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff FlorianPfaff merged commit b9bcb23 into main Apr 25, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant