(self, state_dict: dict)
| 82 | return self._parameter_dict |
| 83 | |
| 84 | def load_state_dict(self, state_dict: dict): |
| 85 | for name in list(self._parameter_dict.keys()): |
| 86 | with tc.no_grad(): self._parameter_dict[name].copy_(state_dict[name]) |
| 87 | |
| 88 | def get_lossfn(self, n_mc_q: int=0, reduction: str="mean", mode: str="defl", weight_da: float=None, wlogpi: float=None): |
| 89 | if reduction == "mean": reducefn = tc.mean |
no outgoing calls