-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Probe-based OP Fusion & Reordering (#464)
* * init adapter * + add basic logic of workloads adaptation * * update the adaptation logic * + add unittests for Monitor * + add unittests for Monitor * * use multiprocessing to monitor resource utilization * + add unittests for adapter * * modification and fix for gece's comments * * bug fixed: there is no attr _name in FusedFilter * * support OP fusion based on probed speed of each OP * * support OP fusion based on probed speed of each OP * * fix bugs in fused OP speed calculation + add unit tests for probe-based OP fusion * * bug fixed * * bug fixed: enable batched when is_batched_op is True * * bug fixed: enable batched when is_batched_op is True * * expand the test dataset batch according to the num_proc * * support OP-wise adaptive batch size setting * * support batched processing for 4 image OPs * * set mp method for each OP during probing as well * + add visualization graphs for monitor results * * share the same context space for a batch * * share the same context space for a batch * * share the same context space for a batch but with idx info * * support batched process for fused filter * * bug fixed: add idx info to inter vars of word repetition filter, reduce the logic value for each op in fused filter * * extract batched to an outer func * modified for text_length_filter * * use a branch to decide which funcs are used * * update context for each sample as well * * modify for mapper and whitespace_normalization_mapper * * modify for two filters with context * * allow optional args for batched funcs * * restore to batched version and rename to xxx_batched * * restore to batched version and rename to xxx_batched * * restore to batched version and rename to xxx_batched * * update docs for this modification * * DO NOT allow to override the compute_stats or process methods in the subclass of Mapper and Filter * * rename the methods for the newly-added OP image_face_count_filter * * rename FusedFilter with "_batched" suffix * - bug fixed: update context organization for FusedFilter * * merge main into this branch * * support probe-based op fusion for ray mode * * restore to separate contexts of different samples * * restore to separate contexts of different samples * * avoid storing contexts from different samples into the same dict object * * set default fusion strategy to 'probe' - remove useless arguments * * set default fusion strategy to 'probe' - remove useless arguments * - skip tests with randomness
- Loading branch information
Showing
16 changed files
with
1,211 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.