Comments (2)
动态rnn也报了一样的错:
Step 189, Epoch 0 Metrics [array([0.45252907], dtype=float32), array([0.8046875], dtype=float32)]
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/executor.py:782: UserWarning: The following exception is not an EOF exception.
"The following exception is not an EOF exception.")
Traceback (most recent call last):
File "SA_Test.py", line 231, in
main(use_cuda)
File "SA_Test.py", line 225, in main
infer(use_cuda, params_dirname)
File "SA_Test.py", line 213, in infer
return_numpy=False)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/executor.py", line 783, in run
six.reraise(*sys.exc_info())
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 693, in reraise
raise value
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/executor.py", line 778, in run
use_program_cache=use_program_cache)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/executor.py", line 831, in _run_impl
use_program_cache=use_program_cache)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/executor.py", line 902, in _run_program
self._feed_data(program, feed, feed_var_name, scope)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/executor.py", line 580, in _feed_data
check_feed_shape_type(var, cur_feed)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/executor.py", line 230, in check_feed_shape_type
(var.name, len(var.shape), var.shape, feed_shape))
ValueError: The feeded Variable 'words' should have dimensions = 1, shape = (-1,), but received feeded shape [-1, 1] on each device
from book.
同样遇到这个问题。仔细对照了网页版,和最新的代码是有区别的。
shape = (-1,)的要求,可以把lod转换ndarray
生成lod_tensor之前,加一行
lod = np.array(sum(lod, []), dtype=np.int64)
这样就可以跑通
from book.
Related Issues (20)
- 06.情感分析示例中,如何得到句子转化成的向量 HOT 1
- book的docker拉下来,一直显示http://127.0.0.1:8888/files/.tools/theme/marked.js无法访问 HOT 2
- docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book后,html显示报错,所有模块都一样 HOT 3
- 07.label_semantic_roles 如何保存 crf_decode, infer 如何 decode? HOT 1
- Network structure not consistent with proposed DCGAN HOT 2
- 06情感分析,案例data type报错 HOT 1
- 06情感分析代码出现维度错误 HOT 6
- fit_a_line的示例中,数据的归一化处理时,应该只使用train data。 HOT 1
- 语义序列标注修改输入出现的问题 HOT 2
- 图像分类的代码运行到训练部分报错 HOT 3
- 房价预测代码跑错误 HOT 5
- 机器翻译infer报错 HOT 6
- 01.fit_a_line预测结果差异较大
- 无法访问隐藏文件
- [Call for Contribution] Tutorials for PaddlePaddle 2.0(基于飞桨2.0的应用案例教程建设) HOT 35
- 通过DCGAN实现人脸图像生成
- 认领 题目:通过AutoEncoder实现时序数据异常检测
- test bot HOT 3
- typo in image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from book.