-
Notifications
You must be signed in to change notification settings - Fork 540
consistent energy model #3306
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
consistent energy model #3306
Conversation
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## devel #3306 +/- ##
==========================================
- Coverage 75.29% 75.19% -0.10%
==========================================
Files 398 399 +1
Lines 33684 33740 +56
Branches 1604 1586 -18
==========================================
+ Hits 25361 25371 +10
+ Misses 7462 7454 -8
- Partials 861 915 +54 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
@@ -51,9 +52,19 @@ | |||
raise RuntimeError(f"activation function {self.activation} not supported") | |||
|
|||
|
|||
@overload | |||
def to_numpy_array(xx: torch.Tensor) -> np.ndarray: | |||
... |
Check notice
Code scanning / CodeQL
Statement has no effect
|
||
@overload | ||
def to_numpy_array(xx: None) -> None: | ||
... |
Check notice
Code scanning / CodeQL
Statement has no effect
@@ -67,9 +78,19 @@ | |||
return xx.detach().cpu().numpy().astype(prec) | |||
|
|||
|
|||
@overload | |||
def to_torch_tensor(xx: np.ndarray) -> torch.Tensor: | |||
... |
Check notice
Code scanning / CodeQL
Statement has no effect
|
||
@overload | ||
def to_torch_tensor(xx: None) -> None: | ||
... |
Check notice
Code scanning / CodeQL
Statement has no effect
Many hacking things...