{"id":20511909,"url":"https://github.com/tphakala/tflite_c","last_synced_at":"2025-08-15T22:39:55.693Z","repository":{"id":205595165,"uuid":"714603065","full_name":"tphakala/tflite_c","owner":"tphakala","description":"TensorFlow Lite C precompiled library for Windows, Linux and macOS","archived":false,"fork":false,"pushed_at":"2024-12-30T11:14:55.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-30T12:21:47.073Z","etag":null,"topics":["c","library","linux","prebuilt","prebuilt-libraries","tensorflow","tensorflow-lite","tflite","windows"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tphakala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-11-05T11:11:04.000Z","updated_at":"2024-12-30T11:14:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"f57a7dd2-9bca-4936-a3d1-8ec8f3c5c80a","html_url":"https://github.com/tphakala/tflite_c","commit_stats":null,"previous_names":["tphakala/tflite_c"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tphakala%2Ftflite_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tphakala%2Ftflite_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tphakala%2Ftflite_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tphakala%2Ftflite_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tphakala","download_url":"https://codeload.github.com/tphakala/tflite_c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234173540,"owners_count":18791058,"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":["c","library","linux","prebuilt","prebuilt-libraries","tensorflow","tensorflow-lite","tflite","windows"],"created_at":"2024-11-15T20:38:27.471Z","updated_at":"2025-01-16T08:43:54.977Z","avatar_url":"https://github.com/tphakala.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# TensorFlow Lite C API library precompiled for Linux and Windows systems\n\n## Compile process for Linux\n\n### Prerequisites for Linux build\n\n- bazelisk\n- clang 18\n\n```bash\n$ git clone https://github.com/tensorflow/tensorflow.git\n$ cd tensorflow\n$ git checkout tags/v2.17.1\n$ CC=clang bazelisk build -c opt //tensorflow/lite/c:libtensorflowlite_c.so\n```\n\nCompiled library is at bazel-bin/tensorflow/lite/c/\n- libtensorflowlite_c.so\n\n## Compile process for macOS\n\n### Prerequisites for macOS build\n\n- bazelisk\n- xcode\n\n```zsh\n\u003e git clone https://github.com/tensorflow/tensorflow.git\n\u003e cd tensorflow\n\u003e git checkout tags/v2.17.1\n\u003e CC=clang CXX=clang++ bazelisk build \\\n    -c opt \\\n    --copt=-O3 \\\n    --copt=-flto \\\n    --linkopt=-flto \\\n    --define=tflite_enable_xnnpack=true \\\n    --define=xnnpack_enable_subgraph_reshaping=true \\\n    --define=no_tensorflow_py_deps=true \\\n    --strip=always \\\n    //tensorflow/lite/c:libtensorflowlite_c.dylib\n```\n\nCompiled libraries are at bazel-bin/tensorflow/lite/c\n- libtensorflowlite_c.dylib\n\n## Compile process for Windows\n\n### Prerequisites for Windows build\n\n- bazelisk\n- clang 18\n- msys2\n\n```powershell\n\u003e git clone https://github.com/tensorflow/tensorflow.git\n\u003e cd tensorflow\n\u003e git checkout tags/v2.17.1\n\u003e $env:BAZEL_SH=\"C:/msys64/usr/bin/bash.exe\"\n\u003e bazelisk.exe build --config=opt //tensorflow/lite/c:tensorflowlite_c\n```\n\nCompiled libraries are at bazel-bin\\tensorflow\\lite\\c\n- tensorflowlite_c.dll\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftphakala%2Ftflite_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftphakala%2Ftflite_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftphakala%2Ftflite_c/lists"}