Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add epsilon-size override for ONNX exporter #170

Open
tgolsson opened this issue Sep 14, 2023 · 0 comments
Open

Add epsilon-size override for ONNX exporter #170

tgolsson opened this issue Sep 14, 2023 · 0 comments

Comments

@tgolsson
Copy link
Member

          I'll make a note to augment the ONNX exporter so it can handle this; this feels like it could end up in other places too.
    def forward(self, obs: Tensor, epsilon: Tensor = None):
        # we need to discard the extra dimensions of epsilon.
        # the input epsilon is given for the original action space
        # however, the policy outputs latent actions.
        if epsilon is not None:
            epsilon = epsilon[:, : self.latent_size]

Originally posted by @tgolsson in #159 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant