{"id":18527675,"url":"https://github.com/helinwang/tfsum","last_synced_at":"2025-04-09T12:32:26.603Z","repository":{"id":57498611,"uuid":"76155618","full_name":"helinwang/tfsum","owner":"helinwang","description":"Enable TensorBoard for TensorFlow Go API","archived":false,"fork":false,"pushed_at":"2017-04-24T20:50:08.000Z","size":58,"stargazers_count":33,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T05:51:58.988Z","etag":null,"topics":["golang","tensorboard","tensorboard-visualizations","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helinwang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-11T05:12:10.000Z","updated_at":"2024-05-29T06:21:40.000Z","dependencies_parsed_at":"2022-09-06T16:22:24.413Z","dependency_job_id":null,"html_url":"https://github.com/helinwang/tfsum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helinwang%2Ftfsum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helinwang%2Ftfsum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helinwang%2Ftfsum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helinwang%2Ftfsum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helinwang","download_url":"https://codeload.github.com/helinwang/tfsum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248040715,"owners_count":21037926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","tensorboard","tensorboard-visualizations","tensorflow"],"created_at":"2024-11-06T17:55:43.054Z","updated_at":"2025-04-09T12:32:21.594Z","avatar_url":"https://github.com/helinwang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tensorflow provides golang api for model training and inference, however currently tensorboard is only supported when using python.\n\nThis repository enables using tensorboard with tensorflow golang api. `tfsum.Writer` writes file that tensorboard could understand.\n\nBefore using the following piece of code, you have to build tensorflow golang api: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/go/README.md\n\n### Example\n\n```\npackage main\n\nimport (\n        \"fmt\"\n\n        \"github.com/helinwang/tfsum\"\n        tf \"github.com/tensorflow/tensorflow/tensorflow/go\"\n)\n\nfunc main() {\n        step := 0\n        w := \u0026tfsum.Writer{Dir: \"./tf-log\", Name: \"train\"}\n        var s *tf.Session\n        var g *tf.Graph\n        var input *tf.Tensor\n        sum, err := s.Run(\n                map[tf.Output]*tf.Tensor{\n                        g.Operation(\"input\").Output(0): input,\n                },\n                []tf.Output{\n                        g.Operation(\"MergeSummary/MergeSummary\").Output(0),\n                },\n                []*tf.Operation{\n                        g.Operation(\"train_step\"),\n                })\n        if err != nil {\n                fmt.Println(err)\n        }\n        err = w.AddEvent(sum[0].Value().(string), int64(step))\n        if err != nil {\n                fmt.Println(err)\n        }\n}\n```\nThen run tensorboard normally\n```\ntensorboard --logdir=./tf-log\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelinwang%2Ftfsum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelinwang%2Ftfsum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelinwang%2Ftfsum/lists"}