hzfan commented on a change in pull request #17756: [numpy] FFI
random.exponential, logistic, gumbel, rayleigh, weibull, power, pareto
URL: https://github.com/apache/incubator-mxnet/pull/17756#discussion_r391412016
##########
File path: src/operator/numpy/random/np_power_op.h
##########
@@ -52,6 +54,17 @@ struct NumpyPowerParam : public
dmlc::Parameter<NumpyPowerParam> {
.describe("Output shape. If the given shape is, "
"e.g., (m, n, k), then m * n * k samples are drawn. "
"Default is None, in which case a single value is returned.");
+ DMLC_DECLARE_FIELD(ctx).set_default("cpu").describe(
Review comment:
Actually we do not need ctx here.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services