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

Alobugdays - add dynamic axes onnx option #287

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Conversation

Data-Iab
Copy link
Collaborator

@Data-Iab Data-Iab commented Nov 18, 2022

# While overriding the exporter class
def __init__(dynamic: bool = False, **kwargs):
     if dynamic:
            # Keys are inputs names. Lists are indexes of axes that we want to set as dynamic.
            self.dynamic_axes = {"input1": [1, 2, 3], "input2":[1, 2, 3]}
    #....

This pull request includes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@Data-Iab Data-Iab linked an issue Nov 18, 2022 that may be closed by this pull request
@Data-Iab Data-Iab added enhancement New feature or request alonet alobugdays labels Nov 18, 2022
@anhtu293 anhtu293 self-requested a review November 18, 2022 09:36
@Data-Iab Data-Iab self-assigned this Nov 18, 2022
@Data-Iab Data-Iab merged commit 24b5ed3 into alobugdays Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ONNX dynamic inputs exporter
1 participant