我正在尝试使用Autograd
软件包复制this standard example。
虽然我能够从该存储库复制其他示例,但是此特定示例引发如下错误:
/home/avuis/anaconda/lib/python3.6/sitepackages/autograd/numpy/numpy_vjps.py:444: FutureWarning:
Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`.
In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
return lambda g: g[idxs]
此相关版本不兼容吗?如果是这样,有什么快速的方法可以解决此问题?
预先感谢