Skip to content

Data loader will affect the random mechanism even with fixed seed #36998

@zhujiangang

Description

@zhujiangang

🐛 Bug

Data loader will affect the random mechanism even with fixed seed, which will make the code unable to reproduce the results.

To Reproduce

Steps to reproduce the behavior:

  1. Create a training data loader A
  2. Train a pytorch model with the training data loader and monitor the loss
  3. Create another data loader B, but don't use it in the training process. Rerun the training code with data loader A, and monitor the loss. The loss will be different with Step 2.

It is a little bit wierd to me, I don't know whether it is a bug or just by design.

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