Advanced Computing Platform for Theoretical Physics
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
codes
playwithgrad
Commits
a163cfaa
Commit
a163cfaa
authored
Dec 25, 2018
by
Lei Wang
Browse files
logtrace
parent
b70a66d1
Pipeline
#820
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test_grad.py
View file @
a163cfaa
...
...
@@ -18,7 +18,7 @@ for i in range(Niter):
lnZ
=
lnZ
+
torch
.
log
(
s
)
/
2
**
i
M
=
M
/
s
M
=
M
@
M
lnZ
=
lnZ
+
torch
.
trace
(
M
)
/
(
2
**
Niter
)
lnZ
=
lnZ
+
torch
.
log
(
torch
.
trace
(
M
)
)
/
(
2
**
Niter
)
#(1) impurity grad
impurity_grad
=
(
M
@
M
).
t
()
/
torch
.
trace
(
M
@
T
@
M
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment