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
1ebd6236
Commit
1ebd6236
authored
Aug 20, 2020
by
Pengfei Zhou
Browse files
bp
parent
6f2cdf46
Changes
1
Hide whitespace changes
Inline
Side-by-side
parallel_bp.py
View file @
1ebd6236
...
...
@@ -68,7 +68,7 @@ class MeanField():
for
step
in
range
(
self
.
max_iter
):
tmp
=
cav_ij
#print(tmp)
cav_ij
=
F
.
softmax
(
torch
.
spmm
(
spB1
,
torch
.
log
(
cav_ij
@
self
.
W
),
dim
=
1
)
cav_ij
=
F
.
softmax
(
torch
.
spmm
(
spB1
,
torch
.
log
(
cav_ij
@
self
.
W
)
)
,
dim
=
1
)
#print(cav_ij)
differ
=
torch
.
max
(
torch
.
abs
(
cav_ij
-
tmp
))
#print(differ)
...
...
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