Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert travis to theano master #803

Closed
twiecki opened this issue Aug 19, 2015 · 5 comments
Closed

Revert travis to theano master #803

twiecki opened this issue Aug 19, 2015 · 5 comments

Comments

@twiecki
Copy link
Member

twiecki commented Aug 19, 2015

Once Theano/Theano#3319 is fixed, we should revert 3bde2af

Otherwise raises these errors:

======================================================================
ERROR: pymc3.tests.test_plots.test_plots
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/pymc-devs/pymc3/pymc3/tests/test_plots.py", line 20, in test_plots
    h = find_hessian(start)
  File "/home/travis/build/pymc-devs/pymc3/pymc3/tuning/scaling.py", line 61, in find_hessian
    H = model.fastd2logp(vars)
  File "/home/travis/build/pymc-devs/pymc3/pymc3/model.py", line 77, in fastd2logp
    return self.model.fastfn(hessian(self.logpt, vars))
  File "/home/travis/build/pymc-devs/pymc3/pymc3/model.py", line 230, in fastfn
    f = self.makefn(outs, mode, *args, **kwargs)
  File "/home/travis/build/pymc-devs/pymc3/pymc3/memoize.py", line 14, in memoizer
    cache[key] = obj(*args, **kwargs)
  File "/home/travis/build/pymc-devs/pymc3/pymc3/model.py", line 202, in makefn
    mode=mode, *args, **kwargs)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function.py", line 316, in function
    output_keys=output_keys)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/pfunc.py", line 525, in pfunc
    output_keys=output_keys)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py", line 1526, in orig_function
    defaults)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py", line 1390, in create
    input_storage=input_storage_lists)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/link.py", line 607, in make_thunk
    output_storage=output_storage)[:3]
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/vm.py", line 1025, in make_all
    no_recycling))
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/scan_module/scan_op.py", line 757, in make_thunk
    on_unused_input='ignore')
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function.py", line 316, in function
    output_keys=output_keys)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/pfunc.py", line 525, in pfunc
    output_keys=output_keys)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py", line 1526, in orig_function
    defaults)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/compile/function_module.py", line 1390, in create
    input_storage=input_storage_lists)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/link.py", line 607, in make_thunk
    output_storage=output_storage)[:3]
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/vm.py", line 994, in make_all
    order = self.schedule(fgraph)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/link.py", line 374, in schedule
    return fgraph.toposort()
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/fg.py", line 645, in toposort
    order = graph.io_toposort(fg.inputs, fg.outputs, ords)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/graph.py", line 853, in io_toposort
    deps_cache=deps_cache)
  File "/home/travis/miniconda/envs/testenv/lib/python2.7/site-packages/theano/gof/graph.py", line 785, in general_toposort
    raise ValueError('graph contains cycles')
ValueError: ('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')
@twiecki
Copy link
Member Author

twiecki commented Aug 19, 2015

@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?

@DeliciousHair
Copy link
Contributor

Any progress on this yet? Perhaps I should start digging through the errors to find the offending code...

@twiecki
Copy link
Member Author

twiecki commented Aug 25, 2015

Not yet, we have to get the theano-devs' attention (ping @nouiz ;)). I have the feeling it's an up-stream problem and thus should be addressed there. Someone reported the problem running theano tests too: https://groups.google.com/forum/#!topic/theano-users/TNSWhKHylAI

@basveeling
Copy link

@twiecki I had the same issue, but after reinstalling scipy and numpy (both were already up to date) the error was gone.

twiecki added a commit that referenced this issue Aug 26, 2015
twiecki added a commit to quantopian/pyfolio that referenced this issue Aug 26, 2015
@twiecki twiecki changed the title 'graph contains cycles' travis errors for plotting functions Revert travis to theano master Aug 26, 2015
@nouiz
Copy link
Contributor

nouiz commented Aug 31, 2015

Theano/Theano#3344 contain a tmp fix to this.

@twiecki twiecki closed this as completed in f006d2e Sep 9, 2015
twiecki added a commit that referenced this issue Sep 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants