Advanced Computing Platform for Theoretical Physics

Commit 1ebd6236 authored by Pengfei Zhou's avatar Pengfei Zhou
Browse files

bp

parent 6f2cdf46
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment