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

报错了 #2

Open
lhy2749 opened this issue May 3, 2019 · 3 comments
Open

报错了 #2

lhy2749 opened this issue May 3, 2019 · 3 comments

Comments

@lhy2749
Copy link

lhy2749 commented May 3, 2019

TypeError:batch_normalization() missing 5 required positional arguments: 'mean', 'variance', 'offset', 'scale', and 'variance_epsilon'

self.outputs, self.final_state = tf.nn.dynamic_rnn(lstm_cell, embedded, dtype=tf.float32, time_major=False)
self.out = tf.unstack(tf.nn.batch_normalization(self.outputs), axis=1)[-1]
是因为现在的tensorflow方法修改了么···

@vicdu
Copy link

vicdu commented May 11, 2019

@lhy2749 我也有相同的错误,请问你解决了吗

@xuefeng199507
Copy link

@lhy2749 我也有相同的错误,请问你解决了吗

把均值方差自己设一下就好了

@CementMaker
Copy link
Owner

两天之内代码会重新更新和修改,tensorflow很多api更改了,最近考虑更改一下

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

4 participants