TensorFlow is an open source library for machine learning and machine intelligence. It is developed by Google and became open source in November 2015.

284
votes
14answers
172k 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?
176
votes
10answers
116k 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 ...
47
votes
18answers
60k views

On Windows, running “import tensorflow” generates No module named “_pywrap_tensorflow” error

On Windows, TensorFlow reports either or both of the following errors after executing an import tensorflow statement:No module named "_pywrap_tensorflow"DLL load failed.
135
votes
6answers
49k 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 ...
130
votes
10answers
148k 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 ...
64
votes
3answers
29k views

Using a pre-trained word embedding (word2vec or Glove) in TensorFlow

I've recently reviewed an interesting implementation for convolutional text classification. However all TensorFlow code I've reviewed uses a random (not pre-trained) embedding vectors like the ...
17
votes
4answers
8k views

TensorFlow version 1.0.0-rc2 on Windows: “OpKernel ('op: ”BestSplits“ device_type: ”CPU“') for unknown op: BestSplits” with test code

I installed TensorFlow version 1.0.0-rc2 on Windows 7 SP1 x64 Ultimate (Python 3.5.2 |Anaconda custom (64-bit)) using:pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/...
202
votes
4answers
87k views

What's the difference between 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(...
35
votes
11answers
49k views

Error while importing Tensorflow in python2.7 in Ubuntu 12.04. 'GLIBC_2.17 not found'

I have installed the Tensorflow bindings with python successfully. But when I try to import Tensorflow, I get the follwoing error.ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' ...
49
votes
3answers
30k views

Tensorflow read images with labels

I am building a standard image classification model with Tensorflow. For this I have input images, each assigned with a label (number in {0,1}). The Data can hence be stored in a list using the ...
42
votes
7answers
17k views

Can I measure the execution time of individual operations with TensorFlow?

I know I can measure the execution time of a call to sess.run(), but is it possible to get a finer granularity and measure the execution time of individual operations?
64
votes
9answers
52k views

How could I use Batch Normalization in TensorFlow?

I would like to use Batch Normalization in TensorFlow, since I found it in the source code core/ops/nn_ops.cc. However, I did not find it documented on tensorflow.org.BN has different semantics in ...
6
votes
1answer
2k views

How to choose cross-entropy loss in tensorflow?

Classification problems, such as logistic regression or multinomiallogistic regression, optimize a cross-entropy loss.Normally, the cross-entropy layer follows the softmax layer,which produces ...
59
votes
6answers
22k views

Is Tensorflow compatible with a Windows workflow?

I haven't seen anything about Windows compatibility -- is this on the way or currently available somewhere if I put forth some effort? (I have a Mac and an Ubuntu box but the Windows machine is the ...
23
votes
2answers
6k views

How to make a custom activation function with only Python in Tensorflow?

Suppose you need to make an activation function which is not possible using only pre-defined tensorflow building-blocks, what can you do?So in Tensorflow it is possible to make your own activation ...

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