How can I export the trained model. The get_policy() method always returns None!

How severe does this issue affect your experience of using Ray?

  • 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 use the example of 3DBall in unity3d. I use get_policy().export_model() to export onnx but the get_policy() always returns None, and then I get “AttributeError: ‘NoneType’ object has no attribute ‘export_model’”. Any help would be appreciated.

What is the policy ID? get_policy() returns the policy under the default policy ID by default.
If this does not exist, it becomes None.

Thank you very much for your reply. Now i use the inference instead of the onnx, and it works fine. Thank you very much!!!