Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to pass a dict as an observation for a RL model during "predictor.predict()" #3453

Unanswered
selvaNRB asked this question in Q&A
Discussion options

Does anybody have an example for the input format for the following scenario:

  • Tensorflow-Ray RL model deployed
  • Custom RL environment
  • The state of the environment is a Python Dictionary
  • An example input:

input = {
"inputs": {
"observations": {"one": [[1.0, 1.0]], "two": [[1.0,1.0,1.0]]},
"prev_action": [0, 0],
"is_training": False,
"prev_reward": -1,
"seq_lens": -1,
"timestep": 1,
}
}

However I receive the error: "An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from primary with message "{ "error": "instances is a plain list, but expecting list of objects as multiple input tensors required as per tensorinfo_map"}"".

Apparently, there is no example for such as case in the repository.

Thanks in advance.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /