ImportError: cannot import name 'toposort'
Hey guys,
Very nice work!
It seems some of the functions are missing. Here is an example:
44 from autograd.tracer import Node
---> 45 from autograd.util import toposort
46 from autograd.util import subvals
47 from autograd import core
ImportError: cannot import name 'toposort'
I was able to make some progress by using the latest from autograd (https://github.com/HIPS/autograd), which now has the toposort function. Unfortunately I still have a problem when trying to run one of the examples:
Traceback (most recent call last):
File ".\kalman_filter.py", line 97, in
Switching to python 2.7 resolved this for me.
@dwrtz I agree. It resolves some but not all problems. For example, this:
20 from autograd import grad
21 from autograd import value_and_grad
---> 22 from autograd import fmap_util
23
24 from . import conjugacy
ImportError: cannot import name fmap_util
Thanks so much for digging in! Kayhan, good to hear from you!
Looks like you’ve already found this code is currently only Python 2.7 compatible.
The fmap stuff is vestigial (from the fmap-everywhere branch of Autograd, which I meant to remove). I’ll take a look at that when I can.