mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
TF SAM memory reduction (#23732)
* Extremely small change to TF SAM dummies to reduce memory usage on build * remove debug breakpoint * Debug print statement to track array sizes * More debug shape printing * More debug shape printing * Now remove the debug shape printing * make fixup * make fixup
This commit is contained in:
parent
28aa438cd2
commit
d2d8822604
@ -1155,7 +1155,7 @@ class TFSamPreTrainedModel(TFPreTrainedModel):
|
||||
"""
|
||||
VISION_DUMMY_INPUTS = tf.random.uniform(
|
||||
shape=(
|
||||
3,
|
||||
1,
|
||||
self.config.vision_config.num_channels,
|
||||
self.config.vision_config.image_size,
|
||||
self.config.vision_config.image_size,
|
||||
|
Loading…
Reference in New Issue
Block a user