RuntimeError: assigned grad has data of a different size

There was a similar issue here too, but I am having trouble understanding this