Fly Cup Challenge Pilot Query Endpoint

Hi!

Can somebody help me. I tried to do that lab and stuck on last task. When I make a prediction, I have an error:

 

 

{"error": "Invalid reduction dimension (1 for input with 1 dimension(s)\n\t [[{{function_node __inference__wrapped_model_1928}}{{node model/integer_lookup/bincount/Max}}]]"}

 

 

I tried different ways to make prediction: Python script / curl REST request / Deploy & Test tab in model. Always retrieve an error Invalid reduction dimension (1 for input with 1 dimension).

What I did incorrect?

Solved Solved
2 2 191
1 ACCEPTED SOLUTION

Hi Guys! I have found an issue! I found the comment at GitHub (https://github.com/tensorflow/serving/issues/1926#issuecomment-952058898).

I should just to send an arrays in query:

{
  "instances": [
    {
      "pilot_id": [11],
      "ename": ["Practice"],
      "events_name": ["Project Manhattan"],
      "minimum_time": [80.0]
    }
  ]
}

Maybe it can help someone. 

View solution in original post

2 REPLIES 2

There might be some issue

Hi Guys! I have found an issue! I found the comment at GitHub (https://github.com/tensorflow/serving/issues/1926#issuecomment-952058898).

I should just to send an arrays in query:

{
  "instances": [
    {
      "pilot_id": [11],
      "ename": ["Practice"],
      "events_name": ["Project Manhattan"],
      "minimum_time": [80.0]
    }
  ]
}

Maybe it can help someone. 

Top Labels in this Space