如何绘制 theano.tensor 值?
How can I plot theano.tensor value?
要使用 imshow 将 TensorType(float64, matrix) 可视化为图像,我该怎么做?我不能直接在 Tensor 上使用 imshow,因为它会给我这个错误
mat is not a numpy array, neither a scalar
当我尝试使用 numpy.asarray 将数据类型转换为数组时,我得到
mat data type = 17 is not supported
有什么方法可以转换为 uint8 数据类型吗?
Theano 张量是符号变量,没有附加值。如果你想绘制一些东西,它可能是一个共享变量(你的网络的权重),在这种情况下你可以使用 my_shared.get_value()
获取值,或者在你传递输入时获取网络的输出,在这种情况下我相信它应该已经是一个 numpy 数组了。
要使用 imshow 将 TensorType(float64, matrix) 可视化为图像,我该怎么做?我不能直接在 Tensor 上使用 imshow,因为它会给我这个错误
mat is not a numpy array, neither a scalar
当我尝试使用 numpy.asarray 将数据类型转换为数组时,我得到
mat data type = 17 is not supported
有什么方法可以转换为 uint8 数据类型吗?
Theano 张量是符号变量,没有附加值。如果你想绘制一些东西,它可能是一个共享变量(你的网络的权重),在这种情况下你可以使用 my_shared.get_value()
获取值,或者在你传递输入时获取网络的输出,在这种情况下我相信它应该已经是一个 numpy 数组了。