This line of code checks the size of the channel dimension, while you input seems to be empty.
Make sure to pass valid inputs to the method, as empty inputs are not supported in this manual batch norm version.