{"action":"created","issue":{"url":"https://api.github.com/repos/pymc-devs/pymc3/issues/803","labels_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/803/comments","events_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/803/events","html_url":"https://github.com/pymc-devs/pymc3/issues/803","id":101838656,"number":803,"title":"'graph contains cycles' travis errors for plotting functions","user":{"login":"twiecki","id":674200,"avatar_url":"https://avatars.githubusercontent.com/u/674200?v=3","gravatar_id":"","url":"https://api.github.com/users/twiecki","html_url":"https://github.com/twiecki","followers_url":"https://api.github.com/users/twiecki/followers","following_url":"https://api.github.com/users/twiecki/following{/other_user}","gists_url":"https://api.github.com/users/twiecki/gists{/gist_id}","starred_url":"https://api.github.com/users/twiecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twiecki/subscriptions","organizations_url":"https://api.github.com/users/twiecki/orgs","repos_url":"https://api.github.com/users/twiecki/repos","events_url":"https://api.github.com/users/twiecki/events{/privacy}","received_events_url":"https://api.github.com/users/twiecki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T08:49:57Z","updated_at":"2015-08-19T14:21:17Z","closed_at":null,"body":"These are pretty weird, started happening today (probably a Theano update?)\r\n\r\n```\r\n======================================================================\r\nERROR: pymc3.tests.test_plots.test_plots\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/travis/build/pymc-devs/pymc3/pymc3/tests/test_plots.py\", line 20, in test_plots\r\n    h = find_hessian(start)\r\n  File \"/home/travis/build/pymc-devs/pymc3/pymc3/tuning/scaling.py\", line 61, in find_hessian\r\n    H = model.fastd2logp(vars)\r\n  File \"/home/travis/build/pymc-devs/pymc3/pymc3/model.py\", line 77, in fastd2logp\r\n    return self.model.fastfn(hessian(self.logpt, vars))\r\n  File \"/home/travis/build/pymc-devs/pymc3/pymc3/model.py\", line 230, in fastfn\r\n    f = self.makefn(outs, mode, *args, **kwargs)\r\n  File \"/home/travis/build/pymc-devs/pymc3/pymc3/memoize.py\", line 14, in memoizer\r\n    cache[key] = obj(*args, **kwargs)\r\n  File \"/home/travis/build/pymc-devs/pymc3/pymc3/model.py\", line 202, in makefn\r\n    mode=mode, *args, **kwargs)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function.py\", line 316, in function\r\n    output_keys=output_keys)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/pfunc.py\", line 525, in pfunc\r\n    output_keys=output_keys)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py\", line 1526, in orig_function\r\n    defaults)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py\", line 1390, in create\r\n    input_storage=input_storage_lists)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/link.py\", line 607, in make_thunk\r\n    output_storage=output_storage)[:3]\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/vm.py\", line 1025, in make_all\r\n    no_recycling))\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/scan_module/scan_op.py\", line 757, in make_thunk\r\n    on_unused_input='ignore')\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function.py\", line 316, in function\r\n    output_keys=output_keys)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/pfunc.py\", line 525, in pfunc\r\n    output_keys=output_keys)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py\", line 1526, in orig_function\r\n    defaults)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py\", line 1390, in create\r\n    input_storage=input_storage_lists)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/link.py\", line 607, in make_thunk\r\n    output_storage=output_storage)[:3]\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/vm.py\", line 994, in make_all\r\n    order = self.schedule(fgraph)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/link.py\", line 374, in schedule\r\n    return fgraph.toposort()\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/fg.py\", line 645, in toposort\r\n    order = graph.io_toposort(fg.inputs, fg.outputs, ords)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/graph.py\", line 853, in io_toposort\r\n    deps_cache=deps_cache)\r\n  File \"/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/graph.py\", line 785, in general_toposort\r\n    raise ValueError('graph contains cycles')\r\nValueError: ('The following error happened while compiling the node', for{cpu,scan_fn}(Shape_i{0}.0, Subtensor{int64:int64:int8}.0, Shape_i{0}.0, Elemwise{exp}.0, Elemwise{gt,no_inplace}.0, Elemwise{exp}.0, Elemwise{abs_,no_inplace}.0, Elemwise{sqr,no_inplace}.0, Elemwise{Composite{(Switch(i0, (-i1), i2) + log(i3))}}.0, InplaceDimShuffle{}.0), '\\n', 'graph contains cycles')\r\n```"},"comment":{"url":"https://api.github.com/repos/pymc-devs/pymc3/issues/comments/132615690","html_url":"https://github.com/pymc-devs/pymc3/issues/803#issuecomment-132615690","issue_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/803","id":132615690,"user":{"login":"twiecki","id":674200,"avatar_url":"https://avatars.githubusercontent.com/u/674200?v=3","gravatar_id":"","url":"https://api.github.com/users/twiecki","html_url":"https://github.com/twiecki","followers_url":"https://api.github.com/users/twiecki/followers","following_url":"https://api.github.com/users/twiecki/following{/other_user}","gists_url":"https://api.github.com/users/twiecki/gists{/gist_id}","starred_url":"https://api.github.com/users/twiecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twiecki/subscriptions","organizations_url":"https://api.github.com/users/twiecki/orgs","repos_url":"https://api.github.com/users/twiecki/repos","events_url":"https://api.github.com/users/twiecki/events{/privacy}","received_events_url":"https://api.github.com/users/twiecki/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T14:21:17Z","updated_at":"2015-08-19T14:21:17Z","body":"@nouiz This just happened starting yesterday without any changes on our end. Is it possible that this is caused by some change in theano master?"}}