Open hzphzp opened 10 months ago
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Waiting for kindly reply ...
I'm getting the same issue. I'm working with PyTorch Geometric Data objects. According to various other threads I've read, it was supported in the past.
System Info
Information
Tasks
no_trainer
script in theexamples
folder of thetransformers
repo (such asrun_no_trainer_glue.py
)Reproduction
I encountered an issue while using the Accelerate library, as it does not support non-tensor based datasets. For instance, consider the following situation:
In this case, an error occurs:
Can only concatenate tensors but got <class 'str'>
. The problem lies in the following code:raise TypeError(f"Can only concatenate tensors but got {type(data[0])}")
The concat function here can only handle tensor type data, otherwise, it raises an error.
Expected behavior
However, in many practical applications, we often need to work with non-tensor datasets in IO operations. I would like to request support for non-tensor type datasets in Accelerate.