@@ -74,105 +74,105 @@ class ActivationOpGrad : public framework::OperatorWithKernel {
74
74
}
75
75
};
76
76
77
- constexpr char SigmoidDoc[] = R"DOC(
77
+ __attribute__ ((unused)) constexpr char SigmoidDoc[] = R"DOC(
78
78
Sigmoid Activation Operator
79
79
80
80
$$out = \frac{1}{1 + e^{-x}}$$
81
81
82
82
)DOC" ;
83
83
84
- constexpr char LogSigmoidDoc[] = R"DOC(
84
+ __attribute__ ((unused)) constexpr char LogSigmoidDoc[] = R"DOC(
85
85
Logsigmoid Activation Operator
86
86
87
87
$$out = \log \frac{1}{1 + e^{-x}}$$
88
88
89
89
)DOC" ;
90
90
91
- constexpr char ExpDoc[] = R"DOC(
91
+ __attribute__ ((unused)) constexpr char ExpDoc[] = R"DOC(
92
92
Exp Activation Operator.
93
93
94
94
$out = e^x$
95
95
96
96
)DOC" ;
97
97
98
- constexpr char ReluDoc[] = R"DOC(
98
+ __attribute__ ((unused)) constexpr char ReluDoc[] = R"DOC(
99
99
Relu Activation Operator.
100
100
101
101
$out = \max(x, 0)$
102
102
103
103
)DOC" ;
104
104
105
- constexpr char TanhDoc[] = R"DOC(
105
+ __attribute__ ((unused)) constexpr char TanhDoc[] = R"DOC(
106
106
Tanh Activation Operator.
107
107
108
108
$$out = \frac{e^{x} - e^{-x}}{e^{x} + e^{-x}}$$
109
109
110
110
)DOC" ;
111
111
112
- constexpr char TanhShrinkDoc[] = R"DOC(
112
+ __attribute__ ((unused)) constexpr char TanhShrinkDoc[] = R"DOC(
113
113
TanhShrink Activation Operator.
114
114
115
115
$$out = x - \frac{e^{x} - e^{-x}}{e^{x} + e^{-x}}$$
116
116
117
117
)DOC" ;
118
118
119
- constexpr char SqrtDoc[] = R"DOC(
119
+ __attribute__ ((unused)) constexpr char SqrtDoc[] = R"DOC(
120
120
Sqrt Activation Operator.
121
121
122
122
$out = \sqrt{x}$
123
123
124
124
)DOC" ;
125
125
126
- constexpr char AbsDoc[] = R"DOC(
126
+ __attribute__ ((unused)) constexpr char AbsDoc[] = R"DOC(
127
127
Abs Activation Operator.
128
128
129
129
$out = |x|$
130
130
131
131
)DOC" ;
132
132
133
- constexpr char CeilDoc[] = R"DOC(
133
+ __attribute__ ((unused)) constexpr char CeilDoc[] = R"DOC(
134
134
Ceil Activation Operator.
135
135
136
136
$out = ceil(x)$
137
137
138
138
)DOC" ;
139
139
140
- constexpr char FloorDoc[] = R"DOC(
140
+ __attribute__ ((unused)) constexpr char FloorDoc[] = R"DOC(
141
141
Floor Activation Operator.
142
142
143
143
$out = floor(x)$
144
144
145
145
)DOC" ;
146
146
147
- constexpr char CosDoc[] = R"DOC(
147
+ __attribute__ ((unused)) constexpr char CosDoc[] = R"DOC(
148
148
Cosine Activation Operator.
149
149
150
150
$out = cos(x)$
151
151
152
152
)DOC" ;
153
153
154
- constexpr char SinDoc[] = R"DOC(
154
+ __attribute__ ((unused)) constexpr char SinDoc[] = R"DOC(
155
155
Sine Activation Operator.
156
156
157
157
$out = sin(x)$
158
158
159
159
)DOC" ;
160
160
161
- constexpr char RoundDoc[] = R"DOC(
161
+ __attribute__ ((unused)) constexpr char RoundDoc[] = R"DOC(
162
162
Round Activation Operator.
163
163
164
164
$out = [x]$
165
165
166
166
)DOC" ;
167
167
168
- constexpr char ReciprocalDoc[] = R"DOC(
168
+ __attribute__ ((unused)) constexpr char ReciprocalDoc[] = R"DOC(
169
169
Reciprocal Activation Operator.
170
170
171
171
$$out = \frac{1}{x}$$
172
172
173
173
)DOC" ;
174
174
175
- constexpr char LogDoc[] = R"DOC(
175
+ __attribute__ ((unused)) constexpr char LogDoc[] = R"DOC(
176
176
Log Activation Operator.
177
177
178
178
$out = \ln(x)$
@@ -181,21 +181,21 @@ Natural logarithm of x.
181
181
182
182
)DOC" ;
183
183
184
- constexpr char SquareDoc[] = R"DOC(
184
+ __attribute__ ((unused)) constexpr char SquareDoc[] = R"DOC(
185
185
Square Activation Operator.
186
186
187
187
$out = x^2$
188
188
189
189
)DOC" ;
190
190
191
- constexpr char SoftplusDoc[] = R"DOC(
191
+ __attribute__ ((unused)) constexpr char SoftplusDoc[] = R"DOC(
192
192
Softplus Activation Operator.
193
193
194
194
$out = \ln(1 + e^{x})$
195
195
196
196
)DOC" ;
197
197
198
- constexpr char SoftsignDoc[] = R"DOC(
198
+ __attribute__ ((unused)) constexpr char SoftsignDoc[] = R"DOC(
199
199
Softsign Activation Operator.
200
200
201
201
$$out = \frac{x}{1 + |x|}$$
0 commit comments