Skip to content

something wrong in tutorial_word2vec_basic.py #476

@liudragonfly

Description

@liudragonfly

self.all_params = [embeddings, nce_weights, nce_biases]

The shape of nce_biases is different from the shape of nce_weights.
As a result, tl.files.save_npz(emb_net.all_params...) throws ValueError.

ValueError: could not broadcast input array from shape(vocabulary_size, embedding_size) into shape(vocabulary_size)

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