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

Commit

Permalink
Fix unused type warning (#8316)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolivier01 authored and Olivier committed Oct 18, 2017
1 parent cab51bf commit 4f2af2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/operator/tensor/init_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,9 @@ inline bool RangeShape(const nnvm::NodeAttrs& attrs,
<< "Invalid range (start, stop, step)= "
<< "(" << param.start << "," << param.stop.value() << "," << param.step << ")";
}
MSHADOW_TYPE_SWITCH(param.dtype, DType, {
double out_size = std::ceil((param.stop.value() - param.start) / param.step)
* param.repeat;
SHAPE_ASSIGN_CHECK(*out_attrs, 0, TShape({static_cast<nnvm::dim_t>(out_size)}));
});
const double out_size = std::ceil((param.stop.value() - param.start) / param.step)
* param.repeat;
SHAPE_ASSIGN_CHECK(*out_attrs, 0, TShape({static_cast<nnvm::dim_t>(out_size)}));
return true;
}

Expand Down

0 comments on commit 4f2af2d

Please sign in to comment.