transformers/tests/models/sam
Matt 3bd1fe4315
Stop storing references to bound methods via tf.function (#24146)
* Stop storing references to bound methods in tf.functions

* Remove the gc.collect calls now that we resolved the underlying problem

* Remove the default signature from model.serving entirely, big cleanup

* Remove _prune_signature as self.input_signature can prune itself

* Restore serving docstring

* Update int support test to check the input signature

* Make sure other tests also use model.input_signature and not serving.input_signature

* Restore _prune_signature

* Remove the doctest GC now it's no longer needed

* Correct core tests to use the pruned sig

* order lines correctly in core tests

* Add eager_serving back with a deprecation warning
2023-06-13 19:04:22 +01:00
..
__init__.py Add Segment Anything Model (SAM) (#22654) 2023-04-19 21:01:49 +02:00
test_modeling_sam.py [SAM] Fix sam slow test (#24140) 2023-06-09 16:22:09 +02:00
test_modeling_tf_sam.py Stop storing references to bound methods via tf.function (#24146) 2023-06-13 19:04:22 +01:00
test_processor_sam.py TF port of the Segment Anything Model (SAM) (#22970) 2023-05-19 14:14:13 +01:00