Exemplo n.º 1
0
        public static string write_graph(Graph graph, string logdir, string name, bool as_text = true)
        {
            var    def  = graph._as_graph_def();
            string path = Path.Combine(logdir, name);
            string text = def.ToString();

            if (as_text)
            {
                File.WriteAllText(path, text);
            }

            return(path);
        }