diff --git a/src/executor/attach_op_execs_pass.cc b/src/executor/attach_op_execs_pass.cc index 17ee8ebf5425..0d718df41c9e 100644 --- a/src/executor/attach_op_execs_pass.cc +++ b/src/executor/attach_op_execs_pass.cc @@ -44,7 +44,7 @@ class ForwardOpExecutor : public OpExecutor { GetDefaultBlobs(aux_array_, &aux_data_, &temp_aux_, op_ctx); GetDefaultBlobs(out_array, &out_data_, &temp_out_, op_ctx); op_->Forward(op_ctx, in_data_, req, out_data_, aux_data_); - CastNonDefaultStorage(out_array_, temp_out_, op_ctx); + CastNonDefaultStorage(out_array, temp_out_, op_ctx); #else LOG(FATAL) << MXNET_GPU_NOT_ENABLED_ERROR; #endif