Skip to content

Commit

Permalink
Merge pull request #378 from yahoo/leewyang_v1.4.1
Browse files Browse the repository at this point in the history
v1.4.1 release
  • Loading branch information
leewyang authored Dec 3, 2018
2 parents 7bfeb61 + 38774d1 commit e392a02
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
author = 'Yahoo Inc'

# The short X.Y version
version = '1.4.0'
version = '1.4.1'
# The full version, including alpha/beta/rc tags
release = '1.4.0'
release = '1.4.1'


# -- General configuration ---------------------------------------------------
Expand Down
25 changes: 15 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
from setuptools import setup

with open('README.md') as f:
long_description = f.read()

setup(
name = 'tensorflowonspark',
packages = ['tensorflowonspark'],
version = '1.4.0',
description = 'Deep learning with TensorFlow on Apache Spark clusters',
author = 'Yahoo, Inc.',
url = 'https://github.com/yahoo/TensorFlowOnSpark',
keywords = ['tensorflowonspark', 'tensorflow', 'spark', 'machine learning', 'yahoo'],
install_requires = ['tensorflow'],
license = 'Apache 2.0',
classifiers = [
name='tensorflowonspark',
packages=['tensorflowonspark'],
version='1.4.1',
description='Deep learning with TensorFlow on Apache Spark clusters',
long_description=long_description,
long_description_content_type='text/markdown',
author='Yahoo, Inc.',
url='https://github.com/yahoo/TensorFlowOnSpark',
keywords=['tensorflowonspark', 'tensorflow', 'spark', 'machine learning', 'yahoo'],
install_requires=['tensorflow'],
license='Apache 2.0',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
Expand Down
2 changes: 1 addition & 1 deletion tensorflowonspark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s (%(threadName)s-%(process)d) %(message)s")

__version__ = "1.4.0"
__version__ = "1.4.1"
6 changes: 5 additions & 1 deletion tensorflowonspark/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
import logging
import os
import socket
import subprocess
import errno
from socket import error as socket_error
from . import gpu_info


def single_node_env(num_gpus=1):
"""Setup environment variables for Hadoop compatibility and GPU allocation"""
Expand All @@ -34,12 +37,13 @@ def single_node_env(num_gpus=1):
logging.info("Using CPU")
os.environ['CUDA_VISIBLE_DEVICES'] = ''


def get_ip_address():
"""Simple utility to get host IP address."""
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ip_address = s.getsockname()[0]
ip_address = s.getsockname()[0]
except socket_error as sockerr:
if sockerr.errno != errno.ENETUNREACH:
raise sockerr
Expand Down

0 comments on commit e392a02

Please sign in to comment.