Skip to content

Codes based on the GCN Predictor in model zoo are not reproducible #212

@WMX567

Description

@WMX567

Hi,

I use the GCN Predictor in this repo

DGL version is 1.0.1
PyTorch version is 1.12.1

I set the random seeds in this way:

random.seed(seed)
np.random.seed(seed)

torch.manual_seed(seed+r)
torch.cuda.manual_seed_all(seed+r)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

dgl.random.seed(seed+r)

Any idea about how to fix the reproducibility? Thanks!

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