Questions tagged [tensorflow]

TensorFlow is an open-source library and API designed for deep learning, written and maintained by Google. Use this tag with a language-specific tag ([python], [c++], [javascript], [r], etc.) for questions about using the API to solve machine learning problems. The programming languages that can be used with TensorFlow API vary, so you must specify the programming language. Please specify the application area such as [object-detection] as well.

TensorFlow is a deep learning framework maintained by Google.

Interface

TensorFlow provides a API for building and executing data flow graphs. There is also a API for executing graphs, and adding new operation kernels. Other languages can invoke TensorFlow using its low-level API.

TensorFlow also includes TensorBoard, which is a web-based visualization tool for understanding performance and network features/parameters.

Speed

TensorFlow achieves its performance by parallelizing execution across multiple CPUs and GPUs. The kernel of each operation is implemented in C++, using efficient libraries such as Eigen and cuDNN for the best performance.

To get the most out of it, build it with compiler flags that let it use all the instruction-set extensions your CPU supports, for example -march=native.

Help / Support / How do I?

For help and support, technical or algorithmic questions, please submit your questions to Stack Overflow: https://stackoverflow.com/questions/tagged/tensorflow. Please do not use the mailing list or issue tracker for support.

Also check out the TensorFlow FAQ before asking a question.

When looking for info, especially build info, one needs to check both TensorFlow.org and the GitHub site both, since both sites do not replicate each other.

If you are new to Stack Overflow, please read How do I ask a good question? before posting, and take the tour.

Discussions

For general discussions, please join the TensorFlow discuss mailing list (AKA TensorFlow Google Group). This list is intended for general discussions about TensorFlow development and directions, not as a help forum. Instead, direct your questions to Stack Overflow, and report issues on GitHub.

Report Issues

Please report bugs, feature requests and installation / compatibility issues on the TensorFlow issues tracker on GitHub. If you need help with using TensorFlow, please do not use the issue tracker for that. Instead, direct your questions to Stack Overflow.

How-Tos and Tutorials

Official - How To

Official - Tutorial

TensorFlow End Users - GETTING STARTED, TUTORIALS & HOW-TO'S

Suggested Configuration

TensorFlow was originally developed and deployed on Linux systems but has been ported to other operating systems including Microsoft Windows and Apple MacOS. The TensorFlow community tends to favor Ubuntu Linux and support for Ubuntu installations is easier to find.

With the introductions of and containers along with notebooks setup of a TensorFlow workstation and sharing of data has become easier.

The most common brand of GPU used in a TensorFlow workstation is NVIDIA though the AMD Radeon product line is improving its support for machine learning applications. Using the CPU for TensorFlow rather than using a GPU can result in much slower processing by an order of magnitude.

Due to the continuing improvements in both hardware and software, any recommendations can quickly become out of date. However the following are some basic parameters.

OS: Ubuntu 64 bit Linux - currently most people seem to be using 16.x to 18.x however there is a new version every year or so.

GPU: NVIDIA CUDA enabled GPU - later series with more memory is better as the more recent products have a higher Compute Capability score. So a GTX 1080 TI with 8G is better than a GTX 660 with 3G. See NVIDA Developer Cuda GPUs as well as Which CUDA Toolkit version for older NVIDIA Driver and the Wikipedia topic CUDA.

RAM: Minimum of 8G. RAM or RAM with Swap Partition and possibly Swap File(s) however the amount of RAM needed varies depending on the size of the model and how much data is being processed

How to compile Tensorflow with SSE4.2 and AVX instructions?

Continuous Integration

Read Me

Site

Introduction to Neural Networks and Deep Learning

Neural Networks Demystified - Jupyter Notebooks
Neural Networks and Deep Learning - GitHub

Tensorflow Models

Models

Online Course

Teach Yourself Deep Learning with TensorFlow and Udacity
with Vincent Vanhoucke

Playground

Tinker With a neural network in your browser.

Syntax Highlighting

What is syntax highlighting and how does it work?

Since TensorFlow is not known to google/code-prettify Python is the best alternative.

<!-- language: lang-py -->

Website & License

https://www.tensorflow.org - TensorFlow is released under an Apache 2.0 License.

69929 questions
723
votes
9 answers

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

I am new to TensorFlow. I have recently installed it (Windows CPU version) and received the following message: Successfully installed tensorflow-1.4.0 tensorflow-tensorboard-0.4.0rc2 Then when I tried to run import tensorflow as tf hello =…
csg
  • 7,556
  • 3
  • 8
  • 28
630
votes
53 answers

TensorFlow not found using pip

I'm trying to install TensorFlow using pip: $ pip install tensorflow --user Collecting tensorflow Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow What am I doing…
user6574649
609
votes
26 answers

How to save/restore a model after training?

After you train a model in Tensorflow: How do you save the trained model? How do you later restore this saved model?
mathetes
  • 10,326
  • 7
  • 23
  • 32
401
votes
7 answers

What are logits? What is the difference between softmax and softmax_cross_entropy_with_logits?

In the tensorflow API docs they use a keyword called logits. What is it? A lot of methods are written like: tf.nn.softmax(logits, name=None) If logits is just a generic Tensor input, why is it named logits? Secondly, what is the difference between…
Shubhashis
  • 9,179
  • 11
  • 28
  • 44
369
votes
15 answers

What is the difference between 'SAME' and 'VALID' padding in tf.nn.max_pool of tensorflow?

What is the difference between 'SAME' and 'VALID' padding in tf.nn.max_pool of tensorflow? In my opinion, 'VALID' means there will be no zero padding outside the edges when we do max pool. According to A guide to convolution arithmetic for deep…
karl_TUM
  • 5,039
  • 8
  • 21
  • 39
359
votes
29 answers

How to tell if tensorflow is using gpu acceleration from inside python shell?

I have installed tensorflow in my ubuntu 16.04 using the second answer here with ubuntu's builtin apt cuda installation. Now my question is how can I test if tensorflow is really using gpu? I have a gtx 960m gpu. When I import tensorflow this is the…
Tamim Addari
  • 6,271
  • 9
  • 37
  • 52
338
votes
16 answers

How to find which version of TensorFlow is installed in my system?

I need to find which version of TensorFlow I have installed. I'm using Ubuntu 16.04 Long Term Support.
Hans Krupakar
  • 3,663
  • 2
  • 10
  • 19
312
votes
16 answers

How to prevent tensorflow from allocating the totality of a GPU memory?

I work in an environment in which computational resources are shared, i.e., we have a few server machines equipped with a few Nvidia Titan X GPUs each. For small to moderate size models, the 12 GB of the Titan X is usually enough for 2–3 people to…
Fabien C.
  • 3,275
  • 3
  • 11
  • 6
310
votes
11 answers

What is the meaning of the word logits in TensorFlow?

In the following TensorFlow function, we must feed the activation of artificial neurons in the final layer. That I understand. But I don't understand why it is called logits? Isn't that a mathematical function? loss_function =…
301
votes
14 answers

What's the difference between tf.placeholder and tf.Variable?

I'm a newbie to TensorFlow. I'm confused about the difference between tf.placeholder and tf.Variable. In my view, tf.placeholder is used for input data, and tf.Variable is used to store the state of data. This is all what I know. Could someone…
J.Doe
  • 3,419
  • 3
  • 11
  • 16
300
votes
12 answers

How to compile Tensorflow with SSE4.2 and AVX instructions?

This is the message received from running a script to check if Tensorflow is working: I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcublas.so.8.0 locally I tensorflow/stream_executor/dso_loader.cc:125]…
GabrielChu
  • 5,418
  • 8
  • 23
  • 35
289
votes
8 answers

What's the difference of name scope and a variable scope in tensorflow?

What's the differences between these functions? tf.variable_op_scope(values, name, default_name, initializer=None) Returns a context manager for defining an op that creates variables. This context manager validates that the given values are from…
Xiuyi Yang
  • 3,141
  • 5
  • 12
  • 13
288
votes
24 answers

How to print the value of a Tensor object in TensorFlow?

I have been using the introductory example of matrix multiplication in TensorFlow. matrix1 = tf.constant([[3., 3.]]) matrix2 = tf.constant([[2.],[2.]]) product = tf.matmul(matrix1, matrix2) When I print the product, it is displaying it as a Tensor…
Dawny33
  • 8,545
  • 11
  • 65
  • 121
260
votes
15 answers

Disable Tensorflow debugging information

By debugging information I mean what TensorFlow shows in my terminal about loaded libraries and found devices etc. not Python errors. I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally I…
Ghilas BELHADJ
  • 11,080
  • 9
  • 48
  • 82
248
votes
22 answers

Could not find a version that satisfies the requirement tensorflow

I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error…
Martin W
  • 3,150
  • 3
  • 15
  • 23
1
2 3
99 100