我想知道如何从 theano 中检索 SharedVariable 的维度。
这在这里例如不起作用:
from theano import *
from numpy import *
import numpy as np
w = shared( np.asarray(zeros((1000,1000)), np.float32) )
print np.asarray(w).shape
print np.asmatrix(w).shape
并且只返回
()
(1, 1)
我也有兴趣打印/检索矩阵或向量的值..