@@ -87,11 +87,11 @@ def test_interval_param_scaler_raises(interval_param_scaler):
8787 with pytest .raises (ValueError , match = "train_loss must be a scalar" ):
8888 scaler (1.0 , th .Tensor ([1.0 , 2.0 ]), 1.0 )
8989 with pytest .raises (ValueError , match = "train_loss must be a scalar" ):
90- scaler (1.0 , "random value" , th .tensor (1.0 )) # type: ignore
90+ scaler (1.0 , "random value" , th .tensor (1.0 ))
9191 with pytest .raises (ValueError , match = "val_loss must be a scalar" ):
92- scaler (1.0 , 1.0 , "random value" ) # type: ignore
92+ scaler (1.0 , 1.0 , "random value" )
9393 with pytest .raises (ValueError , match = "lambda_ must be a float" ):
94- scaler (th .tensor (1.0 ), 1.0 , 1.0 ) # type: ignore
94+ scaler (th .tensor (1.0 ), 1.0 , 1.0 )
9595 with pytest .raises (ValueError , match = "lambda_ must not be zero.*" ):
9696 scaler (0.0 , 1.0 , 1.0 )
9797 with pytest .raises (ValueError , match = "lambda_ must be non-negative.*" ):
@@ -131,12 +131,12 @@ def test_interval_param_scaler_init_raises():
131131 ValueError ,
132132 match = "tolerable_interval must be a tuple of length 2" ,
133133 ):
134- updaters .IntervalParamScaler (0.5 , (0.1 , 0.9 , 0.5 )) # type: ignore
134+ updaters .IntervalParamScaler (0.5 , (0.1 , 0.9 , 0.5 ))
135135 with pytest .raises (
136136 ValueError ,
137137 match = "tolerable_interval must be a tuple of length 2" ,
138138 ):
139- updaters .IntervalParamScaler (0.5 , (0.1 ,)) # type: ignore
139+ updaters .IntervalParamScaler (0.5 , (0.1 ,))
140140
141141 # the first element of the interval must be at least 0.
142142 with pytest .raises (
0 commit comments