Skip to content

Commit

Permalink
Upgrade to tensorflow 1.4.0 (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored Nov 3, 2017
1 parent 51be45c commit 70c9544
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions install/tensorflow_ops_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ def create_tensorflow_extension(nvcc_settings, device_info):
depends = glob.glob(os.path.join(source_path, '*.h'))

# Include directories
tf_inc = tf.sysconfig.get_include()
include_dirs = [os.path.join('montblanc', 'include'), source_path]
include_dirs += [tf.sysconfig.get_include()]
include_dirs += [tf_inc, os.path.join(tf_inc, "external", "nsync", "public")]

# Libraries
library_dirs = []
libraries = []
library_dirs = [tf.sysconfig.get_lib()]
libraries = ['tensorflow_framework']
extra_link_args = ['-fPIC', '-fopenmp', '-g0']

# Macros
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def include_pkg_dirs():
'numexpr >= 2.6.1',
'python-casacore >= 2.1.2',
'ruamel.yaml >= 0.15.22',
"{} >= 1.3.0".format(tensorflow_package),
"{} == 1.4.0".format(tensorflow_package),
]

from install.tensorflow_ops_ext import (BuildCommand,
Expand Down

0 comments on commit 70c9544

Please sign in to comment.