Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跑RNN2的代码的时候有问题 #64

Closed
ppyJacK opened this issue Apr 14, 2018 · 0 comments
Closed

跑RNN2的代码的时候有问题 #64

ppyJacK opened this issue Apr 14, 2018 · 0 comments

Comments

@ppyJacK
Copy link

ppyJacK commented Apr 14, 2018

按着示例代码打的,但是在调用计算误差调用softmax_cross_entropy_with_logits()函数的时候传入的参数shape不一样会报错,pred的shape是[128,10],但是y的shape是[1,10],第一个维度的形状不一样啊。。。

附报错提醒 ValueError : Dimension 0 in both shapes must be equal, but are 128 and 1. Shapes are [128,10] and [1,10]. for 'softmax_cross_entropy_with_logits_sg' (op: 'SoftmaxCrossEntropyWithLogits') with input shapes: [128,10], [1,10].

@ppyJacK ppyJacK closed this as completed Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant