Yih-Dar
8f2cc1c3ab
Add TFCLIPModel (#13967)
* Start the work for TFCLIPModel
* Convert to TF code (TODO: loss + doc)
* Clean up
* Fix pooled_output for TFCLIPTextTransformer - using tf.gather_nd
* assert -> raise error
* Expose TFCLIPModel
* Deal with dummy_inputs
* Add tests
* Fix all tests. TODO: manual check weight loading + add more comments
* Fix pt tf equivalence test
* fixes
* update TFCLIPVisionEmbeddings's Conv2D
* Fix loss + overwrite test_pt_tf_model_equivalence from common
* Add a comment about the change about MainLayer in test_keras_save_load
* Set return_loss=True in TFCLIPModelTester + make tests pass
* overwrite test_pt_tf_model_equivalence from tf common
* fix base_model_prefix
* Fix examples
* remove unused
* Apply suggestions from code review
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* apply review suggestions
* change self.pre_layrnorm to self.pre_layernorm
* apply more review suggestions
* return attention probs before dropout (to align with PT)
* fix weight init
* fix
* build doc
* fix missing doc
* fix for test
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2021-12-23 11:19:44 -05:00
..
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-23 11:19:44 -05:00
2021-12-10 15:31:43 -05:00
2021-12-22 06:35:59 -05:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-20 09:08:05 -05:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2020-06-17 14:01:10 -04:00
2021-12-22 16:14:35 -05:00
2021-12-09 12:00:06 -05:00
2021-12-21 09:55:25 -08:00
2020-05-27 11:36:55 -04:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-23 11:19:44 -05:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-09 12:00:06 -05:00
2020-04-06 14:32:39 -04:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-16 04:42:02 -05:00
2021-12-22 16:14:35 -05:00
2021-12-22 16:14:35 -05:00
2021-12-09 12:00:06 -05:00
2021-12-13 10:31:11 -05:00
2021-12-22 16:14:35 -05:00
2021-12-23 13:35:56 +01:00
2021-12-09 12:00:06 -05:00
2021-12-21 09:55:25 -08:00
2021-12-09 12:00:06 -05:00
2021-12-09 12:00:06 -05:00
2021-12-22 16:14:35 -05:00