Skip to content

Discrepancy in RandomZoom default fill_mode: Documentation states constant, but code uses reflect #20794

@gaetanDubuc

Description

@gaetanDubuc

System Information:

  • Keras Version 3.8.0

Issue Description

There is a discrepancy in the default value of the fill_mode parameter for the RandomZoom layer between the documentation and the actual implementation:

Documentation: States that the default fill_mode is constant.
Code: The default value appears to be reflect.

This inconsistency can lead to unexpected behavior when using RandomZoom without explicitly specifying the fill_mode.

Steps to Reproduce

Check the Keras documentation for RandomZoom.
Check the implementation of RandomZoom in the source code

Expected Behavior

The documentation and the code should align:

If the default is constant, the code should reflect that.
If the default is reflect, the documentation should be updated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions