Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with "from flsim.utils.example_utils import DataLoader, DataProvider" #56

Open
minhquang20VU opened this issue Jul 27, 2023 · 1 comment

Comments

@minhquang20VU
Copy link

🐛 Bug

ValueError: mutable default <class 'flsim.utils.timing.training_duration_distribution.PerExampleGaussianDurationDistributionConfig'> for field duration_distribution_generator is not allowed: use default_factory

This error comes from the line: "from flsim.utils.example_utils import DataLoader, DataProvider"

To Reproduce

⚠️ We cannot help you without you sharing reproducible code. Do not ignore this part :)
Steps to reproduce the behavior:

I try to run the tutorials and examples provided in the codebase but this problem persists.

Expected behavior

Environment

Please copy and paste the output from our
environment collection script
(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
  • PyTorch Version (e.g., 1.0):
  • OS (e.g., Linux):
  • How you installed PyTorch (conda, pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information:

Additional context

@menglutao
Copy link

menglutao commented Nov 8, 2023

Hi @minhquang20VU Did u fix this? Or can u share the complete error message, it's hard to debug based on only this message. But it's something related @DataClass and default, here is a stackoverflow post fyi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants