@@ -62,7 +62,7 @@ struct NumpyInsertParam : public dmlc::Parameter<NumpyInsertParam> {
62
62
" 'values' is inserted" );
63
63
DMLC_DECLARE_FIELD (axis)
64
64
.set_default (dmlc::optional<int >())
65
- .describe (" Axis along which to insert ` values` ." );
65
+ .describe (" Axis along which to insert ' values' ." );
66
66
}
67
67
};
68
68
@@ -187,26 +187,6 @@ struct InsertSingleIndexForward {
187
187
}
188
188
};
189
189
190
- template <int ndim>
191
- inline mshadow::Shape<ndim> GetStride (const mxnet::TShape& shape) {
192
- mshadow::Shape<ndim>stride;
193
- size_t tmp = 1 ;
194
- for (int i = shape.ndim () - 1 ; i >= 0 ; --i) {
195
- stride[i] = tmp;
196
- tmp *= shape[i];
197
- }
198
- return stride;
199
- }
200
-
201
- template <int ndim>
202
- inline mshadow::Shape<ndim> GetKernelShape (const mxnet::TShape& shape) {
203
- mshadow::Shape<ndim>k_shape;
204
- for (int i = 0 ; i < shape.ndim () ; ++i) {
205
- k_shape[i] = shape[i];
206
- }
207
- return k_shape;
208
- }
209
-
210
190
/* !
211
191
* \brief insert when obj is 'tensor' or 'slice' with more than one element.
212
192
* \tparam ndim - both 'in_arr', 'in_val' and 'out_data' have same ndim before call this.
@@ -354,7 +334,7 @@ struct SetOriginArrIdx {
354
334
* /return step - slice.indices(range).step
355
335
* /return tot - total number of slice.indices(range)
356
336
*/
357
- inline void SliceIndices (const dmlc::optional<int >& pstart,
337
+ void SliceIndices (const dmlc::optional<int >& pstart,
358
338
const dmlc::optional<int >& pstop,
359
339
const dmlc::optional<int >& pstep,
360
340
const int range,
@@ -555,7 +535,7 @@ void NumpyInsertCompute(const nnvm::NodeAttrs& attrs,
555
535
axis, true , req[out_pos]);
556
536
});
557
537
});
558
- } else if (indices_len == 1 ) {`
538
+ } else if (indices_len == 1 ) {
559
539
if (param.step .has_value ()) {
560
540
MSHADOW_TYPE_SWITCH (outputs[out_pos].type_flag_ , DType, {
561
541
MSHADOW_TYPE_SWITCH (vtype, VType, {
0 commit comments