Skip to content

params error #2

@zhangdan0602

Description

@zhangdan0602

HI, jisu
I find that there are some errors in your code. For example:

the params of nn.Embedding are int, int...But, they are emb,list in the line 228. You can use torch.index_select(tensor, dim, ...) instead of tf.nn.embedding_lookup.
the second param of torch.split() should be the dim that tensor is splited, rather than the num of split.

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