@@ -925,11 +925,22 @@ def efficientnet_v2_s(
925
925
) -> EfficientNet :
926
926
"""
927
927
Constructs an EfficientNetV2-S architecture from
928
- `" EfficientNetV2: Smaller Models and Faster Training" <https://arxiv.org/abs/2104.00298>`_.
928
+ `EfficientNetV2: Smaller Models and Faster Training <https://arxiv.org/abs/2104.00298>`_.
929
929
930
930
Args:
931
- weights (EfficientNet_V2_S_Weights, optional): The pretrained weights for the model
932
- progress (bool): If True, displays a progress bar of the download to stderr
931
+ weights (:class:`~torchvision.models.EfficientNet_V2_S_Weights`, optional): The
932
+ pretrained weights to use. See
933
+ :class:`~torchvision.models.EfficientNet_V2_S_Weights` below for
934
+ more details, and possible values. By default, no pre-trained
935
+ weights are used.
936
+ progress (bool, optional): If True, displays a progress bar of the
937
+ download to stderr. Default is True.
938
+ **kwargs: parameters passed to the ``torchvision.models.efficientnet.EfficientNet``
939
+ base class. Please refer to the `source code
940
+ <https://github.com/pytorch/vision/blob/main/torchvision/models/efficientnet.py>`_
941
+ for more details about this class.
942
+ .. autoclass:: torchvision.models.EfficientNet_V2_S_Weights
943
+ :members:
933
944
"""
934
945
weights = EfficientNet_V2_S_Weights .verify (weights )
935
946
@@ -951,11 +962,22 @@ def efficientnet_v2_m(
951
962
) -> EfficientNet :
952
963
"""
953
964
Constructs an EfficientNetV2-M architecture from
954
- `" EfficientNetV2: Smaller Models and Faster Training" <https://arxiv.org/abs/2104.00298>`_.
965
+ `EfficientNetV2: Smaller Models and Faster Training <https://arxiv.org/abs/2104.00298>`_.
955
966
956
967
Args:
957
- weights (EfficientNet_V2_M_Weights, optional): The pretrained weights for the model
958
- progress (bool): If True, displays a progress bar of the download to stderr
968
+ weights (:class:`~torchvision.models.EfficientNet_V2_M_Weights`, optional): The
969
+ pretrained weights to use. See
970
+ :class:`~torchvision.models.EfficientNet_V2_M_Weights` below for
971
+ more details, and possible values. By default, no pre-trained
972
+ weights are used.
973
+ progress (bool, optional): If True, displays a progress bar of the
974
+ download to stderr. Default is True.
975
+ **kwargs: parameters passed to the ``torchvision.models.efficientnet.EfficientNet``
976
+ base class. Please refer to the `source code
977
+ <https://github.com/pytorch/vision/blob/main/torchvision/models/efficientnet.py>`_
978
+ for more details about this class.
979
+ .. autoclass:: torchvision.models.EfficientNet_V2_M_Weights
980
+ :members:
959
981
"""
960
982
weights = EfficientNet_V2_M_Weights .verify (weights )
961
983
@@ -977,11 +999,22 @@ def efficientnet_v2_l(
977
999
) -> EfficientNet :
978
1000
"""
979
1001
Constructs an EfficientNetV2-L architecture from
980
- `" EfficientNetV2: Smaller Models and Faster Training" <https://arxiv.org/abs/2104.00298>`_.
1002
+ `EfficientNetV2: Smaller Models and Faster Training <https://arxiv.org/abs/2104.00298>`_.
981
1003
982
1004
Args:
983
- weights (EfficientNet_V2_L_Weights, optional): The pretrained weights for the model
984
- progress (bool): If True, displays a progress bar of the download to stderr
1005
+ weights (:class:`~torchvision.models.EfficientNet_V2_L_Weights`, optional): The
1006
+ pretrained weights to use. See
1007
+ :class:`~torchvision.models.EfficientNet_V2_L_Weights` below for
1008
+ more details, and possible values. By default, no pre-trained
1009
+ weights are used.
1010
+ progress (bool, optional): If True, displays a progress bar of the
1011
+ download to stderr. Default is True.
1012
+ **kwargs: parameters passed to the ``torchvision.models.efficientnet.EfficientNet``
1013
+ base class. Please refer to the `source code
1014
+ <https://github.com/pytorch/vision/blob/main/torchvision/models/efficientnet.py>`_
1015
+ for more details about this class.
1016
+ .. autoclass:: torchvision.models.EfficientNet_V2_L_Weights
1017
+ :members:
985
1018
"""
986
1019
weights = EfficientNet_V2_L_Weights .verify (weights )
987
1020
0 commit comments