From 0fca16847c89d1018c32da0e7bbc0b6396d5e104 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Fri, 23 Nov 2018 02:52:35 +0000 Subject: [PATCH] temp --- paddle/fluid/operators/math/matrix_bit_code.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/fluid/operators/math/matrix_bit_code.cc b/paddle/fluid/operators/math/matrix_bit_code.cc index 8baffe1ba1e..29675869498 100644 --- a/paddle/fluid/operators/math/matrix_bit_code.cc +++ b/paddle/fluid/operators/math/matrix_bit_code.cc @@ -102,6 +102,8 @@ void MatrixBitCodeFunctor::MulGradWeight(const framework::LoDTensor& tmat, size_t input_width = input.dims()[1]; size_t tmat_width = tmat.dims()[1]; size_t weight_width = weight->dims()[1]; + VLOG(30) << "sparse w_grad dims is [" << weight->dims()[0] << " ," + << weight->dims()[1] << " ]"; auto tmat_value = tmat.data(); auto weight_value = weight->data(); auto input_value = input.data(); @@ -127,6 +129,8 @@ void MatrixBitCodeFunctor::MulGradWeight(const framework::LoDTensor& tmat, size_t input_width = input.dims()[1]; size_t tmat_width = tmat.dims()[1]; size_t weight_width = weight->value().dims()[1]; + VLOG(30) << "sparse w_grad dims is: [" << weight->value().dims()[0] << " ," + << weight->value().dims()[1] << " ]"; auto tmat_value = tmat.data(); auto weight_value = weight->mutable_value()->data(); auto input_value = input.data(); -- GitLab