MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / fn

Function fn

tensorflow/python/keras/saving/saved_model/save.py:650–653  ·  view source on GitHub ↗
(inputs, *args, **kwargs)

Source from the content-addressed store, hash-verified

648 layer, call_fn_with_losses, activity_regularizer_fn):
649 """Appends activity regularizer loss to losses returned by the wrapped fn."""
650 def fn(inputs, *args, **kwargs):
651 outputs, losses = call_fn_with_losses(inputs, *args, **kwargs)
652 losses.append(activity_regularizer_fn(outputs))
653 return outputs, losses
654 return _create_call_fn_decorator(layer, fn)
655
656

Callers 15

assert_num_tracesMethod · 0.70
test_maintains_lossesMethod · 0.70
true_fnMethod · 0.50
false_fnMethod · 0.50
build_graphMethod · 0.50
funcMethod · 0.50
executeMethod · 0.50
run_concurrentlyMethod · 0.50

Calls 1

appendMethod · 0.45

Tested by 15

assert_num_tracesMethod · 0.56
test_maintains_lossesMethod · 0.56
true_fnMethod · 0.40
false_fnMethod · 0.40
build_graphMethod · 0.40
funcMethod · 0.40
executeMethod · 0.40
run_concurrentlyMethod · 0.40