AttributeError: 'NoneType' object has no attribute 'shape'

Can anyone help me to fix this error?

Hi there, can you specify which assignment is this?

Try restarting the kernel, then run all of the cells in the entire notebook again.