Files
HuggingFace_transformer/tests
Matt 4354005291 Adding new train_step logic to make things less confusing for users (#15994)
* Adding new train_step logic to make things less confusing for users

* DO NOT ASK WHY WE NEED THAT SUBCLASS

* Metrics now working, at least for single-output models with type annotations!

* Updates and TODOs for the new train_step

* Make fixup

* Temporary test workaround until T5 has types

* Temporary test workaround until T5 has types

* I think this actually works! Needs a lot of tests though

* MAke style/quality

* Revert changes to T5 tests

* Deleting the aforementioned unmentionable subclass

* Deleting the aforementioned unmentionable subclass

* Adding a Keras API test

* Style fixes

* Removing unneeded TODO and comments

* Update test_step too

* Stop trying to compute metrics with the dummy_loss, patch up test

* Make style

* make fixup

* Docstring cleanup

* make fixup

* make fixup

* Stop expanding 1D input tensors when using dummy loss

* Adjust T5 test given the new compile()

* make fixup

* Skipping test for convnext

* Removing old T5-specific Keras test now that we have a common one

* make fixup

* make fixup

* Only skip convnext test on CPU

* Update src/transformers/modeling_tf_utils.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* Update src/transformers/modeling_tf_utils.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* Avoiding TF import issues

* make fixup

* Update compile() to support TF 2.3

* Skipping model.fit() on template classes for now

* Skipping model.fit() on template class tests for now

* Replace ad-hoc solution with find_labels

* make fixup

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2022-04-05 14:23:27 +01:00
..
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-01 11:09:20 +01:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-17 10:53:57 +01:00
2022-03-28 16:28:10 +02:00
2022-03-23 10:26:33 -04:00
2022-01-24 15:25:10 -05:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-04-01 10:52:42 +02:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-24 14:40:05 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-23 10:26:33 -04:00
2022-03-28 16:28:10 +02:00