Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 648f31b4789e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ef20994fd8f1
Choose a head ref
  • 4 commits
  • 8 files changed
  • 2 contributors

Commits on Mar 2, 2019

  1. pythonPackages.tensorflow-estimator: init 1.13.0

    (cherry picked from commit 1997ca3)
    jyp authored and FRidh committed Mar 2, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    62898f0 View commit details
  2. pythonPackages.tensorflow-tensorboard: 1.11.0 -> 1.13.0

    (cherry picked from commit d1b7ada)
    jyp authored and FRidh committed Mar 2, 2019
    Copy the full SHA
    ca9f5b7 View commit details
  3. pythonPackages.tensorflow: 1.11 -> 1.13.1

    (cherry picked from commit 1c350dc)
    jyp authored and FRidh committed Mar 2, 2019
    Copy the full SHA
    f5bb642 View commit details
  4. python: tensorflow: remove python3.7 restriction

    (cherry picked from commit 9dd81f9)
    Averell Dalton authored and FRidh committed Mar 2, 2019
    Copy the full SHA
    ef20994 View commit details
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/tensorflow-estimator/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k
, numpy
, absl-py
, mock
}:

buildPythonPackage rec {
pname = "tensorflow-estimator";
version = "1.13.0";
format = "wheel";

src = fetchPypi {
pname = "tensorflow_estimator";
inherit version format;
sha256 = "068l4w0w7dj9gqkf8avjclq9zsp7ifwzw4rpf4qjylz3hczamzbw";
};

propagatedBuildInputs = [ mock numpy absl-py ];

meta = with stdenv.lib; {
description = "TensorFlow Estimator is a high-level API that encapsulates model training, evaluation, prediction, and exporting.";
homepage = http://tensorflow.org;
license = licenses.asl20;
maintainers = with maintainers; [ jyp ];
};
}

Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
, grpcio
, markdown
, futures
, absl-py
}:

# tensorflow/tensorboard is built from a downloaded wheel, because
@@ -13,7 +14,7 @@

buildPythonPackage rec {
pname = "tensorflow-tensorboard";
version = "1.11.0";
version = "1.13.0";
format = "wheel";

src = fetchPypi ({
@@ -22,13 +23,15 @@ buildPythonPackage rec {
format = "wheel";
} // (if isPy3k then {
python = "py3";
sha256 = "1nkd37zq9mk0gc9x6d4x8whahbx2cn0wl94lir3g1pibdzx9hc4v";
sha256 = "19ixs811ndx8qh72dif0ywjss3rv7pf1khsgg6rvfjb9nw8wgjc2";
} else {
python = "py2";
sha256 = "1mkyb5gn952i4s7fmc9ay4yh74ysrqbiqna6dl1qmahjpbaavbf5";
}));

propagatedBuildInputs = [ numpy werkzeug protobuf markdown grpcio ] ++ lib.optional (!isPy3k) futures;
propagatedBuildInputs = [ numpy werkzeug protobuf
markdown
grpcio absl-py ]; # ++ lib.optional (!isPy3k) futures;

meta = with stdenv.lib; {
description = "TensorFlow's Visualization Toolkit";
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/tensorflow/bin.nix
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
, mock
, backports_weakref
, enum34
, tensorflow-estimator
, tensorflow-tensorboard
, cudaSupport ? false
, cudatoolkit ? null
@@ -41,7 +42,7 @@ let

in buildPythonPackage rec {
pname = "tensorflow";
version = "1.11.0";
version = "1.13.1";
format = "wheel";

src = let
@@ -50,10 +51,10 @@ in buildPythonPackage rec {
platform = if stdenv.isDarwin then "mac" else "linux";
unit = if cudaSupport then "gpu" else "cpu";
key = "${platform}_py_${pyver}_${unit}";
dls = import ./tf1.11.0-hashes.nix;
dls = import (./. + "/tf${version}-hashes.nix");
in fetchurl dls.${key};

propagatedBuildInputs = [ protobuf numpy termcolor grpcio six astor absl-py gast tensorflow-tensorboard keras-applications keras-preprocessing ]
propagatedBuildInputs = [ protobuf numpy termcolor grpcio six astor absl-py gast tensorflow-estimator tensorflow-tensorboard keras-applications keras-preprocessing ]
++ lib.optional (!isPy3k) mock;

# Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
@@ -64,7 +65,6 @@ in buildPythonPackage rec {
rm $out/bin/tensorboard
'';

installFlags = "--no-dependencies"; # tensorflow wants setuptools 39, can't allow that.
# Note that we need to run *after* the fixup phase because the
# libraries are loaded at runtime. If we run in preFixup then
# patchelf --shrink-rpath will remove the cuda libraries.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/tensorflow/prefetcher.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version=1.11.0
version=1.13.1
hashfile=tf${version}-hashes.nix
rm -f $hashfile
echo "{" >> $hashfile
for sys in "linux" "mac"; do
for tfpref in "cpu/tensorflow" "gpu/tensorflow_gpu"; do
for pykind in "py2-none-any" "py3-none-any" "cp27-none-linux_x86_64" "cp35-cp35m-linux_x86_64" "cp36-cp36m-linux_x86_64"; do
for pykind in "py2-none-any" "py3-none-any" "cp27-none-linux_x86_64" "cp35-cp35m-linux_x86_64" "cp36-cp36m-linux_x86_64" "cp37-cp37m-linux_x86_64"; do
if [ $sys == "mac" ]; then
[[ $pykind =~ py.* ]] && [[ $tfpref =~ cpu.* ]]
result=$?
34 changes: 0 additions & 34 deletions pkgs/development/python-modules/tensorflow/tf1.11.0-hashes.nix

This file was deleted.

42 changes: 42 additions & 0 deletions pkgs/development/python-modules/tensorflow/tf1.13.1-hashes.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
linux_py_27_cpu = {
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp27-none-linux_x86_64.whl";
sha256 = "0y1vd3y5fxcjj5d35qbk8482b0s642nyp0c2sm068vx5wd4sjpcg";
};
linux_py_35_cpu = {
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp35-cp35m-linux_x86_64.whl";
sha256 = "0b27swk4c2vaimwzbzl4c7xnccr9cfak5a3848lfqlcavcmbp94j";
};
linux_py_36_cpu = {
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp36-cp36m-linux_x86_64.whl";
sha256 = "087jwjby3bym09z55cjhc587aasf01y6l009p1q2vcpfq7s7ljmk";
};
linux_py_37_cpu = {
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp37-cp37m-linux_x86_64.whl";
sha256 = "0as68dp87lh7ffcccb149km6vws15ap04604irxwz35fq9h7grxg";
};
linux_py_27_gpu = {
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp27-none-linux_x86_64.whl";
sha256 = "0bf239f2bnsbqs3qh4xdql9pgbsm0zk7j8q1hg0wn0wrq440n0ds";
};
linux_py_35_gpu = {
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp35-cp35m-linux_x86_64.whl";
sha256 = "1cqav22a8yz6fzk46z6kv1ha2i28h5wccbd7k66drrfxibmb93j0";
};
linux_py_36_gpu = {
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp36-cp36m-linux_x86_64.whl";
sha256 = "1xnbiz36z7nicqrv0cmymfnwb8mdz2hifcv71gh6gnyi1962f2d7";
};
linux_py_37_gpu = {
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp37-cp37m-linux_x86_64.whl";
sha256 = "10gcrmd9y5a89wpi4rpp9scc9l2krijv8yjp7iphlykmn54ps74k";
};
mac_py_2_cpu = {
url = "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py2-none-any.whl";
sha256 = "1a6y5xj2wqkd8qmabn2xjg3q7x2jfixwrz351dgcxlhy8qy5yc0g";
};
mac_py_3_cpu = {
url = "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py3-none-any.whl";
sha256 = "1klsv18k0isfd61z1wirfz1lnqmx8k73ga8g9s18yand65iycads";
};
}
34 changes: 0 additions & 34 deletions pkgs/development/python-modules/tensorflow/tf1.7.1-hashes.nix

This file was deleted.

10 changes: 6 additions & 4 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -5015,17 +5015,19 @@ in {

zerobin = callPackage ../development/python-modules/zerobin { };

tensorflow-estimator = callPackage ../development/python-modules/tensorflow-estimator { };

tensorflow-tensorboard = callPackage ../development/python-modules/tensorflow-tensorboard { };

tensorflow = disabledIf isPy37 (
tensorflow =
if stdenv.isDarwin
then callPackage ../development/python-modules/tensorflow/bin.nix { }
else callPackage ../development/python-modules/tensorflow/bin.nix rec {
cudaSupport = pkgs.config.cudaSupport or false;
inherit (pkgs.linuxPackages) nvidia_x11;
cudatoolkit = pkgs.cudatoolkit_9_0;
cudnn = pkgs.cudnn_cudatoolkit_9_0;
});
cudatoolkit = pkgs.cudatoolkit_10_0;
cudnn = pkgs.cudnn_cudatoolkit_10_0;
};

tensorflowWithoutCuda = self.tensorflow.override {
cudaSupport = false;