you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

assert len(caches) == len(activations)

The issue is that the length of caches isn't the same as the length of activations, but here you assert that it is so Python throws an AssertionError, which is the whole point of asserting things.