TensorFlow Indices are not valid (out of bounds)

后端 未结 1 1143
失恋的感觉
失恋的感觉 2021-01-24 18:36

Hi i\'am currently trying to run TensorFlow with own image data. But it crashes when i\'am trying to run these function: its from mnist.py

def loss_fn(logits, l         


        
相关标签:
1条回答
  • 2021-01-24 19:15

    I had this error as well. And I realized my mistake. If you have 10 classes, your label values should range between 0-9, inclusive. The error was reproduced on the TensorFlow CIFAR10 example, used with SVHN dataset. Refer to question and answer below.

    TensorFlow CIFAR10 Example

    0 讨论(0)
提交回复
热议问题