-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve argument name checks for build/compute_output_signature
We want to support the case where a layer looks like this: ```python class SomeLayer(keras_core.layers.Layer): def build(self, shape): ... def call( self, inputs, optional_tensor_arg_one=None, optional_tensor_arg_two=None, optional_tensor_arg_tree=None, ): ... ``` However, due to a bug, we would forward a dictionary of all passed tensor shapes to build when it only accepted one argument. This tries to clean up the logic a bit.
- Loading branch information
1 parent
471f02f
commit e3c90e3
Showing
2 changed files
with
122 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters