| Conditions | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """This script provides an example of using custom backbone for training.""" |
||
| 16 | def __init__( |
||
| 17 | self, |
||
| 18 | name: str = "RootMeanSquaredDifference", |
||
| 19 | **kwargs, |
||
| 20 | ): |
||
| 21 | """ |
||
| 22 | Init. |
||
| 23 | |||
| 24 | :param name: name of the loss |
||
| 25 | :param kwargs: additional arguments. |
||
| 26 | """ |
||
| 27 | super().__init__(name=name, **kwargs) |
||
| 28 | self.flatten = tf.keras.layers.Flatten() |
||
| 29 | |||
| 52 |