Skip to content

Error in validation and testing #28

@omidvaramin

Description

@omidvaramin

Hi, when I want to run either validation or testing phase, there is an error in the advance function of beamsearch as below:

self.hid_h = h[beams_order] #(beam, n_hid); sorted
IndexError: tensors used as indices must be long, byte or bool tensors

the output for beams_order is tensor([0.0557, 0.0172, 0.0002, 0.0270], device='cuda:0')

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