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

Pass Variable Length Argument To Old Function Call #366

Merged
merged 5 commits into from
Oct 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion smdebug/tensorflow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def get_layer_call_fn(layer: tf.keras.layers.Layer) -> Callable[[tf.Tensor], tf.

def call(inputs, *args, **kwargs) -> tf.Tensor:
layer_input = inputs
layer_output = old_call_fn(inputs)
layer_output = old_call_fn(inputs, *args, **kwargs)
vandanavk marked this conversation as resolved.
Show resolved Hide resolved
for hook in layer._hooks:
hook_result = hook(inputs, layer_input=layer_input, layer_output=layer_output)
if hook_result is not None:
Expand Down