Return a dictionary containing the layer hyperparameters.
(self)
| 1072 | |
| 1073 | @property |
| 1074 | def hyperparameters(self): |
| 1075 | """Return a dictionary containing the layer hyperparameters.""" |
| 1076 | return { |
| 1077 | "layer": "BatchNorm2D", |
| 1078 | "act_fn": None, |
| 1079 | "in_ch": self.in_ch, |
| 1080 | "out_ch": self.out_ch, |
| 1081 | "epsilon": self.epsilon, |
| 1082 | "momentum": self.momentum, |
| 1083 | "optimizer": { |
| 1084 | "cache": self.optimizer.cache, |
| 1085 | "hyperparameters": self.optimizer.hyperparameters, |
| 1086 | }, |
| 1087 | } |
| 1088 | |
| 1089 | def reset_running_stats(self): |
| 1090 | """Reset the running mean and variance estimates to 0 and 1.""" |
nothing calls this directly
no outgoing calls
no test coverage detected