MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / add_loss

Method add_loss

tensorflow/python/layers/base.py:291–333  ·  view source on GitHub ↗

Add loss tensor(s), potentially dependent on layer inputs. Some losses (for instance, activity regularization losses) may be dependent on the inputs passed when calling a layer. Hence, when reusing a same layer on different inputs `a` and `b`, some entries in `layer.losses` may be d

(self, losses, inputs=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

add_variableMethod · 0.95
__call__Method · 0.95
acgan_discriminator_lossFunction · 0.80
testAddExternalLossMethod · 0.80
compute_weighted_lossFunction · 0.80
_run_internal_graphMethod · 0.80
test_get_losses_forMethod · 0.80

Calls 5

_object_list_uidFunction · 0.85
in_eager_modeMethod · 0.80
flattenMethod · 0.80
_to_listFunction · 0.70

Tested by 5

testAddExternalLossMethod · 0.64
test_get_losses_forMethod · 0.64
test_get_losses_forMethod · 0.64