Skip to content

Commit f1dbfe5

Browse files
smurchingthunterdb
authored andcommitted
Update DLP to use new RC of tensorframes (v0.2.9-rc3) (#45)
* Update DLP to use new RC of tensorframes (v0.2.9-rc0) * Update tensorflow dependency from 1.1 -> 1.3, add pandas dependency * Update test_tf_consistency to only compare graph nodes (exclude 'version', 'library' fields from comparison) * Add cython dependency * Move cython up in requirements file, hopefully pip installs it first? * fix typo * Update pandas to version that has cython dependency * Remove cython dependency * Update numpy version from 1.11.2 --> 1.13.1 * Update python dependencies to minimum version requirements instead of exact requirements * Add upper version bound on pillow * Temporarily set keras version to 2.0.4 to see if build succeeds * Debugging, do not merge * Try tests with keras >= 2.0.4 * Fix keras version to 2.0.4, add explanatory comment * Update tensorframes dep to 0.2.9-rc1 * Remove print statements * Update tensorframes version to 0.2.9-rc1 * Upgrade to tensorframes RC2 * Update to tensorframes 0.2.9-rc3
1 parent a5a6e07 commit f1dbfe5

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sparkComponents ++= Seq("mllib-local", "mllib", "sql")
3434

3535
// add any Spark Package dependencies using spDependencies.
3636
// e.g. spDependencies += "databricks/spark-avro:0.1"
37-
spDependencies += s"databricks/tensorframes:0.2.8-s_${scalaMajorVersion}"
37+
spDependencies += s"databricks/tensorframes:0.2.9-rc3-s_${scalaMajorVersion}"
3838

3939

4040
// These versions are ancient, but they cross-compile around scala 2.10 and 2.11.

python/requirements.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# This file should list any python package dependencies.
2-
coverage==4.4.1
3-
h5py==2.7.0
4-
keras==2.0.4
5-
nose==1.3.7 # for testing
6-
numpy==1.11.2
7-
pillow==4.1.1
8-
pygments==2.2.0
9-
tensorflow==1.1.0
10-
six==1.10.0
2+
coverage>=4.4.1
3+
h5py>=2.7.0
4+
keras==2.0.4 # NOTE: this package has only been tested with keras 2.0.4 and may not work with other releases
5+
nose>=1.3.7 # for testing
6+
numpy>=1.11.2
7+
pillow>=4.1.1,<4.2
8+
pygments>=2.2.0
9+
tensorflow==1.3.0
10+
pandas>=0.19.1
11+
six>=1.10.0

python/spark-package-deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file should list any spark package dependencies as:
22
# :package_name==:version e.g. databricks/spark-csv==0.1
3-
databricks/tensorframes==0.2.8
3+
databricks/tensorframes==0.2.9-rc3

python/tests/graph/test_builder.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,13 @@ def test_tf_consistency(self):
5858

5959
self.assertEqual(z_ref, z_tgt)
6060

61-
# Version texts are not essential part of the graph, ignore them
62-
gdef_ref.ClearField("versions")
63-
gfn.graph_def.ClearField("versions")
61+
# Remove all fields besides "node" from the graph definition, since we only
62+
# care that the nodes are equal
63+
# TODO(sid.murching) find a cleaner way of removing all fields besides "node"
64+
nonessentialFields = ["versions", "version", "library"]
65+
for fieldName in nonessentialFields:
66+
gdef_ref.ClearField(fieldName)
67+
gfn.graph_def.ClearField(fieldName)
6468

6569
# The GraphDef contained in the GraphFunction object
6670
# should be the same as that in the one exported directly from TensorFlow session

0 commit comments

Comments
 (0)