You might be running into this error if stale forward activations are used during a backward call.
backward