std::string func_repr(const h::Func &func) { std::string repr; boost::format f("<halide.Func '%s'>"); repr = boost::str(f % func.name()); return repr; }