(self, a)
| 1955 | self.ValFunction = ValFunction |
| 1956 | |
| 1957 | def _to_numpy(self, a): |
| 1958 | if isinstance(a, float) or isinstance(a, int) or isinstance(a, np.ndarray): |
| 1959 | return np.array(a) |
| 1960 | return a.cpu().detach().numpy() |
| 1961 | |
| 1962 | def _from_numpy(self, a, type_as=None): |
| 1963 | if ( |