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

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Apr 17, 2019
1 parent 9c74556 commit b7ea69e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions include/mxnet/ndarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ class NDArray {
public:
/*! \brief default constructor */
NDArray()
: entry_(nullptr)
{
: entry_(nullptr) {
}
/*!
* \brief constructs a new dynamic NDArray
Expand Down
4 changes: 1 addition & 3 deletions src/imperative/cached_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,9 @@ CachedOp::CachedOp(

// construct backward graph
{
//ograd_entries_.resize(fwd_graph_.outputs.size());
ograd_entries_.reserve(fwd_graph_.outputs.size());
for (size_t i = 0; i < fwd_graph_.outputs.size(); ++i) {
for (size_t i = 0; i < fwd_graph_.outputs.size(); ++i)
ograd_entries_.emplace_back(Node::Create());
}

std::vector<NodeEntry> xs;
const IndexedGraph& indexed_graph = fwd_graph_.indexed_graph();
Expand Down

0 comments on commit b7ea69e

Please sign in to comment.