From f1c9ba0760c6769c999a6fce1b7754966288ee2e Mon Sep 17 00:00:00 2001 From: Tensor Tang Date: Thu, 13 Jun 2019 04:20:12 +0000 Subject: [PATCH] fix reshape core --- paddle/fluid/lite/kernels/arm/conv_compute_test.cc | 12 ++++++------ paddle/fluid/lite/utils/any.h | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/paddle/fluid/lite/kernels/arm/conv_compute_test.cc b/paddle/fluid/lite/kernels/arm/conv_compute_test.cc index f5cffd8eaba..4b95aa5ce4a 100644 --- a/paddle/fluid/lite/kernels/arm/conv_compute_test.cc +++ b/paddle/fluid/lite/kernels/arm/conv_compute_test.cc @@ -158,12 +158,12 @@ TEST(conv_arm, compute) { filter.Resize(filter_shape); output.Resize(output_shape); output_ref.Resize(output_shape); - LOG(INFO) << "input: " << input.dims(); - LOG(INFO) << "filter: " << filter.dims() - << " padding:" << padding - << " stride:" << stride - << " dilation:" << dilation; - LOG(INFO) << "output: " << output.dims(); + VLOG(3) << "input: " << input.dims(); + VLOG(3) << "filter: " << filter.dims() + << " padding:" << padding + << " stride:" << stride + << " dilation:" << dilation; + VLOG(3) << "output: " << output.dims(); auto* input_data = input.mutable_data(); auto* filter_data = filter.mutable_data(); auto* output_data = output.mutable_data(); diff --git a/paddle/fluid/lite/utils/any.h b/paddle/fluid/lite/utils/any.h index 33e697a6da5..2a8c68063f0 100644 --- a/paddle/fluid/lite/utils/any.h +++ b/paddle/fluid/lite/utils/any.h @@ -54,11 +54,11 @@ class Any { bool valid() const { return data_; } - ~Any() { - if (valid()) { - deleter_(); - } - } + // ~Any() { + // if (valid()) { + // deleter_(); + // } + // } private: static size_t kInvalidType; -- GitLab