diff --git a/torchvision/ops/_register_onnx_ops.py b/torchvision/ops/_register_onnx_ops.py index b3fac19cbf6..629c19c1646 100644 --- a/torchvision/ops/_register_onnx_ops.py +++ b/torchvision/ops/_register_onnx_ops.py @@ -38,7 +38,7 @@ def roi_align(g, input, rois, spatial_scale, pooled_height, pooled_width, sampli # ONNX doesn't support negative sampling_ratio if sampling_ratio < 0: warnings.warn( - "ONNX doesn't support negative sampling ratio, therefore is is set to 0 in order to be exported." + "ONNX doesn't support negative sampling ratio, therefore is set to 0 in order to be exported." ) sampling_ratio = 0 return g.op( diff --git a/torchvision/ops/misc.py b/torchvision/ops/misc.py index d4065172ea0..a4635099215 100644 --- a/torchvision/ops/misc.py +++ b/torchvision/ops/misc.py @@ -219,7 +219,7 @@ def __init__( class SqueezeExcitation(torch.nn.Module): """ This block implements the Squeeze-and-Excitation block from https://arxiv.org/abs/1709.01507 (see Fig. 1). - Parameters ``activation``, and ``scale_activation`` correspond to ``delta`` and ``sigma`` in in eq. 3. + Parameters ``activation``, and ``scale_activation`` correspond to ``delta`` and ``sigma`` in eq. 3. Args: input_channels (int): Number of channels in the input image