906 | 908 | if len(unused_nodes) > 0: | |
907 | 909 | logger.debug(f"Removed unused constant nodes: {len(unused_nodes)}") | |
908 | 910 | ||
911 | def get_subgraph_nodes_and_inputs(self, ops_with_graph_attrs={"Loop", "Scan", "If"}): |
Do not use mutable data structures for argument defaults.
See https://docs.astral.sh/ruff/rules/mutable-argument-default
Login to write a write a comment.
Description
This PR adds the optimizer logic to fuse the newly designed exported ONNX models for Phi-3 vision and Phi-3.5 vision.
Motivation and Context
After the re-designed export of Phi-3 vision and Phi-3.5 vision, the ONNX models for the vision component and embedding component contain
If
andLoop
ops to handle multi-image support.