windows tensorflow AttributeError: 'NoneType' object has no attribute 'bucketize'
2017-01-24 00:00
1176 查看
摘要: windows 版本tensorflow learn example wide_n_deep_tutorial中
AttributeError: 'NoneType' object has no attribute 'bucketize'
python 3.5.3
本人亲测linux下,正常运行
AttributeError: 'NoneType' object has no attribute 'bucketize'
实验环境
tensorflow 0.12.1python 3.5.3
现象
File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 355, in fit max_steps=max_steps) File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 699, in _train_model train_ops = self._get_train_ops(features, labels) File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1052, in _get_train_ops return self._call_model_fn(features, labels, model_fn_lib.ModeKeys.TRAIN) File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\estimator.py", line 1019, in _call_model_fn params=self.params) File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\linear.py", line 146, in _linear_model_fn scope=scope)) File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\layers\python\layers\feature_column_ops.py", line 526, in weighted_sum_from_feature_columns transformed_tensor = transformer.transform(column) File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\layers\python\layers\feature_column_ops.py", line 869, in transform feature_column.insert_transformed_feature(self._columns_to_tensors) File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\layers\python\layers\feature_column.py", line 1489, in insert_transformed_feature name="bucketize") File "E:\MyAPP\pythonworkspace\tensorflow\lib\site-packages\tensorflow\contrib\layers\python\ops\bucketization_op.py", line 48, in bucketize return _bucketization_op.bucketize(input_tensor, boundaries, name=name) AttributeError: 'NoneType' object has no attribute 'bucketize'
原因
On windows load_op_library doesn't have any action, just return None方案
目前还没有较好的方案,建议需要尝试该算例的童鞋在linux平台上测试该算例。本人亲测linux下,正常运行
相关文章推荐
- 关于import tensorflow as tf的错误:AttributeError: type object 'NewBase' has no attribute 'is_abstract'
- 《python核心编程》序列:字符串、列表和元组Python: Attribute Error - 'NoneType' object has no attribute
- [Python][转]Exception AttributeError: "'NoneType' object has no attribute
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- Tensorflow protobuf版本报错问题解决(AttributeError: 'module' object has no attribute 'Default')
- tensorflow AttributeError: 'module' object has no attribute 'cpu_count'
- scapy AttributeError: 'NoneType' object has no attribute 'route'解决办法
- tensorflow AttributeError: 'module' object has no attribute 'cpu_count'
- 使用Buildozer部署时,出现AttributeError: 'NoneType' object has no attribute 'group'错误的解决
- TensorBoard tf.summary.merge_all() AttributeError: 'NoneType' object has no attribute 'bucket 错误
- TypeError: 'generator' object has no attribute '__getitem__'
- TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'
- 【问题】Keras AttributeError: 'Tensor' object has no attribute '_keras_history'
- python 提示错误AttributeError: type object 'str' has no attribute '_name_'
- python使用PIL库报错,'NoneType' object has no attribute 'bands'
- Scrapy报错Error: 'module' object has no attribute 'OP_SINGLE_ECDH_USE'
- AttributeError: 'NoneType' object has no attribute 'clone'
- py socket:NoneType object has no attribute close
- goagent-v2.1.11使用心得--NoneType object has no object has no attribute setsockopt解决
- python : 'NoneType' object has no attribute 'recv'