{"action":"created","issue":{"url":"https://api.github.com/repos/netket/netket/issues/22","repository_url":"https://api.github.com/repos/netket/netket","labels_url":"https://api.github.com/repos/netket/netket/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/netket/netket/issues/22/comments","events_url":"https://api.github.com/repos/netket/netket/issues/22/events","html_url":"https://github.com/netket/netket/issues/22","id":326543333,"number":22,"title":"segmentation fault for Sr with iterative method","user":{"login":"wuyukai","id":5736909,"avatar_url":"https://avatars0.githubusercontent.com/u/5736909?v=4","gravatar_id":"","url":"https://api.github.com/users/wuyukai","html_url":"https://github.com/wuyukai","followers_url":"https://api.github.com/users/wuyukai/followers","following_url":"https://api.github.com/users/wuyukai/following{/other_user}","gists_url":"https://api.github.com/users/wuyukai/gists{/gist_id}","starred_url":"https://api.github.com/users/wuyukai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuyukai/subscriptions","organizations_url":"https://api.github.com/users/wuyukai/orgs","repos_url":"https://api.github.com/users/wuyukai/repos","events_url":"https://api.github.com/users/wuyukai/events{/privacy}","received_events_url":"https://api.github.com/users/wuyukai/received_events","type":"User","site_admin":false},"labels":[{"id":911482692,"url":"https://api.github.com/repos/netket/netket/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":945025068,"url":"https://api.github.com/repos/netket/netket/labels/fix%20proposed","name":"fix proposed","color":"e08d28","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-25T14:19:43Z","updated_at":"2018-05-26T01:50:38Z","closed_at":null,"author_association":"NONE","body":"I'm able to run the examples in the Tutorial using Stochastic Reconfiguration with 'UseIterative' set as False. But if I set it to True, I get the message \"Segmentation fault (core dumped)\". For example, below is what I get from the J1-J2 model with an empty .log file.\r\n\r\n\\# Graph created \r\n\\# Number of nodes = 20\r\n\\# RBM Initizialized with nvisible = 20 and nhidden = 20\r\n\\# Using visible bias = 1\r\n\\# Using hidden bias  = 1\r\n\\# Machine initialized with random parameters\r\n\\# Hamiltonian Metropolis sampler with parallel tempering is ready \r\n\\# 16 replicas are being used\r\n\\# Learning running on 1 processes\r\n\\# Using the Stochastic reconfiguration method\r\n\\# With iterative solver\r\nSegmentation fault (core dumped)\r\n\r\nI'm using Ubuntu 18.04 with gcc 7.3.0, python 3.6.5 and mpich 3.3a2. The other libraries come with the netket."},"comment":{"url":"https://api.github.com/repos/netket/netket/issues/comments/392226987","html_url":"https://github.com/netket/netket/issues/22#issuecomment-392226987","issue_url":"https://api.github.com/repos/netket/netket/issues/22","id":392226987,"user":{"login":"gcarleo","id":28149892,"avatar_url":"https://avatars0.githubusercontent.com/u/28149892?v=4","gravatar_id":"","url":"https://api.github.com/users/gcarleo","html_url":"https://github.com/gcarleo","followers_url":"https://api.github.com/users/gcarleo/followers","following_url":"https://api.github.com/users/gcarleo/following{/other_user}","gists_url":"https://api.github.com/users/gcarleo/gists{/gist_id}","starred_url":"https://api.github.com/users/gcarleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcarleo/subscriptions","organizations_url":"https://api.github.com/users/gcarleo/orgs","repos_url":"https://api.github.com/users/gcarleo/repos","events_url":"https://api.github.com/users/gcarleo/events{/privacy}","received_events_url":"https://api.github.com/users/gcarleo/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T01:50:38Z","updated_at":"2018-05-26T01:50:38Z","author_association":"CONTRIBUTOR","body":"@femtobit \r\n\r\nmatrix_replacement is a class that basically applies a custom matrix to a vector, without explicitly forming the matrix. This is needed to solve a linear system S*deltaP=b through a CG method, to reduce the computational time resulting from explicitly forming the matrix S. \r\n\r\nIn this case the matrix being replace is therefore: https://github.com/netket/netket/blob/916bfe25b89eff0f75d31425871ba8454e4d17e6/NetKet/Learning/ground_state.hpp#L295 \r\n\r\nwhich is a square matrix of size npar_ * npar_. Thus rows() and cols() return the same value. \r\n\r\nmp_mat_ is the O_k matrix, i.e. the variational derivatives on all the sampled configurations, which is a rectangular one, thus you get the error you were mentioning. \r\n\r\nStill, I don't understand where this bug comes from.... "}}
{"actor":{"display_login":"gcarleo"}}