Comments (8)
把beam_search相关的注释打开才行。。。
from tensorflow_practice.
看起来中文的项目确实漏洞百出啊
from tensorflow_practice.
把beam_search相关的注释打开才行。。。
predict跑起来了吗
from tensorflow_practice.
把beam_search相关的注释打开才行。。。
predict跑起来了吗
能predict 起来。但绝对不是你想像中那样子:
第一,输入输出都是英文
第二,效果很差
from tensorflow_practice.
把beam_search相关的注释打开才行。。。
predict跑起来了吗
能predict 起来。但绝对不是你想像中那样子:
第一,输入输出都是英文
第二,效果很差
嗯嗯,跑起来了,训练数据都是英文的,输入中文的话不知道能不能理解,确实答非所问
from tensorflow_practice.
把beam_search相关的注释打开才行。。。
predict跑起来了吗
能predict 起来。但绝对不是你想像中那样子:
第一,输入输出都是英文
第二,效果很差嗯嗯,跑起来了,训练数据都是英文的,输入中文的话不知道能不能理解,确实答非所问
请问tf版本是多少?我在predict出错了。
报错如下:
2019-12-17 14:15:28.290374: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
2019-12-17 14:15:28.290477: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
2019-12-17 14:15:28.290502: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
2019-12-17 14:15:28.290489: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
2019-12-17 14:15:28.290570: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
2019-12-17 14:15:28.290810: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
2019-12-17 14:15:28.290841: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
Traceback (most recent call last):
File "/home/zsq/anaconda3/envs/tf1.4/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1323, in _do_call
return fn(*args)
File "/home/zsq/anaconda3/envs/tf1.4/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1302, in _run_fn
status, run_metadata)
File "/home/zsq/anaconda3/envs/tf1.4/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 1024 values, but the requested shape has 5120
[[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]]
[[Node: encoder/rnn/All/_55 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_69_encoder/rnn/All", tensor_type=DT_BOOL, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]
from tensorflow_practice.
把beam_search相关的注释打开才行。。。
predict跑起来了吗
能predict 起来。但绝对不是你想像中那样子:
第一,输入输出都是英文
第二,效果很差嗯嗯,跑起来了,训练数据都是英文的,输入中文的话不知道能不能理解,确实答非所问
请问tf版本是多少?我在predict出错了。
报错如下:2019-12-17 14:15:28.290374: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] 2019-12-17 14:15:28.290477: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] 2019-12-17 14:15:28.290502: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] 2019-12-17 14:15:28.290489: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] 2019-12-17 14:15:28.290570: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] 2019-12-17 14:15:28.290810: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] 2019-12-17 14:15:28.290841: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] Traceback (most recent call last): File "/home/zsq/anaconda3/envs/tf1.4/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1323, in _do_call return fn(*args) File "/home/zsq/anaconda3/envs/tf1.4/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1302, in _run_fn status, run_metadata) File "/home/zsq/anaconda3/envs/tf1.4/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__ c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 1024 values, but the requested shape has 5120 [[Node: decoder/Reshape_4 = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](decoder/AttentionWrapperZeroState/zeros_1, decoder/concat_4)]] [[Node: encoder/rnn/All/_55 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_69_encoder/rnn/All", tensor_type=DT_BOOL, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]
不是tf的问题,训练和预测时不要用beam_search(beam_search=False)
from tensorflow_practice.
from tensorflow_practice.
Related Issues (20)
- A3C计算V(St+1)的target_v存在bug
- 请问DKN各位可以运行吗?需要怎样的计算资源?
- Bug in RL/Policy_Gradient/RL_brain.py
- gbdt+lr问题
- DKN中数据预处理,TransE.cpp无法运行 HOT 2
- DCG的问题
- 这个变量应该设置成trainable=False
- 这块应该每次进来重新置0吧
- FFM这个实现有问题吧. 这个值每次都会被更新吧
- tensorflow_practice/basic/Basic-Transformer-Demo/训练问题
- A2C 数据集在百度网盘上被屏蔽了
- 数据集链接挂了 HOT 15
- deepfm篇您用的哪里的数据集 可以分享下么
- 有数据集的老哥分享一下 这个链接挂了 HOT 1
- dataset失效了 HOT 2
- 请问一下Rainbow里面环境的问题
- maddpg算法有一些问题
- 给所有需要data的朋友 HOT 1
- 请问FFM代码的tf.squeeze 为啥要把维度是一的数据删去,不是很明白
- AC算法的critic网络不对吧?应该用v计算td_error,r + gamma * q是啥?
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 tensorflow_practice.