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 shape_bucket attributes into CompileOptions. #1071

Merged
merged 2 commits into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions python/nncase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ class CompileOptions:
dump_asm: bool
dump_ir: bool
dump_dir: str
shape_bucket_enable: bool
shape_bucket_range_info: dict
shape_bucket_segments_count: int
shape_bucket_fix_var_map: dict

def __init__(self) -> None:

Expand All @@ -375,6 +379,10 @@ def __init__(self) -> None:
self.dump_asm = True
self.dump_ir = False
self.dump_dir = "tmp"
self.shape_bucket_enable = False
self.shape_bucket_range_info = {}
self.shape_bucket_segments_count = 2
self.shape_bucket_fix_var_map = {}


class ShapeBucketOptions:
Expand Down
Loading