From d98649c0d5e8f314dbcede51723bed51207584aa Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Thu, 8 Nov 2018 16:28:02 -0800 Subject: [PATCH 1/2] Fix Sphinx python docstring formatting error (#13021). Fixes #13021 --- src/operator/nn/batch_norm.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/operator/nn/batch_norm.cc b/src/operator/nn/batch_norm.cc index be542ba5b6be..00cf5e9ccd30 100644 --- a/src/operator/nn/batch_norm.cc +++ b/src/operator/nn/batch_norm.cc @@ -567,10 +567,9 @@ axis to be the last item in the input shape. Both ``gamma`` and ``beta`` are learnable parameters. But if ``fix_gamma`` is true, then set ``gamma`` to 1 and its gradient to 0. -Note:: - -When fix_gamma is set to True, no sparse support is provided. If fix_gamma is set to False, -the sparse tensors will fallback. +.. Note:: + When fix_gamma is set to True, no sparse support is provided. If fix_gamma is set to False, + the sparse tensors will fallback. )code" ADD_FILELINE) .set_num_inputs(5) From f5066a114194971a75aeae2196b95b75bb6064fb Mon Sep 17 00:00:00 2001 From: Aaron Markham Date: Tue, 13 Nov 2018 12:52:29 -0800 Subject: [PATCH 2/2] Update src/operator/nn/batch_norm.cc Co-Authored-By: frankfliu --- src/operator/nn/batch_norm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operator/nn/batch_norm.cc b/src/operator/nn/batch_norm.cc index 00cf5e9ccd30..6254a1e18662 100644 --- a/src/operator/nn/batch_norm.cc +++ b/src/operator/nn/batch_norm.cc @@ -568,7 +568,7 @@ Both ``gamma`` and ``beta`` are learnable parameters. But if ``fix_gamma`` is tr then set ``gamma`` to 1 and its gradient to 0. .. Note:: - When fix_gamma is set to True, no sparse support is provided. If fix_gamma is set to False, + When ``fix_gamma`` is set to True, no sparse support is provided. If ``fix_gamma is`` set to False, the sparse tensors will fallback. )code" ADD_FILELINE)