transformers
9f583b1b - Improve BatchFeature (.to() works on lists/nested lists of tensors, auto-skip non array conversion) (#42884)

Commit
156 days ago
Improve BatchFeature (.to() works on lists/nested lists of tensors, auto-skip non array conversion) (#42884) * improve .to() to work on lists or nested lists of tensors, automatically skip converting non array structure * consider empty list or nested list as array-like
Author
Parents
Loading