So while training a model at the nth iteration of the first epoch this error occurs. Any idea what it might be?
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File “/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py”, line 287, in _worker_loop
data = fetcher.fetch(index)
File “/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py”, line 52, in fetch
return self.collate_fn(data)
File “/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/collate.py”, line 157, in default_collate
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File “/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/collate.py”, line 157, in
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File “/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/collate.py”, line 138, in default_collate
return torch.stack(batch, 0, out=out)
RuntimeError: result type Double can’t be cast to the desired output type Byte