Searched refs:log_function (Results 1 – 5 of 5) sorted by relevance
62 TORCH_API std::string log_function(const std::shared_ptr<Graph>& graph);98 ::torch::jit::log_function(G));
131 std::string log_function(const std::shared_ptr<torch::jit::Graph>& graph) { in log_function() function
639 zip='deflated', log_function=None, argument665 if log_function is None:666 log_function = lambda x: None function699 log_function('Compiling into Zip archive "%s"' % target)703 log_function('Compiling into folder "%s"' % target)713 log_function('Could not compile "%s": %s' % (name, e))722 log_function('Byte-compiled "%s" as %s' %726 log_function('Compiled "%s" as %s' % (name, filename))731 log_function('Finished compiling templates')
677 log_function=None, argument699 if log_function is None:701 def log_function(x): function722 log_function(f"Compiling into Zip archive {target!r}")726 log_function(f"Compiling into folder {target!r}")736 log_function(f'Could not compile "{name}": {e}')742 log_function(f'Compiled "{name}" as {filename}')747 log_function("Finished compiling templates")
192 self.reg_env.compile_templates(self.archive, zip=zip, log_function=log.append)