You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ha...@apache.org on 2018/01/15 19:30:14 UTC
[incubator-mxnet] branch master updated: Fix warnings on unused
variables (#9432)
This is an automated email from the ASF dual-hosted git repository.
haibin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new b623488 Fix warnings on unused variables (#9432)
b623488 is described below
commit b6234886ff6380e13c1ae3b2d30d68612a21bc76
Author: Pedro Larroy <92...@users.noreply.github.com>
AuthorDate: Mon Jan 15 20:30:09 2018 +0100
Fix warnings on unused variables (#9432)
---
src/operator/contrib/bounding_box-inl.h | 2 --
src/operator/optimizer_op-inl.h | 3 ---
2 files changed, 5 deletions(-)
diff --git a/src/operator/contrib/bounding_box-inl.h b/src/operator/contrib/bounding_box-inl.h
index 24ee8e7..40dbdd8 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 c2564db..5c3cab9 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) &&
--
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].