Skip to content

about use multi-GPU in 2_train.py #3

@Lingcan-M

Description

@Lingcan-M

I tried to allocate 2 GPUs to 2_train.py, But it did not work.
How should I do?

import os
os.environ["CUDA_VISIBLE_DEVICES"] = '1,2,3'
 model = UnetVggCC()
 model = torch.nn.DataParallel(model)
 model.cuda()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions