{"id":15395323,"url":"https://github.com/cocoa-xu/tflite_beam","last_synced_at":"2025-04-05T23:07:25.477Z","repository":{"id":37245692,"uuid":"453814028","full_name":"cocoa-xu/tflite_beam","owner":"cocoa-xu","description":"TensorFlow Lite Erlang bindings with optional EdgeTPU support.","archived":false,"fork":false,"pushed_at":"2025-02-10T22:53:04.000Z","size":31554,"stargazers_count":39,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T22:05:50.239Z","etag":null,"topics":["erlang","erlang-library","erlang-nif","tensorflow-lite","tpu-acceleration"],"latest_commit_sha":null,"homepage":"","language":"C++","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/cocoa-xu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-01-30T22:06:15.000Z","updated_at":"2025-02-10T22:52:55.000Z","dependencies_parsed_at":"2024-03-17T11:21:23.142Z","dependency_job_id":"e196b60c-747d-4157-ba5a-702b03655a76","html_url":"https://github.com/cocoa-xu/tflite_beam","commit_stats":{"total_commits":465,"total_committers":5,"mean_commits":93.0,"dds":"0.28387096774193543","last_synced_commit":"e67509fdd39d16a617201ca66a2d1980ba53fefd"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-xu%2Ftflite_beam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-xu%2Ftflite_beam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-xu%2Ftflite_beam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-xu%2Ftflite_beam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cocoa-xu","download_url":"https://codeload.github.com/cocoa-xu/tflite_beam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411231,"owners_count":20934653,"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":["erlang","erlang-library","erlang-nif","tensorflow-lite","tpu-acceleration"],"created_at":"2024-10-01T15:27:40.110Z","updated_at":"2025-04-05T23:07:25.449Z","avatar_url":"https://github.com/cocoa-xu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TFLiteBEAM\n\nTensorFlow Lite BEAM bindings with optional EdgeTPU support.\n\n[![Coverage Status](https://coveralls.io/repos/github/cocoa-xu/tflite_beam/badge.svg?branch=main)](https://coveralls.io/github/cocoa-xu/tflite_beam?branch=main)\n\n| OS               | Arch    | ABI       | Build Status | Has Precompiled Library |\n|------------------|---------|-----------|--------------|-------------------------|\n| Ubuntu 20.04     | x86_64  | gnu       | [![CI](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-x86_64.yml/badge.svg)](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-x86_64.yml) | Yes |\n| Ubuntu 20.04     | arm64   | gnu       | [![CI](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml/badge.svg)](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml) | Yes |\n| Ubuntu 20.04     | armv7l  | gnueabihf | [![CI](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml/badge.svg)](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml) | Yes |\n| Ubuntu 20.04     | armv6   | gnueabihf | [![CI](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml/badge.svg)](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml) | Yes |\n| Ubuntu 20.04     | riscv64 | gnu       | [![CI](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml/badge.svg)](https://github.com/cocoa-xu/tflite_beam/actions/workflows/linux-precompile.yml) | Yes |\n| macOS 11 Big Sur | x86_64  | darwin    | [![CI](https://github.com/cocoa-xu/tflite_beam/actions/workflows/macos-x86_64.yml/badge.svg)](https://github.com/cocoa-xu/tflite_beam/actions/workflows/macos-x86_64.yml) | Yes |\n| macOS 11 Big Sur | arm64   | darwin    | [![CI](https://github.com/cocoa-xu/tflite_beam/actions/workflows/macos-precompile.yml/badge.svg)](https://github.com/cocoa-xu/tflite_beam/actions/workflows/macos-precompile.yml) | Yes |\n\n\n## Coral Support\n### Dependencies\nFor macOS\n```shell\n# only required if not using precompiled binaries\n# for compiling libusb\nbrew install autoconf automake\n```\n\nFor some Linux OSes you need to manually execute the following command to update udev rules, otherwise, libedgetpu will fail to initialize Coral devices.\n\n```shell\nbash \"3rd_party/cache/${TFLITE_BEAM_CORAL_LIBEDGETPU_RUNTIME}/edgetpu_runtime/install.sh\"\n```\n\n### Compile-Time Environment Variable\n- `TFLITE_BEAM_PREFER_PRECOMPILED`\n\n  Use precompiled binaries when `TFLITE_BEAM_PREFER_PRECOMPILED` is `true`. Otherwise, this library will compile from source.\n\n  Defaults to `true`.\n\n- `TFLITE_BEAM_CORAL_SUPPORT`\n\n  Enable Coral Support.\n\n  Defaults to `true`.\n\n- `TFLITE_BEAM_CORAL_USB_THROTTLE`\n\n  Throttling USB Coral Devices. Please see the official warning here, [google-coral/libedgetpu](https://github.com/google-coral/libedgetpu#warning).\n\n  Defaults to `true`.\n\n  Note that only when `TFLITE_BEAM_CORAL_USB_THROTTLE` is set to `NO`, `:tflite_beam` will use the non-throttled libedgetpu libraries.\n\n- `TFLITE_BEAM_CORAL_LIBEDGETPU_LIBRARIES`\n\n  Choose which ones of the libedgetpu libraries to copy to the `priv` directory of the `:tflite_beam` app.\n\n  Default value is `native` - only native libraries will be downloaded and copied. `native` corresponds to the host OS and CPU architecture when compiling this library.\n\n  When set to a specific value, e.g, `darwin_arm64` or `darwin_x86_64`, then the corresponding one will be downloaded and copied. This option is expected to be used for cross-compiling, like with nerves.\n\n  Available values for this option are:\n\n  | Value            | OS/CPU              |\n  |------------------|---------------------|\n  | `aarch64`        | Linux arm64         |\n  | `armv7l`         | Linux armv7         |\n  | `armv6`          | Linux armv6         |\n  | `k8`             | Linux x86_64        |\n  | `x86_64`         | Linux x86_64        |\n  | `riscv64`        | Linux riscv64       |\n  | `darwin_arm64`   | macOS Apple Silicon |\n  | `darwin_x86_64`  | macOS x86_64        |\n\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `tflite_beam` to your list of dependencies in `rebar.config`:\n\n```erlang\n{deps, [\n  {tflite_beam, \"0.3.2\"}\n]}\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at \u003chttps://hexdocs.pm/tflite_beam\u003e.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocoa-xu%2Ftflite_beam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcocoa-xu%2Ftflite_beam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocoa-xu%2Ftflite_beam/lists"}