Skip to content

Add missing default argument values in patched_load_by_key_path#81

Merged
youkaichao merged 1 commit intothuml:masterfrom
nopperl:fix-load_by_key_path
Apr 18, 2025
Merged

Add missing default argument values in patched_load_by_key_path#81
youkaichao merged 1 commit intothuml:masterfrom
nopperl:fix-load_by_key_path

Conversation

@nopperl
Copy link
Copy Markdown
Contributor

@nopperl nopperl commented Apr 8, 2025

This PR fixes #80 by aligning the default argument values of patched_load_by_key_path with the unpatched load_by_key_path function (see https://github.com/pytorch/pytorch/blob/v2.6.0/torch/_inductor/codecache.py#L2753--L2754).

Copy link
Copy Markdown
Member

@youkaichao youkaichao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing it!

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.89%. Comparing base (dab8311) to head (b8ad818).
Report is 5 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (dab8311) and HEAD (b8ad818). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (dab8311) HEAD (b8ad818)
8 5
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #81       +/-   ##
===========================================
- Coverage   91.14%   60.89%   -30.26%     
===========================================
  Files          10       10               
  Lines        1547     1547               
===========================================
- Hits         1410      942      -468     
- Misses        137      605      +468     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@youkaichao youkaichao merged commit 461af54 into thuml:master Apr 18, 2025
8 of 11 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.

[Bug]: TypeError in patched_load_by_key_path

2 participants