layer.py: Removed in incorrect assertion.