Skip to content

evaluation script runs wrong cuda devise  #1204

@IgorDavidyuk

Description

@IgorDavidyuk

torch.cuda.synchronize()

torch.cuda.synchronize(device=None) takes the cuda device name as a parameter, if nothing is given it uses current_ cuda device which is not always the one intended for use.

Moreover, the evaluation script implies that the model is loaded on the same device that passed as an argument.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions