Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
* Fix tuple of float
Browse files Browse the repository at this point in the history
  • Loading branch information
hanke580 committed Apr 21, 2020
1 parent 7dd1b8f commit 9b68cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/operator/numpy/random/np_multinomial_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ MXNET_REGISTER_API("_npi.multinomial")
if (args[1].type_code() == kNull) {
param.pvals = dmlc::nullopt;
} else {
param.pvals = Tuple<double>(args[1].operator ObjectRef());
param.pvals = Obj2Tuple<double, Float>(args[1].operator ObjectRef());
}

// parse size
if (args[2].type_code() == kNull) {
param.size = dmlc::nullopt;
param.size = dmlc::optional<mxnet::Tuple<int>>();
} else {
if (args[2].type_code() == kDLInt) {
param.size = Tuple<int>(1, args[2].operator int64_t());
Expand Down

0 comments on commit 9b68cb4

Please sign in to comment.