Files
HuggingFace_transformer/tests/models
cyyever 786d9c5ed9 Fix more inefficient PT operations (#37060)
* Fix inefficient operations

* Remove cpu() call

* Reorder detach()

* Reorder detach()

* tolist without detach

* item without detach

* Update src/transformers/models/rag/modeling_rag.py

Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>

* Update tests/models/encodec/test_modeling_encodec.py

Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>

* Use detach().cpu().numpy

* Revert some numpy operations

* More fixes

---------

Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>
2025-03-31 16:31:24 +01:00
..
2025-03-18 23:39:50 +01:00
2025-03-17 14:56:18 +01:00
2025-03-05 15:04:06 -08:00
2025-03-05 15:04:06 -08:00
2025-02-14 15:23:49 +01:00
2025-03-25 16:00:11 +01:00
2025-03-25 16:00:11 +01:00
2025-02-20 15:00:26 +01:00
2025-03-05 15:04:06 -08:00
2025-03-05 15:04:06 -08:00
2025-03-24 14:08:29 +00:00
2025-03-05 15:04:06 -08:00
2025-03-05 15:04:06 -08:00
2025-03-05 15:04:06 -08:00
2025-03-24 14:08:29 +00:00
2025-03-24 14:08:29 +00:00
2025-03-25 10:46:38 +01:00
2025-03-18 12:04:42 +01:00
2025-03-05 15:04:06 -08:00
2025-03-05 15:04:06 -08:00
2025-03-05 15:04:06 -08:00
2025-03-24 14:08:29 +00:00
2025-03-05 15:04:06 -08:00
2025-02-13 10:28:37 +00:00
2022-05-03 14:42:02 +02:00