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

Error in val_loop #22

Open
AndreaBrg opened this issue Apr 26, 2024 · 0 comments
Open

Error in val_loop #22

AndreaBrg opened this issue Apr 26, 2024 · 0 comments

Comments

@AndreaBrg
Copy link

Hi, I'm encountering the following error in val_loop:

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/dist-packages/ffcv/loader/epoch_iterator.py", line 84, in run
    result = self.run_pipeline(b_ix, ixes, slot, events[slot])
  File "/usr/local/lib/python3.10/dist-packages/ffcv/loader/epoch_iterator.py", line 146, in run_pipeline
    results = stage_code(**args)
  File "", line 2, in stage_code_1
  File "/usr/local/lib/python3.10/dist-packages/ffcv/transforms/ops.py", line 56, in to_device
    dst.copy_(inp, non_blocking=self.non_blocking)
RuntimeError: Inplace update to inference tensor outside InferenceMode is not allowed.You can make a clone to get a normal tensor before doing inplace update.See https://github.com/pytorch/rfcs/pull/17 for more details.

The training loop, works fine.

Any idea of the causes and how to solve it?

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

1 participant