{"id":19195096,"url":"https://github.com/ksachdeva/tensorflow-cc-sdk-generator","last_synced_at":"2025-02-23T04:37:53.647Z","repository":{"id":136497956,"uuid":"137519555","full_name":"ksachdeva/tensorflow-cc-sdk-generator","owner":"ksachdeva","description":"Set of scripts to generate a CMake enabled tensorflow c++ SDK","archived":false,"fork":false,"pushed_at":"2018-06-15T19:10:02.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-04T08:35:45.792Z","etag":null,"topics":["cmake","cpp","sdk","tensorflow","tensorflow-cc","tensorflow-cmake"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/ksachdeva.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":"2018-06-15T18:21:07.000Z","updated_at":"2024-03-29T02:15:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"db64ce96-e0e5-462b-bba7-e407a1a7556c","html_url":"https://github.com/ksachdeva/tensorflow-cc-sdk-generator","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/ksachdeva%2Ftensorflow-cc-sdk-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Ftensorflow-cc-sdk-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Ftensorflow-cc-sdk-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Ftensorflow-cc-sdk-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksachdeva","download_url":"https://codeload.github.com/ksachdeva/tensorflow-cc-sdk-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271526,"owners_count":19774859,"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":["cmake","cpp","sdk","tensorflow","tensorflow-cc","tensorflow-cmake"],"created_at":"2024-11-09T12:08:19.560Z","updated_at":"2025-02-23T04:37:53.612Z","avatar_url":"https://github.com/ksachdeva.png","language":"Shell","readme":"# Tensorflow C++ SDK Generator\n\n## Overview\n\nIt is quite strange that a project of status like tensorflow does not provide an offically generated development package.\n\nHere is an attempt to generate a *sort* of SDK. I have made few assumptions and the directory structure of the generated SDK is based\non the *include* folder that ships with the tensorflow python package.\n\n## Building tensorflow on your machine\n\nThis is well documented here -\n[https://www.tensorflow.org/install/install_sources](https://www.tensorflow.org/install/install_sources)\n\n## Generate the SDK\n\nYou need to provide two arguments to the script (gen_sdk.sh) \n\n* The path to the tensorflow github repository that you cloned\n* The path where you want to generate the SDK\n\nHere is an example command -\n\n```bash\n./gen_sdk.sh -r ~/Desktop/Dev/3rdparty-compiled/tensorflow -o example/third-party/tensorflow-sdk\n```\n\nThe tensorflow-sdk contains 3 main items -:\n\n* *include* directory that contains the header files\n* *libs* directory that contains libtensorflow_cc.so \u0026 libtensorflow_framework.so shared libraries\n* *CMakeLists.txt* file that exposes an INTERFACE only CMake module with an alias *third-party::tensorflow-cc*\n\n## Example usage\n\nThe *example* folder contains a project structure that I generally use. Notice that the above example generation command created the SDK\nin the example/third-party folder.\n\nThis example project uses CMake as a build system.\n\nHere are the steps to compile it -:\n\n```bash\n# traditional cmake based build\ncd example\nmkdir build\ncd build\ncmake ..\ncmake --build .\n```\n\nRunning the sample application -\n\nSince the tensorflow shared libraries are not in the path you would have to either move them in /usr/local/lib or\nupdate your LD_LIBRARY_PATH environment variable.\n\n```bash\n# set LD_LIBRARY_PATH\nexport LD_LIBRARY_PATH=\u003cfull_path_to_repo\u003e/example/third-party/tensorflow-sdk/libs\n```\n\n```bash\n# run it\ncd build\n./example\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Ftensorflow-cc-sdk-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksachdeva%2Ftensorflow-cc-sdk-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Ftensorflow-cc-sdk-generator/lists"}