Skip to content

How to make the code run on multiple GPUs #9

@NagabhushanSN95

Description

@NagabhushanSN95

By default, the train code runs on only 1 GPU. How can make it run on multiple GPUs?

I tried wrapping the frame_predictor, posterior and prior modules with DataParallel. Then I got the error, No such attribute init_hidden for DataParallel. So, I changed frame_predictor.init_hidden() to frame_predictor.module.init_hidden(). Then I got the error something like, trying to do backward a second time. Graph not saved.

Is it possible to make the code run on multiple GPUs?

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