I am using tensorflow 1.0 CPU on ubuntu and python 3.5.

I adapted an example of tensorflow to work on my own dataset <https://github.com/martin-gorner/tensorflow-mnist-tutorial>

It works fine as long as the number of outputs is under 10. When the number of outputs is above 10,I get the error:

```
InvalidArgumentError (see above for traceback): indices[1] = 10 is not in [0, 10)

[[Node: Gather_4 = Gather[Tindices=DT_INT64, 
     Tparams=DT_FLOAT, 
     validate_indices=true, 
     _device="/job:localhost/replica:0/task:0/cpu:0"](grayscale_to_rgb, ArgMax_4)]]

```

Any help?