theano 中出现 TypeError: 'TensorVariable' object does not support item assignment
2017-02-28 09:31
816 查看
theano 中出现 TypeError: 'TensorVariable' object does not support item assignment
在使用TensorVariable类型数据时,如果对TensorVariable类型中某个元素赋值,就可能出现上述错误。如下:
TV_list1[1,2] = TV_list2[1,2]其中TV_list1 和 TV_list2
为TensorVariable类型。
可以使用T.reshape() 和 T.concatenate()等矩阵操作解决
但是如果数据较大,可能出现 maximum recursion depth exceeded in cmp 等错误。因此 尽量少使用reshape操作。
在使用TensorVariable类型数据时,如果对TensorVariable类型中某个元素赋值,就可能出现上述错误。如下:
TV_list1[1,2] = TV_list2[1,2]其中TV_list1 和 TV_list2
为TensorVariable类型。
可以使用T.reshape() 和 T.concatenate()等矩阵操作解决
但是如果数据较大,可能出现 maximum recursion depth exceeded in cmp 等错误。因此 尽量少使用reshape操作。
相关文章推荐
- TypeError: 'str' object does not support item assignment 的解决方法
- python 报错TypeError: 'range' object does not support item assignment,解决方法
- TypeError: 'ItemMeta' object does not support item assignment
- Strange SQLAlchemy error message: TypeError: 'dict' object does not support indexing
- TypeError: 'dict_keys' object does not support indexing
- python object does not support item assignment
- TypeError: 'dict_keys' object does not support indexing
- TypeError: 'dict_keys' object does not support indexing
- TypeError: 'dict_keys' object does not support indexing
- python TypeError: 'str' object does not support item assignment”
- python3.6 TypeError: 'dict_keys' object does not support indexing
- python提示错误TypeError: 'dict_keys' object does not support indexing
- python3使用套接字遇到TypeError: 'str' does not support the buffer interface如何解决
- Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- ajax上传图片TypeError: 'append' called on an object that does not implement interface FormData.
- Python出现TypeError: 'NoneType' object is not iterable
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- java的web.xml中出现ERROR:Editor model does not support child element taglib of web