为什么用 `slice` 对象列表索引 Theano 张量变量是无效的?

Why indexing a Theano tensor variable with a list of `slice` objects is invalid?

在 Goodfellow 博士的 Theano 教程的 exercise 中,用元组 (slice(w,-w), )*x.ndim 分割 x 是可以的,但是 Theano 会引发 [slice(w,-w)]*x.ndim 的异常。

异常信息:

theano.tensor.var.AsTensorError: ('Cannot convert [slice(, Elemwise{neg,no_inplace}.0, None), slice(, Elemwise{neg,no_inplace}.0, None), slice(, Elemwise{neg,no_inplace}.0, None)] to TensorType', )

为什么它不适用于 list?顺便说一句,用整数列表切片张量变量是可以的。 我已经把document红了,但是没找到原因

这是 Theano 中的一个错误。它已由 Frédéric Bastien 通过 https://github.com/Theano/Theano/pull/2992

修复

更多信息:https://groups.google.com/forum/#!topic/theano-users/nTRfigJD19w