From ea2e657b7d91977e2c15e4f4971791c8238cdb0f Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Tue, 23 Jan 2018 22:21:18 +0000 Subject: added debugging prints --- Wrappers/Python/fista_module.cpp | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/fista_module.cpp b/Wrappers/Python/fista_module.cpp index bb43b84..657500e 100644 --- a/Wrappers/Python/fista_module.cpp +++ b/Wrappers/Python/fista_module.cpp @@ -689,8 +689,20 @@ bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, d printf("HO iterations stopped at iteration: %i\n", ll); result.append(npU); std::cout << "npU shape " << bp::extract(bp::str(shape)) <(bp::str(npU)) <(bp::str(npU)) <(result[0]); + while (i < inside.get_nd() ) { + std::cout << inside.shape(i++) << " " ; + } + std::cout << std::endl; } else if (number_of_dims == 3) { /*3D case*/ @@ -774,8 +786,16 @@ bp::list LLT_model(np::ndarray input, double d_lambda, double d_tau, int iter, d std::cout << "Call to LLT_model ended" << std::endl; std::cout << "result length " << bp::len(result) << std::endl; //std::cout << "npU shape " << bp::extract(bp::str(shape)) <(bp::str(result[0])) <(bp::str(result[0])) <(result[0]); + while (i < inside.get_nd() ) { + std::cout << inside.shape(i++) << " " ; + } + + std::cout << std::endl; return result; } -- cgit v1.2.3