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

TypeError: pred must not be a Python bool #36

Open
sachinjm opened this issue Apr 27, 2017 · 1 comment
Open

TypeError: pred must not be a Python bool #36

sachinjm opened this issue Apr 27, 2017 · 1 comment

Comments

@sachinjm
Copy link

sachinjm commented Apr 27, 2017

I am getting TypeError: pred must not be a Python bool

in the line lambda: (ema_mean, ema_var)) in batch_norm function.

Looking forward for the help

Above error is while using tf.nn.conv2d_transpose and then batch norm

@fengredrum
Copy link

fengredrum commented Mar 6, 2018

Just using tf.constant(False, dtype=tf.bool) replace the Python bool ('False' or 'True'), it'll work. @sachinjm

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

2 participants