未验证 提交 9e917a1e 编写于 作者: N Nyakku Shigure 提交者: GitHub

[CodeStyle] remove tabs in cpp files (#46236)

* [CodeStyle] remove tabs in cpp files

* update comment format
上级 669c7d51
...@@ -90,7 +90,7 @@ class DequeueOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -90,7 +90,7 @@ class DequeueOpMaker : public framework::OpProtoAndCheckerMaker {
AddOutput("Out", "A list of `lod_tensor` to dequeue and assigned.") AddOutput("Out", "A list of `lod_tensor` to dequeue and assigned.")
.AsDuplicable(); .AsDuplicable();
AddComment(R"DOC( AddComment(R"DOC(
Dequeue operator. Dequeue operator.
)DOC"); )DOC");
} }
}; };
......
...@@ -78,7 +78,7 @@ class EnqueueOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -78,7 +78,7 @@ class EnqueueOpMaker : public framework::OpProtoAndCheckerMaker {
AddAttr<std::string>("queue_name", AddAttr<std::string>("queue_name",
"Name of the `LoDTensorBlockingQueueHolder` variable"); "Name of the `LoDTensorBlockingQueueHolder` variable");
AddComment(R"DOC( AddComment(R"DOC(
Enqueue operator. Enqueue operator.
)DOC"); )DOC");
} }
}; };
......
...@@ -52,19 +52,18 @@ class PixelShuffleOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -52,19 +52,18 @@ class PixelShuffleOpMaker : public framework::OpProtoAndCheckerMaker {
.SetDefault("NCHW"); .SetDefault("NCHW");
AddComment(R"DOC( AddComment(R"DOC(
Pixel Shuffle operator Pixel Shuffle operator
This operator rearranges elements in a tensor of shape :math:`(*, C \times r^2, H, W)` This operator rearranges elements in a tensor of shape :math:`(*, C \times r^2, H, W)`
to a tensor of shape :math:`(C, H \times r, W \times r)`. to a tensor of shape :math:`(C, H \times r, W \times r)`.
This is useful for implementing efficient sub-pixel convolution This is useful for implementing efficient sub-pixel convolution
with a stride of :math:`1/r`. with a stride of :math:`1/r`.
Please refer to the paper: Please refer to the paper:
`Real-Time Single Image and Video Super-Resolution Using an Efficient `Real-Time Single Image and Video Super-Resolution Using an Efficient
Sub-Pixel Convolutional Neural Network <https://arxiv.org/abs/1609.05158v2>`_ Sub-Pixel Convolutional Neural Network <https://arxiv.org/abs/1609.05158v2>`_
by Shi et. al (2016) for more details. by Shi et. al (2016) for more details.
)DOC");
)DOC");
} }
}; };
......
...@@ -48,18 +48,17 @@ class PixelUnshuffleOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -48,18 +48,17 @@ class PixelUnshuffleOpMaker : public framework::OpProtoAndCheckerMaker {
.SetDefault("NCHW"); .SetDefault("NCHW");
AddComment(R"DOC( AddComment(R"DOC(
Pixel Unshuffle operator Pixel Unshuffle operator
This operator rearranges elements in a tensor of shape :math:`(*, C, H, W)` This operator rearranges elements in a tensor of shape :math:`(*, C, H, W)`
to a tensor of shape :math:`(*, C\times r^2, H / r, W / r)`. to a tensor of shape :math:`(*, C\times r^2, H / r, W / r)`.
This operation is the reversion of PixelShuffle operation. This operation is the reversion of PixelShuffle operation.
Please refer to the paper: Please refer to the paper:
`Real-Time Single Image and Video Super-Resolution Using an Efficient `Real-Time Single Image and Video Super-Resolution Using an Efficient
Sub-Pixel Convolutional Neural Network <https://arxiv.org/abs/1609.05158v2>`_ Sub-Pixel Convolutional Neural Network <https://arxiv.org/abs/1609.05158v2>`_
by Shi et. al (2016) for more details. by Shi et. al (2016) for more details.
)DOC");
)DOC");
} }
}; };
......
...@@ -87,7 +87,7 @@ class CreateCTRReaderOpMaker : public FileReaderMakerBase { ...@@ -87,7 +87,7 @@ class CreateCTRReaderOpMaker : public FileReaderMakerBase {
"format is svm"); "format is svm");
AddComment(R"DOC( AddComment(R"DOC(
Create CTRReader to support read ctr data with cpp. Create CTRReader to support read ctr data with cpp.
)DOC"); )DOC");
} }
}; };
......
...@@ -70,16 +70,16 @@ class ShuffleChannelOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -70,16 +70,16 @@ class ShuffleChannelOpMaker : public framework::OpProtoAndCheckerMaker {
"group should be larger than 0.")); "group should be larger than 0."));
}); });
AddComment(R"DOC( AddComment(R"DOC(
Shuffle Channel operator Shuffle Channel operator
This opearator shuffles the channels of input x. This opearator shuffles the channels of input x.
It divide the input channels in each group into several subgroups, It divide the input channels in each group into several subgroups,
and obtain a new order by selecting element from every subgroup one by one. and obtain a new order by selecting element from every subgroup one by one.
Shuffle channel operation makes it possible to build more powerful structures Shuffle channel operation makes it possible to build more powerful structures
with multiple group convolutional layers. with multiple group convolutional layers.
please get more information from the following paper: please get more information from the following paper:
https://arxiv.org/pdf/1707.01083.pdf https://arxiv.org/pdf/1707.01083.pdf
)DOC"); )DOC");
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册