Advanced Computing Platform for Theoretical Physics

commit大文件会使得服务器变得不稳定,请大家尽量只commit代码,不要commit大的文件。

Commit a0bbcfe7 authored by Pengfei Zhou's avatar Pengfei Zhou

bp

parent 1a432438
......@@ -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
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