Commit dc0eb9a
authored
statisticize in tensor symbolic shapes (#404)
* support checking model redundancy
* revert change of vision_model_test
* reformat python code.
* reformat bert_model_test.py and utils.py
* minor fix
* fix failed check by comparing directories after os.path.realpath()
* fix bugs in check_validate.sh
* set dynamic=False in single_device_runner.py
* reset graph hash
* add robustness code for generating input tensor constraints
* Introduce input_tensor_constraints.py using shape propagation logic.
* support dimension generalization for torch.Tensor.view and torch.Tensor.reshape
* 1) support dimension generalization for torch.Tensor.expand(); 2) fix bugs in generalization for torch.Tensor.view and torch.Tensor.reshape
* dimension_generalization_passes
* Refactored DimensionGeneralizationPass.__init__ to accept argument dim_axes_pairs, enabling targeted configuration for specific use cases
* save dimension generalization pass names into graph_net.json
* Generalize sequence dimension
* more dimension generalization passes for token dimension
* refactor parse_sole_graph_module
* Enhance the performance of the input_tensor_constraints.py file generation process.
* minor fix
* more dimension generalization pass
* fix some hint bugs
* generate input_tensor_constraints.py
* statisticize in tensor symbolic shapes1 parent f2c56eb commit dc0eb9a
File tree
3 files changed
+57
-0
lines changed- graph_net/tools
3 files changed
+57
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments