Skip to content

Commit

Permalink
Enable multi-device for efficientnet (#29989)
Browse files Browse the repository at this point in the history
feat: enable mult-idevice for efficientnet
  • Loading branch information
jla524 authored and ArthurZucker committed Apr 22, 2024
1 parent 91291b5 commit b9a19a6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ class EfficientNetPreTrainedModel(PreTrainedModel):
config_class = EfficientNetConfig
base_model_prefix = "efficientnet"
main_input_name = "pixel_values"
_no_split_modules = []

def _init_weights(self, module):
"""Initialize the weights"""
Expand Down

0 comments on commit b9a19a6

Please sign in to comment.