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

Batch Norm layers Assertion Error #191

Open
ahndroo opened this issue Sep 30, 2020 · 0 comments
Open

Batch Norm layers Assertion Error #191

ahndroo opened this issue Sep 30, 2020 · 0 comments

Comments

@ahndroo
Copy link

ahndroo commented Sep 30, 2020

I'm getting an assertion error in tpu_util.py when I use batchnorm layers. I noticed that there are two 'ops' associated with the batchnorm layers:

  • 'model/conv1_bn_td/cond/ReadVariableOp_2'
  • 'model/conv1_bn_td/cond/ReadVariableOp_2/Switch'

The error happens when the following line is run on the ''model/conv1_bn_td/cond/ReadVariableOp_2/Switch' op:
assert len(op.inputs) == 1
There are two items in this inputlist. I can simply comment out this line and everything seems to work, but am I doing anything destructive if I do comment this line out?

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