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

Method __init__

tensorflow/python/keras/losses.py:197–204  ·  view source on GitHub ↗
(self,
               fn,
               reduction=losses_utils.ReductionV2.AUTO,
               name=None,
               **kwargs)

Source from the content-addressed store, hash-verified

195 """
196
197 def __init__(self,
198 fn,
199 reduction=losses_utils.ReductionV2.AUTO,
200 name=None,
201 **kwargs):
202 super(LossFunctionWrapper, self).__init__(reduction=reduction, name=name)
203 self.fn = fn
204 self._fn_kwargs = kwargs
205
206 def call(self, y_true, y_pred):
207 """Invokes the `LossFunctionWrapper` instance.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected