-
Notifications
You must be signed in to change notification settings - Fork 7
Devel update #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devel update #30
Conversation
If so, throw the following error: ``` -- PyTorch CXX11 ABI: 0 CMake Error at CMakeLists.txt:162 (message): PyTorch CXX11 ABI mismatch TensorFlow: 0 != 1 ``` Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Fix #3120. One can disable building the TensorFlow backend during `pip install` by setting `DP_ENABLE_TENSORFLOW=0`. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
…g net. (#3199) - add dp model format (backend independent definition) for the fitting - refactor torch support, compatible with dp model format - fix mlp issue: the idt should only be used when a skip connection is available. - add tools `to_numpy_array` and `to_torch_tensor`. --------- Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
| # if atype_tebd is not None: | ||
| # inputs = torch.concat([inputs, atype_tebd], dim=-1) |
Check notice
Code scanning / CodeQL
Commented-out code
| if nap > 0: | ||
| iap = rng.normal(size=(self.nf, self.nloc, nap - 1)) | ||
| with self.assertRaises(ValueError) as context: | ||
| ret0 = ifn0(dd[0], atype, fparam=ifp, aparam=iap) |
Check warning
Code scanning / CodeQL
Variable defined multiple times
| self.assertEqual(onk.dtype, npp) | ||
| with self.assertRaises(ValueError) as ee: | ||
| foo = foo.astype(np.int32) | ||
| bar = to_torch_tensor(foo) |
Check warning
Code scanning / CodeQL
Variable defined multiple times
| def test_new_old( | ||
| self, | ||
| ): | ||
| rng = np.random.default_rng() |
Check notice
Code scanning / CodeQL
Unused local variable
| ) | ||
| atype = torch.tensor(self.atype_ext[:, :nloc], dtype=int, device=env.DEVICE) | ||
|
|
||
| od = 1 |
Check notice
Code scanning / CodeQL
Unused local variable
| @classmethod | ||
| def deserialize(cls, data: dict) -> "InvarFitting": | ||
| data = copy.deepcopy(data) | ||
| variables = data.pop("@variables") |
Check failure
Code scanning / CodeQL
Modification of parameter with default
| def deserialize(cls, data: dict) -> "InvarFitting": | ||
| data = copy.deepcopy(data) | ||
| variables = data.pop("@variables") | ||
| nets = data.pop("nets") |
Check failure
Code scanning / CodeQL
Modification of parameter with default
| @classmethod | ||
| def deserialize(cls, data: dict) -> "InvarFitting": | ||
| data = copy.deepcopy(data) | ||
| variables = data.pop("@variables") |
Check failure
Code scanning / CodeQL
Modification of parameter with default
| def deserialize(cls, data: dict) -> "InvarFitting": | ||
| data = copy.deepcopy(data) | ||
| variables = data.pop("@variables") | ||
| nets = data.pop("nets") |
Check failure
Code scanning / CodeQL
Modification of parameter with default
| if use_aparam_as_mask: | ||
| raise NotImplementedError("use_aparam_as_mask is not implemented") | ||
| if use_aparam_as_mask: | ||
| raise NotImplementedError("use_aparam_as_mask is not implemented") |
Check warning
Code scanning / CodeQL
Unreachable code
No description provided.