keras
keras copied to clipboard
Fixes for reference before assignment…
found through static analysis tooling
(more to go; or you can merge now and await further PRs; or you can request I move this to one PR per file or per module)
Thanks for the PR. Unit tests are failing and the value-add of most of these changes is highly questionable (most of it is unreachable code which will only serve to decrease our coverage). Please double check each change and only keep the useful ones.
@fchollet Hmm ok I'll see what's causing these segfaults. In the meantime a lot of the patches are to solve the traceability problem, i.e., guarantee that the output
variable is constructed as per below:
- for output in ds.take(1):
- output = output.numpy()
+ output = next(iter(ds)).numpy()
Should I change the PR to just that fix, and make separate PR(s) for the other cases?
Hi @SamuelMarks Can you please resolve conflicts? Thank you!
@gbaned - Sure thing. Done.
Codecov Report
Attention: Patch coverage is 55.55556%
with 8 lines
in your changes missing coverage. Please review.
Project coverage is 76.31%. Comparing base (
11be99a
) to head (2978b7a
).
Additional details and impacted files
@@ Coverage Diff @@
## master #18640 +/- ##
==========================================
- Coverage 78.83% 76.31% -2.53%
==========================================
Files 498 498
Lines 45864 45874 +10
Branches 8450 8446 -4
==========================================
- Hits 36159 35009 -1150
- Misses 7999 9053 +1054
- Partials 1706 1812 +106
Flag | Coverage Δ | |
---|---|---|
keras | 76.24% <55.55%> (-2.46%) |
:arrow_down: |
keras-jax | 65.32% <55.55%> (+2.94%) |
:arrow_up: |
keras-numpy | 57.10% <44.44%> (+0.15%) |
:arrow_up: |
keras-tensorflow | 66.61% <50.00%> (+2.94%) |
:arrow_up: |
keras-torch | ? |
|
keras.applications | 80.33% <0.00%> (?) |
|
keras.applications-jax | 80.33% <0.00%> (?) |
|
keras.applications-numpy | 22.93% <0.00%> (?) |
|
keras.applications-tensorflow | 80.33% <0.00%> (?) |
|
keras.applications-torch | 80.06% <0.00%> (?) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @SamuelMarks Can you please resolve conflicts? Thank you!
@gbaned Done
@SamuelMarks , Can you please rebase the code to the latest code structure, eg: keras/layers is now keras/src/layers
@sachinprasadhs No problem. Merged and resolved conflicts.
Hi @SamuelMarks Can you please resolve conflicts? Thank you!
@gbaned Done.
Hi @SamuelMarks Still conflicts are appearing, can you please resolve those? Thank you!
@gbaned Done