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
Pengfei Zhou
GI based TN
Commits
a0bbcfe7
Commit
a0bbcfe7
authored
Aug 20, 2020
by
Pengfei Zhou
Browse files
bp
parent
1a432438
Changes
1
Show whitespace changes
Inline
Side-by-side
parallel_bp.py
View file @
a0bbcfe7
...
...
@@ -102,6 +102,6 @@ if __name__ =='__main__' :
tensor2
=
torch
.
triu
(
tensor2
)
+
torch
.
triu
(
tensor2
,
diagonal
=
1
).
t
()
mf
=
MeanField
(
G
,
torch
.
exp
(
beta
*
tensor2
),
beta
,
'cpu'
)
fe_bp
=
mf
.
BP
()
print
(
"free_energy={:.15g}"
.
format
(
fe_bp
.
item
))
print
(
"free_energy={:.15g}"
.
format
(
fe_bp
.
item
()
))
\ No newline at end of file
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