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

Function _eager_loss_fn

tensorflow/python/keras/engine/training_eager.py:36–39  ·  view source on GitHub ↗
(outputs, targets, loss_fn, output_name)

Source from the content-addressed store, hash-verified

34
35
36def _eager_loss_fn(outputs, targets, loss_fn, output_name):
37 with backend.name_scope(output_name + '_loss'):
38 loss = loss_fn(targets, outputs)
39 return loss
40
41
42def _eager_metrics_fn(model, outputs, targets, sample_weights=None, masks=None):

Callers

nothing calls this directly

Calls 2

loss_fnFunction · 0.50
name_scopeMethod · 0.45

Tested by

no test coverage detected