Torch is in config, but environment seems to be running on tensorflow

High

  • None: Just asking a question out of curiosity
  • Low: It annoys or frustrates me for a moment.
  • Medium: It contributes to significant difficulty to complete my task, but I can work around it.
  • High: It blocks me to complete my task.

I do not quite understand what Label this error referes to.

tensorflow.python.framework.errors_impl.InvalidArgumentError: Received a label value of 4 which is outside the valid range of [0, 4). Label values: 4

Sometimes it shows nan or inf. How can i debug such issues. Thank you in advance.