How to build tensorflow-compression package for aarch64?

Open
#171 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, tensorflow

Research direction

Start with requirements.txt and the Bazel command shown in the issue, reproducing the build on the Debian aarch64 t2a machine. Investigate the reported @bazel_tools platform constraint error and document a working build path or the required project change, then verify that the tensorflow_compression package builds successfully.

Written by the indexing model from the issue text.

Description

Discussed in https://github.com/tensorflow/compression/discussions/168

Originally posted by ganeshShindeQ December 21, 2022
I tried to follow steps
I am using t2a machine with debian and used following steps to build tensorflow_compression

  1. git clone https://github.com/tensorflow/compression.git /tensorflow_compression &&
  2. cd /tensorflow_compression &&
  3. python -m pip install -U pip setuptools wheel &&
  4. python -m pip install -r requirements.txt &&
  5. bazel build -c opt --copt=-mavx :build_pip_pkg

Got the following error

Error: dd48f66785b37a83b2ce2c612bd47a6/external/bazel_tools/platforms/BUILD:84:6: in alias rule @bazel_tools//platforms:linux: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details

Dominant language
Python
Stars
923
Forks
258
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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.

More from tensorflow/compression

All issues in tensorflow/compression

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.