Skip to content

policy export error #1

@hwz9612

Description

@hwz9612

Hi,
When I use nfsp to train my env, I encountered the following problem.
RuntimeError: Function 'SoftmaxBackward0' returnen nan values in its 0th output
By debugging, I found self.policy(state) outputed 0 in the function of agent.update. Just as the follows show,
image

Because the part of output is 0, the value of log_probs is inf.
In my environment, the definition of observation_space and action_space is as follows:
self.observation_space = spaces.Box(low=0, high=1000, shape=(4,), dtype=np.float32)
self.action_space = spaces.Discrete(37)
Can you give me some suggestions?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions