hzfan commented on a change in pull request #18263:
URL: https://github.com/apache/incubator-mxnet/pull/18263#discussion_r422347011



##########
File path: src/api/operator/numpy/np_matrix_op.cc
##########
@@ -470,4 +470,66 @@ MXNET_REGISTER_API("_npi.diag_indices_from")
   *ret = ndoutputs[0];
 });
 
+MXNET_REGISTER_API("_npi.repeat")
+.set_body([](runtime::MXNetArgs args, runtime::MXNetRetValue* ret) {
+  using namespace runtime;
+  const nnvm::Op* op = Op::Get("_npi_repeat");
+  nnvm::NodeAttrs attrs;
+  op::RepeatParam param;
+  param.repeats = args[1].operator int();

Review comment:
       So `_npi_repeat` itself does not support `repeats` when it is array of 
ints, right?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to