The linked notebook seems to have created a valid output or are you using another version of the notebook?
PS: Don’t manually call model.forward, but instead the model directly via output = model(x), as otherwise e.g. registered hooks won’t be called.