[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tensorflow debian package



Bringing an offline discussion back to the mailing list so we can all follow along.

Current status is that tensorflow (2.3.1, at
https://salsa.debian.org/deeplearning-team/tensorflow ) builds a
libtensorflow_cc.so, but I'm struggling to get libtensorflow_lite.so
building because I'm not sure what the right target is. See below. If
someone can tell me what the build command for tflite is, that would be helpful.

Can you build from the top of the tree or do you need to cd into tensorflow/lite and then build from there?

As well as the below example I tried
bazel build //tensorflow/lite:framework_lib
bazel build :libtensorflow_lite_all.so
bazel build lite
bazel build //tensorflow/lite:tensorflowlite
bazel build //tensorflow/lite:framework

I'm also not sure if I am making a syntax or a target-name mistake.

On 2021-01-27 11:20 +0000, Francis Murtagh wrote:
>    Hi Guys,
> 
>    Thanks for help and info Olek, and great to hear we have a library
>    building Wookey; I'm going to rerun my packaging job to try get up to
>    speed, I'll try TF lite too, not sure if you had any luck with that?

Not so far. I've tried building various targets, but always get
something which I think means that I am using the wrong target syntax


bazel build                -k              --verbose_failures              --repository_cache=             --config=opt          --distdir=./debian/dist                 --repo_env=TF_SYSTEM_LIBS=nsync,curl,double_conversion,snappy,gif,zlib,com_google_protobuf,com_github_grpc_grpc,jsoncpp_git,libjpeg_turbo,nasm                --override_repository=bazel_skylib=$(CURDIR)/debian/mock_repos/bazel_skylib             --override_repository=rules_cc=$(CURDIR)/debian/mock_repos/rules_cc             --override_repository=rules_java=$(CURDIR)/debian/mock_repos/rules_java //tensorflow/lite:libtensorflow_lite_all.so
bash: CURDIR: command not found
bash: CURDIR: command not found
bash: CURDIR: command not found
Starting local Bazel server and connecting to it...
INFO: Reading 'startup' options from /etc/bazel/bazelrc: --install_base=/usr/share/bazel, --trust_install_base
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=190
INFO: Reading rc options for 'build' from /home/wookey/packages/tensorflow/salsa/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /etc/bazel/bazelrc:
  'build' options: --host_javabase=@local_jdk//:jdk
INFO: Reading rc options for 'build' from /home/wookey/packages/tensorflow/salsa/.bazelrc:
  'build' options: --apple_platform_type=macos --define framework_shared_object=true --define open_source_build=true --java_toolchain=//third_party/toolchains/java:tf_java_toolchain --host_java_toolchain=//third_party/toolchains/java:tf_java_toolchain --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --config=v2
INFO: Reading rc options for 'build' from /home/wookey/packages/tensorflow/salsa/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3 --config=xla --action_env TF_CONFIGURE_IOS=0
INFO: Found applicable config definition build:v2 in file /home/wookey/packages/tensorflow/salsa/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:xla in file /home/wookey/packages/tensorflow/salsa/.bazelrc: --action_env=TF_ENABLE_XLA=1 --define=with_xla_support=true
INFO: Found applicable config definition build:opt in file /home/wookey/packages/tensorflow/salsa/.tf_configure.bazelrc: --copt=-Wno-sign-compare --host_copt=-march=native --define with_default_optimizations=true
INFO: Found applicable config definition build:linux in file /home/wookey/packages/tensorflow/salsa/.bazelrc: --copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 --config=dynamic_kernels
INFO: Found applicable config definition build:dynamic_kernels in file /home/wookey/packages/tensorflow/salsa/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
ERROR: Skipping '//tensorflow/lite:libtensorflow_lite_all.so': no such package '@rules_cc//cc': The repository's path is "rules_cc" (absolute: "/debian/mock_repos/rules_cc") but this directory does not exist.
WARNING: Target pattern parsing failed.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
ERROR: command succeeded, but there were errors parsing the target pattern



Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/


Reply to: