tensorflow / tensorflow/tflite-support

How to link the task library to a bazel project?

Open
#869 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
441
Forks
146
PR merge metrics
No merged PRs in 30d

Description

I would like to use the CC task/vision library on my own project. How can i add it to my current workspace?

i tried by adding the http_archive, but this lead to missing dependencies:

http_archive(
name = "org_tensorflow_lite_support",
urls = [
"https://github.com/tensorflow/tflite-support/archive/822939c02daf36ef99d3d0e4a0633bd18c62e85e.tar.gz",
],
strip_prefix = "tflite-support-822939c02daf36ef99d3d0e4a0633bd18c62e85e",
)

Is there a way to create a 'bazel/tflite_support_deps.bzl' file that could handle all the dependencies so they can be loaded on any other bazel project?

Something like;
load("@org_tensorflow_lite_support//bazel:tflite_support_deps.bzl", "tflite_support_deps")
tflite_support_deps()

Or should i add all the dependencies on my workspace file?

Perhaps there is an eassier way to add the library but i dont know it. Thanks in advance for your help.

Best,

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue's http_archive example and the proposed bazel/tflite_support_deps.bzl entry point, then inspect the repository's Bazel dependency setup. Document the supported way to add the library to another workspace, including how its dependencies should be declared and how to verify the missing-dependency problem is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.