Skip to content

about word_embedding #14

@liyucheng09

Description

@liyucheng09

Source code use nn.Embedding to load pretrained word embedding

nn.Embedding(self.config.data_word_vec.shape[0], self.config.data_word_vec.shape[1])
self.word_embedding.weight.data.copy_(torch.from_numpy(self.config.data_word_vec))

actually optimizer will update both Embedding layer.
Is that a bug or just on propose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions