Theano使用2D CNN变体的3D卷积神经网络(CNN)解决方法:
https://github.com/Theano/Theano/blob/master/theano/tensor/nnet/conv3d2d.py
它依赖于能够抓住矩阵的对角线并重塑它.从上面的网站:
So the relevant part of `x` is some matrix `u`. Suppose it has 7 rows
and 4 columns::
[ 0 0 0 0 ]
[ 0 0 0 0 ]
[ 0 0 0 0 ]
[ 0 0 0 0 ]
[ 0 0 0 0 ]
[ 0 0 0 0 ]
The view returned by this function is also a matrix. It is a thick,
diagonal `stripe` across u that discards the lower …Run Code Online (Sandbox Code Playgroud)