piiswrong closed pull request #9687: Fix warning in sequence_last-inl.h
URL: https://github.com/apache/incubator-mxnet/pull/9687
 
 
   

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/optimizer_op-inl.h b/src/operator/optimizer_op-inl.h
index 60981aa6d2..89d27e17ec 100644
--- a/src/operator/optimizer_op-inl.h
+++ b/src/operator/optimizer_op-inl.h
@@ -917,7 +917,6 @@ inline void AdamStdUpdateRspRspRspImpl(const AdamParam& 
param,
   using namespace mxnet_op;
   using namespace rowsparse;
   CHECK_RSP_ALL_ROWS_NON_ZERO(weight, "AdamStdUpdate", "weights");
-  mshadow::Stream<xpu>* s = ctx.get_stream<xpu>();
   TBlob out_blob = out->data();
   // reuse dns rsp implementation when storage_shape == shape
   AdamStdUpdateDnsRspDnsImpl<xpu>(param, ctx, weight.data(), grad, mean.data(),
diff --git a/src/operator/sequence_last-inl.h b/src/operator/sequence_last-inl.h
index 07c4709baf..58562862a4 100644
--- a/src/operator/sequence_last-inl.h
+++ b/src/operator/sequence_last-inl.h
@@ -198,7 +198,6 @@ class SequenceLastOp : public Operator {
     auto dsize = in_data[seq_last::kData].Size();
 
     auto batch = (axis != 0) ? d0 : d1;
-    auto max_seq_len = in_data[seq_last::kData].size(axis);
     auto rest_size = dsize / (d0 * d1);
 
     Tensor<xpu, 3, DType> data_grad =


 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to