Skip to content

Batch Norm layers Assertion Error #191

Open
@ahndroo

Description

@ahndroo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions