{"id":14959152,"url":"https://github.com/wamuir/graft","last_synced_at":"2025-05-02T12:31:10.395Z","repository":{"id":45297257,"uuid":"437255046","full_name":"wamuir/graft","owner":"wamuir","description":"Go language bindings to the TensorFlow C API","archived":false,"fork":false,"pushed_at":"2025-03-15T18:16:45.000Z","size":3673,"stargazers_count":56,"open_issues_count":5,"forks_count":3,"subscribers_count":1,"default_branch":"nightly","last_synced_at":"2025-04-07T01:52:22.523Z","etag":null,"topics":["go","golang","machine-learning","tensorflow"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/wamuir/graft","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wamuir.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-11T10:47:50.000Z","updated_at":"2025-04-01T19:54:22.000Z","dependencies_parsed_at":"2023-10-14T23:30:48.667Z","dependency_job_id":"b5585ed9-eede-4157-9123-c0e26a2d626b","html_url":"https://github.com/wamuir/graft","commit_stats":{"total_commits":335,"total_committers":1,"mean_commits":335.0,"dds":0.0,"last_synced_commit":"634f41507f435bf5f33abd7dff6b1b810312c23f"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamuir%2Fgraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamuir%2Fgraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamuir%2Fgraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamuir%2Fgraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wamuir","download_url":"https://codeload.github.com/wamuir/graft/tar.gz/refs/heads/nightly","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252038117,"owners_count":21684627,"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":["go","golang","machine-learning","tensorflow"],"created_at":"2024-09-24T13:18:56.748Z","updated_at":"2025-05-02T12:31:09.441Z","avatar_url":"https://github.com/wamuir.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graft\n[![tensorflow version](https://img.shields.io/badge/tf-nightly-FF6F00?logo=tensorflow\u0026logoColor=FF6F00)](https://github.com/tensorflow/tensorflow/tree/nightly)\n[![nightly](https://img.shields.io/github/actions/workflow/status/wamuir/graft/integrate-nightly-changes.yml?branch=nightly\u0026label=nightly%20ci\u0026logo=github\u0026event=schedule)](https://github.com/wamuir/graft/actions/workflows/integrate-nightly-changes.yml?query=branch%3Anightly)\n[![go.dev reference](https://pkg.go.dev/badge/wamuir/graft)](https://pkg.go.dev/github.com/wamuir/graft/tensorflow)\n\n## About\n\n**Go language bindings to the TensorFlow C API**\n\nGraft contains nightly and release builds of the Go language bindings to the\nTensorFlow C API, including Go-compiled TensorFlow protocol buffers and\ngenerated Go wrappers for TensorFlow operations.\n\nUse Graft exactly as you would use the Go bindings found in the main TensorFlow\nrepo, and with the following import statement: `github.com/wamuir/graft/tensorflow`\n\n## Getting Started\n\n\u003e Note: the Go bindings depend on\n\u003e [libtensorflow](https://www.tensorflow.org/install/lang_c), which should be\n\u003e downloaded (or compiled) and installed first.\n\nInstallation is performed using `go get`:\n\n```sh\ngo get -u github.com/wamuir/graft/tensorflow/...\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eHello TensorFlow\u003c/b\u003e\u003c/summary\u003e\n\n```go\npackage main\n\nimport (\n\ttf \"github.com/wamuir/graft/tensorflow\"\n\t\"github.com/wamuir/graft/tensorflow/op\"\n\t\"fmt\"\n)\n\nfunc main() {\n\t// Construct a graph with an operation that produces a string constant.\n\ts := op.NewScope()\n\tc := op.Const(s, \"Hello from TensorFlow version \" + tf.Version())\n\tgraph, err := s.Finalize()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Execute the graph in a session.\n\tsess, err := tf.NewSession(graph, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\toutput, err := sess.Run(nil, []tf.Output{c}, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(output[0].Value())\n}\n```\n\n\u003c/details\u003e\n\n## Credits\n\nGraft is a compilation of [TensorFlow](https://tensorflow.org/code) source\ncode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwamuir%2Fgraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwamuir%2Fgraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwamuir%2Fgraft/lists"}