Skip to content

unused hidden variables of LSTM on deep_learning_nlp_tutorial.py examples #55

@antran89

Description

@antran89

Hi,

I am just curious about line 1197.

self.hidden = self.init_hidden()

This value has not been used to update parameters of network in the program. But you are saying also, we need to clear out the hidden state of the LSTM, detaching it from its history on the last instance. Is it correct?

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions