| 31 | |
| 32 | |
| 33 | class PhaseMixin(object): |
| 34 | _train = False |
| 35 | |
| 36 | @property |
| 37 | def is_training(self): |
| 38 | return self._train |
| 39 | |
| 40 | @is_training.setter |
| 41 | def is_training(self, is_train=True): |
| 42 | self._train = is_train |
| 43 | |
| 44 | @property |
| 45 | def is_testing(self): |
| 46 | return not self._train |
| 47 | |
| 48 | @is_testing.setter |
| 49 | def is_testing(self, is_test=True): |
| 50 | self._train = not is_test |
| 51 | |
| 52 | |
| 53 | class Dense(Layer, ParamMixin): |
nothing calls this directly
no outgoing calls
no test coverage detected