Code Monkey home page Code Monkey logo
tensorflow

tensorflow / tensorflow Goto Github PK

View Code? Open in Web Editor NEW
167.9K 7.8K 70.4K 950.39 MB

An Open Source Machine Learning Framework for Everyone

Home Page: https://tensorflow.org

License: Apache License 2.0

Python 24.08% C++ 69.17% C 0.76% Java 0.60% Shell 0.35% Jupyter Notebook 0.45% CMake 0.10% Makefile 0.01% Objective-C 0.10% Objective-C++ 0.17% Go 1.19% Batchfile 0.02% LLVM 0.01% Ruby 0.01% Perl 0.01% HTML 2.66% Smarty 0.05% Dockerfile 0.24% C# 0.01% Swift 0.04%
tensorflow machine-learning python deep-learning deep-neural-networks neural-network ml distributed

tensorflow's Introduction

Python PyPI DOI CII Best Practices OpenSSF Scorecard Fuzzing Status Fuzzing Status Contributor Covenant

Documentation
Documentation

TensorFlow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries, and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML-powered applications.

TensorFlow was originally developed by researchers and engineers working on the Google Brain team within Google's Machine Intelligence Research organization to conduct machine learning and deep neural networks research. The system is general enough to be applicable in a wide variety of other domains, as well.

TensorFlow provides stable Python and C++ APIs, as well as non-guaranteed backward compatible API for other languages.

Keep up-to-date with release announcements and security updates by subscribing to [email protected]. See all the mailing lists.

Install

See the TensorFlow install guide for the pip package, to enable GPU support, use a Docker container, and build from source.

To install the current release, which includes support for CUDA-enabled GPU cards (Ubuntu and Windows):

$ pip install tensorflow

Other devices (DirectX and MacOS-metal) are supported using Device plugins.

A smaller CPU-only package is also available:

$ pip install tensorflow-cpu

To update TensorFlow to the latest version, add --upgrade flag to the above commands.

Nightly binaries are available for testing using the tf-nightly and tf-nightly-cpu packages on PyPi.

Try your first TensorFlow program

$ python
>>> import tensorflow as tf
>>> tf.add(1, 2).numpy()
3
>>> hello = tf.constant('Hello, TensorFlow!')
>>> hello.numpy()
b'Hello, TensorFlow!'

For more examples, see the TensorFlow tutorials.

Contribution guidelines

If you want to contribute to TensorFlow, be sure to review the contribution guidelines. This project adheres to TensorFlow's code of conduct. By participating, you are expected to uphold this code.

We use GitHub issues for tracking requests and bugs, please see TensorFlow Discuss for general questions and discussion, and please direct specific questions to Stack Overflow.

The TensorFlow project strives to abide by generally accepted best practices in open-source software development.

Continuous build status

You can find more community-supported platforms and configurations in the TensorFlow SIG Build community builds table.

Official Builds

Build Type Status Artifacts
Linux CPU Status PyPI
Linux GPU Status PyPI
Linux XLA Status TBA
macOS Status PyPI
Windows CPU Status PyPI
Windows GPU Status PyPI
Android Status Download
Raspberry Pi 0 and 1 Status Py3
Raspberry Pi 2 and 3 Status Py3
Libtensorflow MacOS CPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Linux CPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Linux GPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Windows CPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Windows GPU Status Temporarily Unavailable Nightly Binary Official GCS

Resources

Learn more about the TensorFlow community and how to contribute.

Courses

License

Apache License 2.0

tensorflow's People

Contributors

tensorflower-gardener avatar mihaimaruseac avatar yongtang avatar gunan avatar caisq avatar mrry avatar roserg avatar hawkinsp avatar benoitsteiner avatar vrv avatar jpienaar avatar akuegel avatar cheshire avatar River707 avatar qlzh727 avatar martinwicke avatar yifeif avatar joker-eph avatar mdanatg avatar ezhulenev avatar allenlavoie avatar d0k avatar jsimsa avatar smit-hinsu avatar ebrevdo avatar alextp avatar annarev avatar MarkDaoust avatar chsigg avatar andyly avatar

Stargazers

Natalie Nguyen avatar  avatar Jaemin Kim avatar Saikiran voladri avatar  avatar  avatar  avatar  avatar Jerry_yang avatar Kajal Singh avatar Wiktor Wójcik avatar  avatar  avatar  avatar  avatar Alive avatar  avatar ali avatar Mushraf Altaf avatar Gloria Felicia | Glo avatar  avatar weylz avatar qujo avatar  avatar haoming avatar Hossein avatar TomorrowData avatar long avatar  avatar Victor Eduardo Nascimento avatar Leo avatar 黑三宝 avatar  avatar  avatar Semih Güreşçi avatar  avatar Vishakh Abhayan avatar MOHD FAIZY avatar  avatar victor immanuel avatar An Dang-Hieu avatar Ismail Maj avatar  avatar everything you need for peaceful life avatar  avatar Hong WonKeun avatar TryCatch avatar lgqfhwy avatar Guilherme Ferrari Fortino avatar Bo-Hai Li avatar Kevin Hermawan avatar Alexander John avatar hxx avatar Gavin the amateur avatar cpw avatar  avatar  avatar  avatar Steven Dahdah avatar Peter Walecki, Ph.D. avatar Myrfa Yumiaji Ferra avatar amirali yavari avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar ZhenLiang Yu avatar  avatar Sewan Ali avatar  avatar Kifanga Mukundi avatar  avatar Josiah avatar  avatar  avatar icecn avatar  avatar Joey Yang avatar Joseph Corrado avatar abdelbaset avatar Brayden Pelt avatar  avatar OneSnoopyDog  avatar Ahmed Fawzy avatar Dawei Li avatar Gautham Kanagaraj avatar Collin Dutrow avatar Mohit Khandubhai Patel avatar Camille Rosewright avatar Tobias Öser avatar  avatar  avatar Pranam K avatar Yash Borse avatar  avatar Trần Trung Thái avatar  avatar

Watchers

Ivan Kozik avatar Ali Mills avatar xman avatar michele mondora avatar lijian avatar Alex Nguyen avatar Piotr Mąsior avatar Kozo Nishida avatar satzz avatar Jaime Chen avatar Chee Yeo avatar  avatar Jimmy Lam avatar Khang Pham avatar Benjamin Kramer avatar Arcko avatar  avatar william de melo gueiros avatar Eric Kerr avatar Alexander Mossin avatar  avatar Fan Jiang avatar  avatar Fangdun Tsai avatar James Tindall avatar  avatar  avatar Dan Frost avatar syco avatar Abhik Khanra avatar David Yoon avatar Syugo Saito avatar  avatar Stone Gao avatar David Jacobs avatar  avatar Jesse Montrose avatar  avatar Ming-der Wang avatar  avatar Oleg Kossoy avatar Bao Nguyen avatar Noam  Vergain avatar Yu-Lun Chen avatar Jeff Fox avatar zhurui1351 avatar Stephen Kong avatar matt hoffman avatar jonny avatar yuanhong avatar Bruce Garlock avatar Panagiotis avatar Kyeong Soo (Joseph) Kim avatar guoyou jiang avatar  avatar Gao Yuesong avatar  avatar Aakarsh Nair avatar  avatar  avatar Rodrigo Felippe avatar Nurul Ferdous avatar Liam Magee avatar  avatar Kelvin Li avatar Jawf avatar Nuno Lourenço avatar IceStar avatar Alexandre Magno avatar Matty Thorne avatar  avatar Manoel Carvalho Neto avatar  avatar Nguyen Tien Si avatar Ashish Chatterjee avatar anakin avatar Jax Law avatar wangxin avatar mr-elepfontius avatar Petri Fast avatar  avatar Yifan Zhang avatar  avatar abel rojas avatar ROHITHA DASSANAYAKE avatar geminilu avatar ningxu avatar Martin Laprise avatar Jon Barker avatar AsO avatar Amy avatar Tsvetan Tsvetanov avatar Liu Shaohui avatar Munetika Fujita avatar Akhmat Safrudin avatar lonely7345 avatar A avatar Kazunori YAMAZAKI avatar Yoni Ben-Meshulam avatar wenjin wu avatar

tensorflow's Issues

Can't run TensorBoard on El Captain

Got this as an issue while trying to run TensorBoard on El Captain.

python tensorflow/tensorboard/tensorboard.py
/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'tensorflow/tensorboard/tensorboard.py': [Errno 2] No such file or directory

Even after following instructions here for installing tensorflow on a brew based installation of python the error remains same:

python tensorflow/tensorboard/tensorboard.py
python: can't open file 'tensorflow/tensorboard/tensorboard.py': [Errno 2] No such file or directory

Pre-trained models

One of the successes of Caffe has been its Model Zoo. Are there plans to support importing Caffe models or otherwise provide pre-trained models for TF?

Warning while creating Session on Mac OS X: can't determine number of CPU cores

While creating a Session, I get this warning (using pre-built whl on OSX). Any ideas?

s = tf.Session()
can't determine number of CPU cores: assuming 4
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 4
can't determine number of CPU cores: assuming 4
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 4

No module named tensorflow.python.platform

when running
python tensorflow/g3doc/tutorials/mnist/fully_connected_feed.py

get the following error:
Traceback (most recent call last):
File "tensorflow/g3doc/tutorials/mnist/fully_connected_feed.py", line 14, in
import tensorflow.python.platform
ImportError: No module named tensorflow.python.platform

Slack Channel

Is there any Slack channel connected to Tensorflow that you could access to get help?

Cannot import after installing with pip

I installed the binary with gpu support from pip, but when I import it, I get this error:

import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/init.py", line 4, in
from tensorflow.python import *
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/python/init.py", line 13, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 8, in
from google.protobuf import reflection as _reflection
File "/home/jxie/anaconda/lib/python2.7/site-packages/google/protobuf/reflection.py", line 56, in
from google.protobuf.pyext import cpp_message as message_impl
File "/home/jxie/anaconda/lib/python2.7/site-packages/google/protobuf/pyext/cpp_message.py", line 42, in
class GeneratedProtocolMessageType(_message.MessageMeta):
AttributeError: 'module' object has no attribute 'MessageMeta'

Pre-trained models

Is there any plan to include caffe-like pre-trained models to use for predictions?

g3doc format

Has the g3doc specification been publicly released? Is an effort going to be made so that outside contributors know exactly how comments should be written in order to be correctly parsed?

Error while installing tensorflow using pip on Ubuntu 14.04 32-bit system

Hi devs,

I was trying to install the package in Ubuntu when this error is occurring. I am not sure what the reason is since I am using Python 2.7.6 and already have numpy and six installed.

/usr/local/bin/pip run on Tue Nov 10 12:44:29 2015
tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
 File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
  status = self.run(options, args)
 File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 257, in run
  InstallRequirement.from_line(name, None))
 File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 167, in from_line
   raise UnsupportedWheel("%s is not a supported wheel on this platform." % wheel.filename
UnsupportedWheel: tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on    this  platform.

Apologies if this is a common problem. Thanks in advance :)

Java interface

Issue to trace effort of swig interface for java. Started implementation - will update with progress. If anyone has any comments/tips - please feel welcome to join the discussion!

Could port to OpenCL?

Could the project be port to OpenCL? Currently it only supports CUDA which is proprietary. OpenCL can be more wide spread and portable.

OSX Yosemite "can't determine number of CPU cores: assuming 4"

>>> import tensorflow as tf
>>> hello = tf.constant('hello, tensorflow')
>>> sess = tf.Session()
can't determine number of CPU cores: assuming 4
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 4
can't determine number of CPU cores: assuming 4
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 4

got this warning but still works though

Object Detection

How do I train and use ImageNet data for Object Detection?

Sid

Ubuntu ImportError: No module named core.framework.graph_pb2

I am unable to import tensorflow.
This problem appears whether I try to rebuild from source or by using the .whl directly.

(tensorflow)$ uname -a
Linux yi-2014 3.13.0-64-generic #104-Ubuntu SMP Wed Sep 9 12:36:12 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
(tensorflow)$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "tensorflow/python/__init__.py", line 13, in <module>
    from tensorflow.core.framework.graph_pb2 import *
ImportError: No module named core.framework.graph_pb2
>>> 

simplify contributing process

Currently the contributing process is rather complex... I have to use another website, clone the repo, and more. I'm just interested in making some minor tweaks to the documentation that normally can be done with just a few clicks using GitHub.

Swift API

Swift is a very popular and expressive language with a large community of pro developers.

OSX PIP Install: Setup.py missing

I have Python 2.7.4 installed from MacPorts on El Capitan

This seems to be a more fundamental error that the "six" dependency.

/var/folders/_1/nd1fyl516b79rmsz9xs3_wsc0000gn/T/pip-2CPCqy-build/setup.py is indeed not there.

(tensor)[email protected]:~$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Downloading/unpacking https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  Downloading tensorflow-0.5.0-py2-none-any.whl (9.8MB): 9.8MB downloaded
  Running setup.py egg_info for package from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
    IOError: [Errno 2] No such file or directory: '/var/folders/_1/nd1fyl516b79rmsz9xs3_wsc0000gn/T/pip-2CPCqy-build/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

IOError: [Errno 2] No such file or directory: '/var/folders/_1/nd1fyl516b79rmsz9xs3_wsc0000gn/T/pip-2CPCqy-build/setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /var/folders/_1/nd1fyl516b79rmsz9xs3_wsc0000gn/T/pip-2CPCqy-build
Storing complete log in /Users/joshuapearce/.pip/pip.log
(tensor)[email protected]:~$ python --version
Python 2.7.4

GPU_Base dockerfile image not found

I'm attempting to use the GPU dockerfile to build an image with gpu support, however it points at b.gcr.io/tensorflow-testing/tensorflow-full which doesn't appear to be accessible. The image at b.gcr.io/tensorflow/tensorflow-full doesn't have CUDA in it, is there a different image I need to point the script at?

Go API

adding a Go port 😄

Problems running the image example (Python 2.7.10, PyEnv, Xubuntu 14.04 64bit)

JFYI, I'm getting the following error when trying to execute the models/image/mnist/convolutional.py example (Python 2.7.10 in PyEnv, on Xubuntu 14.04, 64bit):

[samuel site-packages]$ pwd
/home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages
[samuel site-packages]$ python tensorflow/models/image/mnist/convolutional.py
Traceback (most recent call last):
  File "tensorflow/models/image/mnist/convolutional.py", line 12, in <module>
    import tensorflow.python.platform
  File "/home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
    from tensorflow.python.client.client_lib import *
  File "/home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
    from tensorflow.python.client.session import InteractiveSession
  File "/home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
    from tensorflow.python import pywrap_tensorflow as tf_session
  File "/home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: /home/samuel/.pyenv/versions/2.7.10/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: undefined symbol: PyUnicodeUCS4_FromStringAndSize

Will see if I can figure out something, but thought to report in the meanwhile.

Ruby API

we’re hoping to entice you to contribute SWIG interfaces to your favorite language -- be it Go, Java, Lua, Javascript, or R. - no Ruby, really? c'mon. Ruby is awesome

Error in the Getting started/Variables section of the website

The code part of the code
var = tf.Variable(0, name="counter")
one = tf.constant(1)
new_value = tf.add(state, one)
update = tf.assign(state, new_value)

should be changed to

var = tf.Variable(0, name="counter")
one = tf.constant(1)
new_value = tf.add(var, one)
update = tf.assign(var, new_value)

*The rest of the code after this section works as expected *

Integration with blaze ecosystem numba python to llvm compiler?

Hi Tensorflow team,

Thanks for the open source work!

I'm always on the lookout to replace lower level work with python code. I'm therefore really excited about Numba a JIT compiler that can turn a subset of pure python syntax into really fast multithreaded compiled code across multiple backends. There are also other cool projects that provide different abstractions and graph symbolic representations to different data backends.

http://blaze.pydata.org/
https://github.com/libdynd/dynd-python
https://github.com/blaze/blaze

I don't have any specific use cases in mind (maybe to efface c++ use?), but just wanted to make the team aware. As a pydata user, I would love to see any cooperation and synergy between all these amazing projects in the ecosystem.

JVM, .NET Language Support

Your website says "... contribute SWIG interfaces to your favorite language ...". It will be good if yo have pure implementations in other languages like JVM and .NET without having to use SWIG.

Can't install on El Capitan - probably python again :(

Brians-MacBook-Pro:~ brian$ sudo easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 7.1.2
Downloading https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196
Processing pip-7.1.2.tar.gz
Writing /tmp/easy_install-LyZnJ8/pip-7.1.2/setup.cfg
Running pip-7.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LyZnJ8/pip-7.1.2/egg-dist-tmp-qbKGmv
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 7.1.2 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
Brians-MacBook-Pro:~ brian$ pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Collecting tensorflow==0.5.0 from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Downloading https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl (9.8MB)
100% |████████████████████████████████| 9.8MB 46kB/s
Collecting six>=1.10.0 (from tensorflow==0.5.0)
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting numpy>=1.9.2 (from tensorflow==0.5.0)
Downloading numpy-1.10.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.7MB)
100% |████████████████████████████████| 3.7MB 125kB/s
Installing collected packages: six, numpy, tensorflow
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/init.py", line 315, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/ct/f74bny3d10z5nb8n_y5vc6m00000gn/T/pip-BdY92N-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
Brians-MacBook-Pro:~ brian$

Remote worker configuration

Does this release support remote workers out of the box? I couldn't find details in the tutorials, but the whitepaper and tensorflow/core/common_runtime/device.h talked about adding remote devices through RPC. Is a parameter server or alternative already implemented in here somewhere? If remote workers are supported out of the box, what is the execution model? Is there a daemon or do you have to configure a session in a certain way to act as one?

0.5.0 wheel install on Mac OS X using Homebrew python broken

This is what happens:

~: pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Collecting tensorflow==0.5.0 from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  Downloading https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl (9.8MB)
    100% |████████████████████████████████| 9.8MB 51kB/s
Collecting six>=1.10.0 (from tensorflow==0.5.0)
  Downloading six-1.10.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.9.2 in /usr/local/lib/python2.7/site-packages (from tensorflow==0.5.0)
Installing collected packages: six, tensorflow
  Found existing installation: six 1.9.0
    Uninstalling six-1.9.0:
      Successfully uninstalled six-1.9.0
Successfully installed six-1.10.0 tensorflow-0.5.0
~: python
Python 2.7.10 (default, Jul 13 2015, 12:05:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 13, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 16, in <module>
    from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 22, in <module>
    serialized_pb=_b('\n,tensorflow/core/framework/tensor_shape.proto\x12\ntensorflow\"d\n\x10TensorShapeProto\x12-\n\x03\x64im\x18\x02 \x03(\x0b\x32 .tensorflow.TensorShapeProto.Dim\x1a!\n\x03\x44im\x12\x0c\n\x04size\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\tb\x06proto3')
TypeError: __init__() got an unexpected keyword argument 'syntax'

Go API

Hi!,
I'm really interested on contribute in my spare time on this project, it would be great for me port the Python libraries to Go, or help with this task, the problem is that after read the "Contributing guidelines" I still don't know how to do it.
I tried to sing the Individual CLA, but I get an error that says: "You must be an owner of the contributors group in order to submit this CLA.".

Btw, are you working, or do you plan to implement soon the Go libs?

Some related projects that I implemented in Go: https://github.com/alonsovidales/pit - This is a distributed recommender system based in the "Adaptive Bootstrapping of Recommender Systems Using Decision Trees" paper by Yahoo. The site of the project: http://pitia.info/
And the Go ML: Some machine learning algorithms in Go: https://github.com/alonsovidales/go_ml I also implemented Neural Networks with CUDA: https://github.com/alonsovidales/go_ml/tree/cuda_implementation

Thanks,

Cuda 3.0?

Are there plans to support Cuda compute capability 3.0?

Distributed Version

Is there any distributed version of TensorFlow that could work on multiple machines?

-Minjie

Windows support

I just learned about TensorFlow and I want to install on Windows 7, 64. I have both Python 2.7 and 3.5 on my PC.

Thanks,

minimum req: Cuda compute capability 3.5

Tensorflow seems to require a cuda compute capability of 3.5, thereby excluding amazon G2 instances which use a GRID K520 with 3.0, might be good to know:

tensorflow/core/common_runtime/gpu/gpu_init.cc:88] Found device 0 with properties:
name: GRID K520
major: 3 minor: 0 memoryClockRate (GHz) 0.797
pciBusID 0000:00:03.0
Total memory: 4.00GiB
Free memory: 3.95GiB
I tensorflow/core/common_runtime/gpu/gpu_init.cc:112] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_init.cc:122] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:611] Ignoring gpu device (device: 0, name: GRID K520, pci bus id: 0000:00:03.0) with Cuda compute capability 3.0. The minimum required Cuda capability is 3.5.
I tensorflow/core/common_runtime/gpu/gpu_device.cc:611] Ignoring gpu device (device: 0, name: GRID K520, pci bus id: 0000:00:03.0) with Cuda compute capability 3.0. The minimum required Cuda capability is 3.5.
I tensorflow/core/common_runtime/gpu/gpu_device.cc:611] Ignoring gpu device (device: 0, name: GRID K520, pci bus id: 0000:00:03.0) with Cuda compute capability 3.0. The minimum required Cuda capability is 3.5.

Error when run docker image on Mac OS X 10.11.1

I'm getting the following error when trying to execute

  • docker run -it b.gcr.io/tensorflow/tensorflow

9390232ac080: Error pulling image (latest) from b.gcr.io/tensorflow/tensorflow, endpoint: https://b.gcr.io/v1/, Server error: Status9390232ac080: Error pulling image (latest) from b.gcr.io/tensorflow/tensorflow, Server error: Status 403 while fetching image layer (a5a467fddcb8848a80942d0191134c925fa16ffa9655c540acd34284f4f6375d)
ac65c371c3a5: Download complete
a5a467fddcb8: Error pulling dependent layers

Error pulling image (latest) from b.gcr.io/tensorflow/tensorflow, Server error: Status 403 while fetching image layer (a5a467fddcb8848a80942d0191134c925fa16ffa9655c540acd34284f4f6375d)

OpenCL support

I understand TensorFlow only supports CUDA. What would need to be done to add in OpenCL support?

Windows Support and Documentation

I was excited to see tensorflow, but as many other users, we are on Windows, would be nice to see this support happen. Will you accept Windows port contributions?

In the meantime, Microsoft recently released their Deep Learning toolkit which scales on multiple machines with GPUs for both Linux and Windows. https://github.com/Microsoft/CNTK

Connectionist Temporal Classification example

I found these lines in array_grad.py

# Edit Distance has no gradient (but can be used to eval seq2seq or CTC).
ops.NoGradient("EditDistance")

Is there any implementation of CTC cost function in tensorflow, or any example concern CTC ?

CUDA 7.5 fails with pip install and docker (Ubuntu 14.04)

Installing via:

# For GPU-enabled version (only install this version if you have the CUDA sdk installed)
$ pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

Tried to run the alexnet_benchmark.py and it's looking for CUDA 7.0 specifically.

I have CUDA 7.5 on my machine.

Full stack:

Traceback (most recent call last):
  File "alexnet_benchmark.py", line 21, in <module>
    import tensorflow.python.platform
  File "/home/awesomebox/anaconda/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/home/awesomebox/anaconda/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
    from tensorflow.python.client.client_lib import *
  File "/home/awesomebox/anaconda/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
    from tensorflow.python.client.session import InteractiveSession
  File "/home/awesomebox/anaconda/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
    from tensorflow.python import pywrap_tensorflow as tf_session
  File "/home/awesomebox/anaconda/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/awesomebox/anaconda/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory

Tried the docker install, but the docker image is configured for a particular NVIDIA driver version, and doesn't work with others. (this is a known issue: docker driver version and system driver version must exactly match)

Setting lower gcc version for cuda

gcc 4.10 and up are not supported for the required cuda toolkit. How can I specify a different version of gcc to bazel? I tried setting a new version with --compiler, but it reported that no toolchain was found. Do I need to provide a CROSSTOOL file or is there an easier way?

Installation over pip fails to import with protobuf 2.6.1

Pip freeze reports the following protobuf version

protobuf==2.6.1

However, upon importing I get the following error

Traceback (most recent call last):
  File "/home/panmari/PycharmProjects/tensor_stuff/stuff.py", line 150, in <module>
    import tensorflow as tf
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 13, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/core/framework/graph_pb2.py", line 16, in <module>
    from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 22, in <module>
    serialized_pb=_b('\n,tensorflow/core/framework/tensor_shape.proto\x12\ntensorflow\"d\n\x10TensorShapeProto\x12-\n\x03\x64im\x18\x02 \x03(\x0b\x32 .tensorflow.TensorShapeProto.Dim\x1a!\n\x03\x44im\x12\x0c\n\x04size\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\tb\x06proto3')
TypeError: __init__() got an unexpected keyword argument 'syntax'

Do I need a newer version of the protobuf package?

C# api

C# is very popular and expressive language with a large community of pro developers.

Missing "pip install --upgrade pip" in instructions leads to bogus error "No such file or directory ... setup.py"

I set up a virtualenv and ran ./bin/activate then tried the install command:

(tensorflow) $ ./bin/pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Downloading/unpacking https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  Downloading tensorflow-0.5.0-py2-none-any.whl (9.8Mb): 9.8Mb downloaded
  Running setup.py egg_info for package from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
    IOError: [Errno 2] No such file or directory: '/var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

IOError: [Errno 2] No such file or directory: '/var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build
Storing complete log in /Users/munafo/.pip/pip.log
(tensorflow) $ ls -l /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/tensorflow/tools/pip_package/setup.py 
-rw-r--r--  1 munafo  staff  2574 Nov  9 17:41 /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/tensorflow/tools/pip_package/setup.py
(tensorflow) $

As shown in the session, there is no /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/setup.py, but there is a /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/tensorflow/tools/pip_package/setup.py

So I suspect pip is failing to interpolate the subdirectory tensorflow/tools/pip_package into the path when trying to launch setup.py.

Here is another report of the same problem on Linux (the question asker is trying to install tensorflow-0.5.0-cp27-none-linux_x86_64.whl , and a comment was added by a user who has Ubuntu 12.04)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.