From 518559ed8497e6c8a83a65761f9a35c3c7116639 Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Mon, 11 Mar 2019 18:51:01 +0800 Subject: [PATCH] fix doc. test=develop --- paddle/fluid/operators/temporal_shift_op.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/operators/temporal_shift_op.cc b/paddle/fluid/operators/temporal_shift_op.cc index 769094233..4db178b2d 100644 --- a/paddle/fluid/operators/temporal_shift_op.cc +++ b/paddle/fluid/operators/temporal_shift_op.cc @@ -72,12 +72,12 @@ class TemporalShiftOpMaker : public framework::OpProtoAndCheckerMaker { AddAttr("seg_num", "The temporal segment number, this should be a positive " - "interger."); + "integer."); AddAttr( "shift_ratio", - "The shift ratio of the channels, the first shift ratio part " + "The shift ratio of the channels, the first :attr:`shift_ratio` part " "of channels will be shifted by -1 along the temporal dimension, " - "and the second shift ratio part of channels will be shifted by " + "and the second :attr:`shift_ratio` part of channels will be shifted by " "1 along the temporal dimension. Default 0.25.") .SetDefault(0.25); @@ -88,7 +88,7 @@ class TemporalShiftOpMaker : public framework::OpProtoAndCheckerMaker { size, T is the temporal segment number specified by :attr:`seg_num`, C is the channel number, H and W is the height and width of features. - Temporal Shifting calculates as follows: + Temporal Shifting is calculated as follows: Step 1: Reshape Input(X) to [N, T, C, H, W]. -- GitLab