transformers
0f08cd20 - Smarter check for `is_tensor` (#25871)

Commit
2 years ago
Smarter check for `is_tensor` (#25871) * Smarter check for * Use protected functions * Do others too * Apply suggestions from code review Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com> * Address review comments --------- Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
Author
Parents
Loading