@@ -885,7 +885,7 @@ def custom_forward(*inputs):
885
885
886
886
return custom_forward
887
887
888
- ckpt_kwargs : Dict [str , Any ] = {' use_reentrant' : False } if is_torch_version (">=" , "1.11.0" ) else {}
888
+ ckpt_kwargs : Dict [str , Any ] = {" use_reentrant" : False } if is_torch_version (">=" , "1.11.0" ) else {}
889
889
hidden_states = torch .utils .checkpoint .checkpoint (
890
890
create_custom_forward (resnet ),
891
891
hidden_states ,
@@ -1735,7 +1735,7 @@ def custom_forward(*inputs):
1735
1735
1736
1736
return custom_forward
1737
1737
1738
- ckpt_kwargs : Dict [str , Any ] = {' use_reentrant' : False } if is_torch_version (">=" , "1.11.0" ) else {}
1738
+ ckpt_kwargs : Dict [str , Any ] = {" use_reentrant" : False } if is_torch_version (">=" , "1.11.0" ) else {}
1739
1739
hidden_states = torch .utils .checkpoint .checkpoint (
1740
1740
create_custom_forward (resnet ),
1741
1741
hidden_states ,
@@ -1965,7 +1965,7 @@ def custom_forward(*inputs):
1965
1965
1966
1966
return custom_forward
1967
1967
1968
- ckpt_kwargs : Dict [str , Any ] = {' use_reentrant' : False } if is_torch_version (">=" , "1.11.0" ) else {}
1968
+ ckpt_kwargs : Dict [str , Any ] = {" use_reentrant" : False } if is_torch_version (">=" , "1.11.0" ) else {}
1969
1969
hidden_states = torch .utils .checkpoint .checkpoint (
1970
1970
create_custom_forward (resnet ),
1971
1971
hidden_states ,
@@ -2859,7 +2859,7 @@ def custom_forward(*inputs):
2859
2859
2860
2860
return custom_forward
2861
2861
2862
- ckpt_kwargs : Dict [str , Any ] = {' use_reentrant' : False } if is_torch_version (">=" , "1.11.0" ) else {}
2862
+ ckpt_kwargs : Dict [str , Any ] = {" use_reentrant" : False } if is_torch_version (">=" , "1.11.0" ) else {}
2863
2863
hidden_states = torch .utils .checkpoint .checkpoint (
2864
2864
create_custom_forward (resnet ),
2865
2865
hidden_states ,
0 commit comments