You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/05/08 20:17:32 UTC
[GitHub] [incubator-mxnet] hzfan commented on a change in pull request #18263: [Numpy] New FFIs for Operator: squeeze, repeat, around, round, diagflat
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:
users@infra.apache.org