in NativeApp/app/src/main/cpp/pytorch_nativeapp.cpp [40:44]
template <typename T> void log(const char *m, T t) { std::ostringstream os; os << t << std::endl; ALOGI("%s %s", m, os.str().c_str()); }