Unverified Commit 461b034c authored by Yulv-git's avatar Yulv-git Committed by GitHub
Browse files

Fix typos. (#5796)

* Update _register_onnx_ops.py

* Update misc.py
parent f5afae50
...@@ -38,7 +38,7 @@ def _register_custom_op(): ...@@ -38,7 +38,7 @@ def _register_custom_op():
# ONNX doesn't support negative sampling_ratio # ONNX doesn't support negative sampling_ratio
if sampling_ratio < 0: if sampling_ratio < 0:
warnings.warn( 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 sampling_ratio = 0
return g.op( return g.op(
......
...@@ -219,7 +219,7 @@ class Conv3dNormActivation(ConvNormActivation): ...@@ -219,7 +219,7 @@ class Conv3dNormActivation(ConvNormActivation):
class SqueezeExcitation(torch.nn.Module): class SqueezeExcitation(torch.nn.Module):
""" """
This block implements the Squeeze-and-Excitation block from https://arxiv.org/abs/1709.01507 (see Fig. 1). 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: Args:
input_channels (int): Number of channels in the input image input_channels (int): Number of channels in the input image
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment