tensorflow_tutorials icon indicating copy to clipboard operation
tensorflow_tutorials copied to clipboard

TypeError: pred must not be a Python bool

Open sachinjm opened this issue 7 years ago • 1 comments

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

sachinjm avatar Apr 27 '17 06:04 sachinjm

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

fengredrum avatar Mar 06 '18 12:03 fengredrum