Skip to content

Problem encountered in train.py #4

@MUrielleMU

Description

@MUrielleMU

Excuse me, I met this problem running train.py.
Could you plz tell me if I did anything wrong?
I really appreciate your reply :)

File "../aspect_category_model/bert_capsnet.py", line 65, in forward
sentence_mask = segment_mask & (1 - bert_segment).byte()
RuntimeError: result type Byte can't be cast to the desired output type Bool

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