You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am integrating a complex observation_space within PettingZoo, adhering to Tianshou framework requirements that necessitate nesting dictionaries within observation to pass observations into a PyTorch model. My environment’s observation_space configuration is as follows:
Given the necessity to nest dictionaries for compatibility with Tianshou, which expects PyTorch model inputs, it appears there is a misalignment with PettingZoo’s testing expectations, which presume NumPy array compatibility. How can I reconcile these requirements? Is this an oversight in the api_test, or should adjustments be made to accommodate such nested dictionary structures? Any guidance on resolving this configuration mismatch would be highly appreciated.
The text was updated successfully, but these errors were encountered:
Are you using the current master branch of PettingZoo? If not, can you try that? I think I changed the behaviour for the nested obs case a while back. If it is still failing with that, can you post code for a minimum env that triggers the api error?
Question
I am integrating a complex
observation_space
within PettingZoo, adhering to Tianshou framework requirements that necessitate nesting dictionaries withinobservation
to pass observations into a PyTorch model. My environment’sobservation_space
configuration is as follows:During the
api_test
in PettingZoo, I encountered the following errors:The specific failing test code snippet is:
Given the necessity to nest dictionaries for compatibility with Tianshou, which expects PyTorch model inputs, it appears there is a misalignment with PettingZoo’s testing expectations, which presume NumPy array compatibility. How can I reconcile these requirements? Is this an oversight in the
api_test
, or should adjustments be made to accommodate such nested dictionary structures? Any guidance on resolving this configuration mismatch would be highly appreciated.The text was updated successfully, but these errors were encountered: