eric-haibin-lin closed pull request #9432: Fix warnings on unused variables
URL: https://github.com/apache/incubator-mxnet/pull/9432
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/operator/contrib/bounding_box-inl.h
b/src/operator/contrib/bounding_box-inl.h
index 24ee8e78ea..40dbdd8166 100644
--- a/src/operator/contrib/bounding_box-inl.h
+++ b/src/operator/contrib/bounding_box-inl.h
@@ -437,7 +437,6 @@ void BoxNMSBackward(const nnvm::NodeAttrs& attrs,
using namespace mxnet_op;
CHECK_EQ(inputs.size(), 4U);
CHECK_EQ(outputs.size(), 1U);
- const BoxNMSParam& param = nnvm::get<BoxNMSParam>(attrs.parsed);
Stream<xpu> *s = ctx.get_stream<xpu>();
TShape in_shape = outputs[box_nms_enum::kData].shape_;
int indim = in_shape.ndim();
@@ -473,7 +472,6 @@ struct BoxOverlapParam : public
dmlc::Parameter<BoxOverlapParam> {
inline bool BoxOverlapShape(const nnvm::NodeAttrs& attrs,
std::vector<TShape> *in_attrs,
std::vector<TShape> *out_attrs) {
- // const BoxOverlapParam& param = nnvm::get<BoxOverlapParam>(attrs.parsed);
CHECK_EQ(in_attrs->size(), 2U);
CHECK_EQ(out_attrs->size(), 1U);
TShape& lshape = (*in_attrs)[0];
diff --git a/src/operator/optimizer_op-inl.h b/src/operator/optimizer_op-inl.h
index c2564db0f0..5c3cab95ca 100644
--- a/src/operator/optimizer_op-inl.h
+++ b/src/operator/optimizer_op-inl.h
@@ -557,7 +557,6 @@ inline void SGDMomStdUpdateRspRspDnsImpl(const SGDMomParam&
param,
using namespace mxnet_op;
using namespace rowsparse;
CHECK_RSP_ALL_ROWS_NON_ZERO(weight, "SGDMomUpdate", "weights");
- Stream<xpu>* s = ctx.get_stream<xpu>();
TBlob out_blob = out->data();
SGDMomStdUpdateDnsRspDnsImpl<xpu>(param, ctx, weight.data(), grad,
mom.data(), req, &out_blob);
@@ -574,8 +573,6 @@ inline void SGDMomUpdateEx(const nnvm::NodeAttrs& attrs,
auto &weight = inputs[0];
auto &grad = inputs[1];
auto &mom = inputs[2];
- const auto weight_stype = weight.storage_type();
- const auto mom_stype = mom.storage_type();
const auto out_stype = outputs[0].storage_type();
NDArray out = outputs[0];
if (common::ContainsOnlyStorage(inputs, kRowSparseStorage) &&
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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