Issue 1:
GitHub issues are for bugs / installation problems / feature requests.

For general support from the community, see StackOverflow.

To make bugs and feature requests more easy to find and organize, we close issues that are deemed

out of scope for GitHub Issues and point people to StackOverflow.

For bugs or installation issues, please provide the following information.

The more information you provide, the more easily we will be able to offer

help and advice.

Environment info

Operating System: Linux Ubuntu 14.04

Installed version of CUDA and cuDNN: None

(please attach the output of ls -l /path/to/cuda/lib/libcud*):

If installed from binary pip package, provide: pip package:

tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl

Which pip package you installed.

The output from python -c "import tensorflow; print(tensorflow.version)".

If installed from sources, provide the commit hash:

Steps to reproduce

include a max_pool_with_argmax layer in a convolutional neural network and use it for training.

The process terminate with this error:

LookupError: No gradient defined for operation 'conv2/MaxPoolWithArgmax' (op type: MaxPoolWithArgmax)

Issue 2:
I swapped out the first max_pool operation in convolutional.py tutorial for a max_pool_with_argmax operation and there doesn't seem to exist a gradient for that op:

(virtenv)$ python convolutional.py

Extracting data/train-images-idx3-ubyte.gz

Extracting data/train-labels-idx1-ubyte.gz

Extracting data/t10k-images-idx3-ubyte.gz

Extracting data/t10k-labels-idx1-ubyte.gz

Traceback (most recent call last):

File "convolutional.py", line 316, in <module>

tf.app.run()

File "/home/name/virtenv/local/lib/python2.7/site-packages/tensorflow/python/platform/default/_app.py", line 30, in run

sys.exit(main(sys.argv))

File "convolutional.py", line 244, in main

global_step=batch)

File "/home/name/virtenv/local/lib/python2.7/site-packages/tensorflow/python/training/optimizer.py", line 190, in minimize

colocate_gradients_with_ops=colocate_gradients_with_ops)

File "/home/name/virtenv/local/lib/python2.7/site-packages/tensorflow/python/training/optimizer.py", line 241, in compute_gradients

colocate_gradients_with_ops=colocate_gradients_with_ops)

File "/home/name/virtenv/local/lib/python2.7/site-packages/tensorflow/python/ops/gradients.py", line 453, in gradients

(op.name, op.type))

LookupError: No gradient defined for operation 'MaxPoolWithArgmax' (op type: MaxPoolWithArgmax)

Environment info

Operating System: Ubuntu 14.04.1 LTS

If installed from binary pip package, provide:

(virtenv)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl

(virtenv)$ python -c "import tensorflow; print(tensorflow.version)"

0.7.1

Steps to reproduce

Change line 192-5 of convolutional.py from:

pool = tf.nn.max_pool(relu, ksize=[1, 2, 2, 1], strides=[1, 2, 2, 1], padding='SAME')

to:

pool, pos = tf.nn.max_pool_with_argmax(relu, ksize=[1, 2, 2, 1], strides=[1, 2, 2, 1], padding='SAME')

Run:

(virtenv)$ python convolutional.py

What have you tried?

Logs or other output that would be helpful

(If logs are large, please upload as attachment).