Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [tensorflow]

**IMPORTANT**: PLEASE ADD THE LANGUAGE TAG YOU ARE DEVELOPING IN. TENSORFLOW SUPPORTS MORE THAN ONE LANGUAGE. TensorFlow is an open source library for machine learning and machine intelligence. It is developed by Google and became open source in November 2015.

363
votes
15answers
223k views

Tensorflow: how to save/restore a model?

After you train a model in Tensorflow: How do you save the trained model?How do you later restore this saved model?
241
votes
5answers
111k views

What is logits, softmax and softmax_cross_entropy_with_logits?

I was going through the tensorflow API docs here. In the tensorflow documentation, they used a keyword called logits. What is it? In a lot of methods in the API docs it is written liketf.nn.softmax(...
238
votes
3answers
155k views

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.0rc2Then when I ...
224
votes
42answers
250k views

TensorFlow not found using pip

I'm trying to intstall TensorFlow using pip:$ pip install tensorflow --userCollecting tensorflowCould not find a version that satisfies the requirement tensorflow (from versions: )No matching ...
205
votes
11answers
155k views

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 locallyI ...
183
votes
7answers
49k views

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 ...
182
votes
13answers
43k views

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 ...
164
votes
13answers
205k views

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 ...
159
votes
5answers
71k views

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 12GB of ...
149
votes
11answers
98k views

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. ...
134
votes
3answers
76k views

In TensorFlow, what is the difference between Session.run() and Tensor.eval()?

TensorFlow has two ways to evaluate part of graph: Session.run on a list of variables and Tensor.eval. Is there a difference between these two?
106
votes
11answers
131k views

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 ...
106
votes
10answers
214k views

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

The title says it all. I'm using Ubuntu 16.04 Long Term Support.
106
votes
4answers
34k views

How does tf.app.run() work?

How does tf.app.run() work in Tensorflow translate demo? In tensorflow/models/rnn/translate/translate.py, there is a call to tf.app.run(). How is it being handled?if __name__=="__main__":tf....
102
votes
5answers
47k views

What does tf.nn.conv2d do in tensorflow?

I was looking at the docs of tensorflow about tf.nn.conv2d here. But I can't understand what it does or what it is trying to achieve. It says on the docs, #1 : Flattens the filter to a 2-D matrix ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,