diff options
Diffstat (limited to 'recipes-framework/tensorflow/tensorflow.inc')
-rw-r--r-- | recipes-framework/tensorflow/tensorflow.inc | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/recipes-framework/tensorflow/tensorflow.inc b/recipes-framework/tensorflow/tensorflow.inc new file mode 100644 index 0000000..1480c0a --- /dev/null +++ b/recipes-framework/tensorflow/tensorflow.inc @@ -0,0 +1,65 @@ +DESCRIPTION = "TensorFlow C/C++ Libraries" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4158a261ca7f2525513e31ba9c50ae98" + +DEPENDS = " \ + bazel-native \ + protobuf-native \ + util-linux-native \ + patchelf-native \ + protobuf \ +" +SRCREV = "5bc9d26649cca274750ad3625bd93422617eed4b" +SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r2.16;protocol=https \ + file://0001-use-local-bazel-to-workaround-bazel-paralle-issue.patch \ + file://0001-third_party-eigen_archive-workaround-ice-failure-whi.patch \ + file://0001-drop-bazel_toolchains_repositories-to-support-offlin.patch \ + file://0001-drop-v2-config.patch \ + file://0002-Replace-distutils.sysconfig.get_python_lib-with-sysc.patch \ + file://0001-hardcode-go-SDKS.patch \ + file://0001-fix-build-failure.patch \ + file://0001-support-hermetic-Python.patch \ + file://0001-make-hermetic-python3-support-offline-build.patch \ + " + +S = "${WORKDIR}/git" + +DEPENDS += " \ + python3 \ + python3-requests-native \ + python3-numpy-native \ + python3-keras-applications-native \ + python3-keras-preprocessing-native \ + python3-pip-native \ + python3-wheel-native \ + python3-packaging-native \ +" + +inherit python3native bazel + +TF_CONFIG ?= " \ + TF_NEED_CUDA=0 \ + TF_NEED_OPENCL_SYCL=0 \ + TF_NEED_OPENCL=0 \ + TF_CUDA_CLANG=0 \ + TF_DOWNLOAD_CLANG=0 \ + TF_ENABLE_XLA=0 \ + TF_NEED_MPI=0 \ + TF_SET_ANDROID_WORKSPACE=0 \ + TF_NEED_CLANG=0 \ + TF_NEED_ROCM=0 \ +" + +inherit tensorflow_ver + +CC:append:arm = " -mfp16-format=ieee" + +CFLAGS += "-Wno-stringop-overflow -Wno-dangling-pointer" + +export TS_DL_DIR + +do_compile[network] = "1" + +do_compile:append() { + chmod a+w ${BAZEL_DIR}/output_base/execroot/org_tensorflow/bazel-out/*/bin/tensorflow/lite/python/conversion_metadata_schema_py_srcs_no_include_all || true +} |