-
Notifications
You must be signed in to change notification settings - Fork 717
[Executorch] Make module constructors uniform across #15709
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
base: gh/kimishpatel/209/base
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,8 @@ class Module { | |
| explicit Module( | ||
| const std::string& file_path, | ||
| const LoadMode load_mode = LoadMode::File, | ||
| std::unique_ptr<runtime::MemoryAllocator> memory_allocator = nullptr, | ||
| std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr, | ||
| std::unique_ptr<runtime::EventTracer> event_tracer = nullptr); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is technically a bc breaking change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is true. Is this part of core API btw given that it is in extension? I do think we should unify the interface though. |
||
|
|
||
| /** | ||
|
|
@@ -78,6 +80,8 @@ class Module { | |
| const std::string& file_path, | ||
| const std::string& data_map_path, | ||
| const LoadMode load_mode = LoadMode::File, | ||
| std::unique_ptr<runtime::MemoryAllocator> memory_allocator = nullptr, | ||
| std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr, | ||
| std::unique_ptr<runtime::EventTracer> event_tracer = nullptr); | ||
|
|
||
| /** | ||
|
|
@@ -93,6 +97,8 @@ class Module { | |
| const std::string& file_path, | ||
| std::vector<std::string> data_files, | ||
| const LoadMode load_mode = LoadMode::File, | ||
| std::unique_ptr<runtime::MemoryAllocator> memory_allocator = nullptr, | ||
| std::unique_ptr<runtime::MemoryAllocator> temp_allocator = nullptr, | ||
| std::unique_ptr<runtime::EventTracer> event_tracer = nullptr); | ||
|
|
||
| /** | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: method_allocator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I see. This is supposed to be called method_allocator?