Method
__init__
(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
Tested by
no test coverage detected