Skip to content

Commit

Permalink
issue#20343: assign input param delay_alloc_ to delay_alloc
Browse files Browse the repository at this point in the history
hotfix: assign  input param `delay_alloc_` to `delay_alloc` rather than 'true'
pls refer to [issu#20343](apache#20343)
  • Loading branch information
ooooona committed Jun 15, 2021
1 parent 40e50ef commit d795ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mxnet/ndarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ class NDArray {

/*! \brief construct a new chunk */
Chunk(mxnet::TShape shape, Context ctx_, bool delay_alloc_, int dtype)
: static_data(false), delay_alloc(true), ctx(ctx_),
: static_data(false), delay_alloc(delay_alloc_), ctx(ctx_),
storage_ref_(Storage::_GetSharedRef()),
engine_ref_(Engine::_GetSharedRef()) {
storage_shape = shape;
Expand Down

0 comments on commit d795ed1

Please sign in to comment.