Update `ToDtype` to avoid unnecessary `to()` calls and fixing types on `Transform` (#6773)
* Fix `ToDtype` to avoid errors when a type is not defined. * Nit `(features.is_simple_tensor, features._Feature)` to `(Tensor,)` * Fixing linter * Adding comment. * Switch back to indexing. Python's default dict seems to have a nasty behaviour.
Showing
Please register or sign in to comment