Reset Hopfield association. :return: None
(self)
| 150 | self.reset_parameters() |
| 151 | |
| 152 | def reset_parameters(self) -> None: |
| 153 | """ |
| 154 | Reset Hopfield association. |
| 155 | |
| 156 | :return: None |
| 157 | """ |
| 158 | for module in (self.association_core, self.norm_stored_pattern, |
| 159 | self.norm_state_pattern, self.norm_pattern_projection): |
| 160 | if hasattr(module, r'reset_parameters'): |
| 161 | module.reset_parameters() |
| 162 | |
| 163 | def _maybe_transpose(self, *args: Tuple[Tensor, ...]) -> Union[Tensor, Tuple[Tensor, ...]]: |
| 164 | """ |
no outgoing calls
no test coverage detected