Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build method to supress warning #20729

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

shashaka
Copy link
Contributor

@shashaka shashaka commented Jan 6, 2025

To suppress the warning mentioned below, I declared the build method.

UserWarning: build()was called on layer 'random_color_jitter', however the layer does not have abuild()method implemented and it looks like it has unbuilt state. This will cause the layer to be marked as built, despite not being actually built, which may cause failures down the line. Make sure to implement a properbuild() method. warnings.warn(

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.84%. Comparing base (881d8da) to head (3337a1e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #20729   +/-   ##
=======================================
  Coverage   81.83%   81.84%           
=======================================
  Files         552      552           
  Lines       51363    51372    +9     
  Branches     7944     7948    +4     
=======================================
+ Hits        42034    42043    +9     
  Misses       7375     7375           
  Partials     1954     1954           
Flag Coverage Δ
keras 81.66% <100.00%> (+<0.01%) ⬆️
keras-jax 63.95% <100.00%> (+<0.01%) ⬆️
keras-numpy 58.81% <100.00%> (+<0.01%) ⬆️
keras-openvino 29.83% <11.11%> (-0.01%) ⬇️
keras-tensorflow 64.63% <100.00%> (+<0.01%) ⬆️
keras-torch 63.93% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Collaborator

@fchollet fchollet 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 the fix!

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Jan 6, 2025
@fchollet fchollet merged commit 1adaaec into keras-team:master Jan 6, 2025
9 checks passed
@google-ml-butler google-ml-butler bot removed ready to pull Ready to be merged into the codebase kokoro:force-run labels Jan 6, 2025
@shashaka shashaka deleted the random_color_jitter branch January 6, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants