thank you for your response, Hmmm… it is what I usually use, or sometime I use at::print() to print the entire tensor … using std out will mess my code,… is there any standard or best practice to debug libtorch program