BSD Ports

science/py-tensorflow 2.21.0_4 FreeBSD

Computation using data flow graphs for scalable machine learning

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
e19ad3bbab
License
APACHE20
Categories
science, python

Description

TensorFlow is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them. The flexible architecture allows you to deploy computation to one or more CPUs or GPUs in a desktop, server, or mobile device with a single API. TensorFlow was originally developed by researchers and engineers working on the Google Brain Team within Google's Machine Intelligence research organization for the purposes of conducting machine learning and deep neural networks research, but the system is general enough to be applicable in a wide variety of other domains as well.

Install

Binary package:

pkg install py312-tensorflow

From the ports tree:

cd /usr/ports/science/py-tensorflow/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-tensorflow>0:science/py-tensorflow

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest-2.21.0_4---
FreeBSD:14:quarterly-2.21.0_4n/a--
FreeBSD:15:latest-2.21.0_4n/a--
FreeBSD:15:quarterly-2.21.0_4n/an/an/a
FreeBSD:16:latest-2.21.0_4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 10

Library 11

Runtime 18

The full lists below include those, and their dependencies in turn.

Build dependencies 97
Run dependencies 106

The first 100 are listed.

Configuration

Options name: science_tensorflow

OptionDefaultDescription
CPU_OPTSoffEnable optimisations using features available on your CPU
JOBS_1offRun one job
JOBS_ALLonRun all jobs
JOBS_HALFoffRun half jobs
XLAoffAccelerated Linear Algebra
USES
java jpeg perl5 python shebangfix ssl
Service scripts
none

Files

distinfo 93
FileSizeSHA256
tensorflow/platforms-0.0.11.tar.gz788229742e87275809b5e598dc2f04d86960cc7a55b3067d97221c9abbc9926bff0f
tensorflow/apple_support.1.24.5.tar.gz1105551ae6fcf983cff3edab717636f91ad0efff2e5ba75607fdddddfd6ad0dbdfaf10
tensorflow/bazel-skylib-1.7.1.tar.gz43566bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f
tensorflow/8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz80728294cdd859e57fcaf101d4301978c408c88683fbc46fbc1a3829da92afbea55fb
tensorflow/v0.1.1.zip14654cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806
tensorflow/rules_apple.3.5.1.tar.gz2.404029e+06b4df908ec14868369021182ab191dbd1f40830c9b300650d5dc389e0b9266c8d
tensorflow/rules_swift.1.18.0.tar.gz255839bb01097c7c7a1407f8ad49a1a0b1960655cf823c26ad2782d0b7d15b323838e2
tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz4649065b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9
tensorflow/4.3.zip3.998031e+066274687f6fc5783b589f56a2f1ed60de3ce1f99bc4e8f9edef3de43bdf7c6e74
tensorflow/rules_pkg-0.7.1.tar.gz77334451e08a4d78988c06fa3f9306ec813b836b1d076d0f055595444ba4ff22b867f
tensorflow/0.7.1.tar.gz215296bcd0c5f46a49b85b384906daae41d277b3dc0ff27c7c752cc51e43048a58ec83
tensorflow/rules_java-7.6.1.tar.gz27308f8ae9ed3887df02f40de9f4f7ac3873e6dd7a471f9cddf63952538b94b59aeb3
tensorflow/rules_license-0.0.7.tar.gz314764531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360
tensorflow/bazel_features-v1.25.0.tar.gz162664fd9922d464686820ffd8fcefa28ccffa147f7cdc6b6ac0d8b07fde565c65d66
tensorflow/rules_shell-v0.4.1.tar.gz22017bc61ef94facc78e20a645726f64756e5e285a045037c7a61f65af2941f4c25e1
tensorflow/d8cb9c2c168cd64000eaa6eda0781a9615a26ffe.tar.gz15907954c1a357f71f611efdb4891ebd4bcbe4aeb6dfa7e473f14fd7ecad5062096616
tensorflow/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz204856552ca3d4d1af4beeb1907980f7096315aa24150d6baf5ac1e5ad90f04846c670
tensorflow/0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz46725118392cf0736e1d62ecbb8d695c31496b6507859e8c75541d7ad0ba092dc52115
tensorflow/16e8662c34917be0065110bfcd9cc27d30f52fdf.zip9408367dc418717c8456473fac4ff2288b71057e3dcb72894524c734a4362cdb51fa8b
tensorflow/c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz160745c0e2b9931fbcce3bfbcd7999c3c114f404ac0f8b89775a5bbccbcaa501868e58
Master sites 91
  • https://github.com/bazelbuild/platforms/releases/download/0.0.11/:platforms
  • https://github.com/bazelbuild/apple_support/releases/download/1.24.5/:apple
  • https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/:skylib
  • https://github.com/bazelbuild/bazel-toolchains/archive/:toolchain
  • https://github.com/bazelbuild/rules_android/archive/:buildrules
  • https://github.com/bazelbuild/rules_apple/releases/download/3.5.1/:applerules
  • https://github.com/bazelbuild/rules_swift/releases/download/1.18.0/:swift
  • https://github.com/bazelbuild/rules_closure/archive/:closure
  • https://github.com/bazelbuild/rules_jvm_external/archive/:jvm
  • https://github.com/bazelbuild/rules_pkg/releases/download/0.7.1/:pkg
  • https://github.com/bazel-contrib/rules_foreign_cc/archive/:foreign_cc
  • https://github.com/bazelbuild/rules_java/releases/download/7.6.1/:rules_java
  • https://github.com/bazelbuild/rules_license/releases/download/0.0.7/:rlic
  • https://github.com/bazel-contrib/bazel_features/releases/download/v1.25.0/:bfeatures
  • https://github.com/bazelbuild/rules_shell/releases/download/v0.4.1/:rshell
  • https://github.com/google-ml-infra/rules_ml_toolchain/archive/:mlchain
  • https://github.com/google/benchmark/archive/:benchmark
  • https://github.com/google/farmhash/archive/:farmhash
  • https://github.com/google/gemmlowp/archive/:gemmlowp
  • https://github.com/google/highwayhash/archive/:highwayhash
  • https://github.com/google/re2/archive/:re2
  • https://github.com/google/ruy/archive/:ruy
  • https://github.com/joe-kuo/sobol_data/archive/:sobol
  • https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/:llvmorg
  • https://github.com/mborgerding/kissfft/archive/refs/tags/:kiss
  • https://github.com/oneapi-src/oneDNN/archive/refs/tags/:onednn
  • https://github.com/openxla/stablehlo/archive/:openxla
  • https://github.com/petewarden/OouraFFT/archive/:ooura
  • https://github.com/pybind/pybind11_abseil/archive/:pybindabseil
  • https://github.com/pybind/pybind11_bazel/archive/:pybindbazel
  • https://github.com/pybind/pybind11_protobuf/archive/:pybindprotobuf
  • https://github.com/pytorch/cpuinfo/archive/:cpuinfo
  • https://github.com/tensorflow/runtime/archive/:runtime
  • https://gitlab.com/libeigen/eigen/-/archive/dcbaf2d608f306450f1e74949eb87e9a22a7ef4b/:eigen
  • https://github.com/google/XNNPACK/archive/:xnnpack
  • https://github.com/Maratyszcza/pthreadpool/archive/:pthread
  • https://github.com/Maratyszcza/FP16/archive/:fp16
  • https://github.com/Maratyszcza/FXdiv/archive/:fxdiv
  • https://github.com/llvm/llvm-project/archive/:llvm
  • https://github.com/googleapis/googleapis/archive/:apis
  • https://github.com/google/flatbuffers/archive/refs/tags/:flatbuffer
  • https://github.com/intel/ARM_NEON_2_x86_SSE/archive/:neon
  • https://github.com/wjakob/nanobind/archive/refs/tags/:nanobind
  • https://github.com/dmlc/dlpack/archive/refs/tags/:dlpack
  • https://github.com/abseil/abseil-cpp/archive/:absl
  • https://github.com/bazelbuild/rules_proto/archive/:protolib
  • https://github.com/ARM-software/kleidiai/archive/:kleidiai
  • https://github.com/nlohmann/json/archive/:nlohmann
  • https://github.com/protocolbuffers/upb/archive/:upb
  • https://github.com/google/riegeli/archive/:riegeli
  • https://github.com/facebook/zstd/archive/:net_zstd
  • https://github.com/bazelbuild/rules_go/releases/download/v0.34.0/:rules_go
  • https://github.com/bazelbuild/rules_python/releases/download/1.6.0/:rules_python
  • https://github.com/bazelbuild/rules_cc/archive/refs/tags/:rules_cc
  • https://github.com/protocolbuffers/protobuf/archive/refs/tags/:protobuf6
  • https://github.com/abseil/abseil-py/archive/refs/tags/:absl_py
  • https://gitlab.mpcdf.mpg.de/mtr/ducc/-/archive/aa46a4c21e440b3d416c16eca3c96df19c74f316/:ducc
  • https://github.com/jax-ml/ml_dtypes/archive/00d98cd92ade342fef589c0470379abb27baebe9/:ml_dtypes
  • https://github.com/google/brotli/archive/refs/tags/:brotli_new
  • https://github.com/libjxl/libjxl/archive/refs/tags/:libjxl
  • https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/xprof/archive/:xprof
  • https://github.com/google/highway/archive/refs/tags/:highway
  • https://github.com/google/skcms/archive/refs/tags/:skcms
  • https://github.com/webmproject/libwebp/archive/:libwebp
  • https://github.com/dsharlet/slinky/archive/:slinky
  • https://github.com/Tessil/robin-map/archive/refs/tags/:robin_map
  • https://github.com/openxla/shardy/archive/:shardy
  • https://developer.download.nvidia.com/compute/redist/nvshmem/3.1.7/source/:nvshmem
  • https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/:clang18
  • https://storage.googleapis.com/ml-sysroot-testing/x86_64/:gcc_sysroot
  • https://github.com/astral-sh/python-build-standalone/releases/download/20250808/:cpython311
  • https://storage.googleapis.com/ml-sysroot-testing/libtinfo/:libtinfo
  • https://storage.googleapis.com/ml-sysroot-testing/libtinfo/:libtinfo_cp
  • https://github.com/grpc/grpc/archive/refs/tags/:grpc_src
  • https://github.com/google/googletest/archive/:googletest_src
  • https://github.com/envoyproxy/data-plane-api/archive/:envoy_api_src
  • https://github.com/bufbuild/protoc-gen-validate/archive/refs/tags/:protoc_gen_validate_src
  • https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/:bazel_gazelle_src
  • https://github.com/bazelbuild/rules_java/releases/download/8.7.0/:rules_java_870
  • https://github.com/bazelbuild/rules_proto/archive/refs/tags/:rules_proto_702
  • https://github.com/googleapis/google-cloud-cpp/archive/refs/tags/:google_cloud_cpp_src
  • https://github.com/grailbio/bazel-compilation-database/archive/:bazel_compdb_src
  • https://github.com/c-ares/c-ares/archive/:c_ares_src
  • https://github.com/cncf/xds/archive/:cncf_xds_src
  • https://github.com/google/libprotobuf-mutator/archive/:libprotobuf_mutator_src
  • https://github.com/census-instrumentation/opencensus-cpp/archive/:opencensus_cpp_src
  • https://github.com/open-telemetry/opentelemetry-cpp/archive/:opentelemetry_cpp_src
  • https://github.com/census-instrumentation/opencensus-proto/archive/refs/tags/:opencensus_proto_src
  • https://github.com/bazelbuild/rules_cc/releases/download/0.0.17/:rules_cc_017
  • https://github.com/bazelbuild/rules_shell/releases/download/v0.3.0/:rules_shell_030
  • https://github.com/jbeder/yaml-cpp/archive/refs/tags/:yaml_cpp_src

Commit history 3

DateCommitCreditsLog message
e19ad3bbab Yuri Victorovich science/py-tensorflow: fix build after it was broken by the snappy update
57d4f61d20 Yuri Victorovich science/py-tensorflow: Fix build
It was broken since with the last update of jsoncpp its headers were pushed into include/jsoncpp. Reported by: fallout
9cc4953026 Piotr Kubaj science/py-tensorflow: fix and enable the build on powerpc64le
Most of the architecture gates that had to be fixed failed the same way: the port's cc_toolchain_config hardcodes cpu = "freebsd", which names the OS and not the CPU, so bazel config_settings written as values = {"cpu": ...} cannot tell FreeBSD architectures apart. The C preprocessor still takes the correct powerpc path (it sees __PPC64__), so bazel selected x86 sources while the compiler compiled powerpc ones. - files/freebsd/BUILD: the FreeBSD cc toolchain was declared exec/target_compatible_with @platforms//cpu:x86_64, so on powerpc64le it never resolved and bazel fell back to the auto-detected toolchain, whose empty cxx_builtin_include_directories made it reject the numpy -isystem copt for every compile. Constrain on @platforms//os:freebsd only, as …