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

Fix duplicate compilation #622

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Fix duplicate compilation #622

merged 1 commit into from
Feb 5, 2024

Conversation

ccssu
Copy link
Contributor

@ccssu ccssu commented Feb 5, 2024

来源:#619 (comment)

@ccssu ccssu requested a review from doombeaker February 5, 2024 02:26
if count != input_count:
logger.warning(
f"Module {type(self._deployable_module_model.oneflow_module)} input tensor count changed from {count} to {input_count}, will compile again."
)
self._deployable_module_dpl_graph = None
self._load_graph_first_run = True
self._deployable_module_input_count = input_count
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里 self._deployable_module_input_count 不需要更新了吗

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的, 不需要 self._deployable_module_input_count 参数了用 len(self._deployable_module_dpl_graph._input_op_names) 代替了

@ccssu ccssu merged commit b7eeb1b into main Feb 5, 2024
4 of 5 checks passed
@ccssu ccssu deleted the fix_repetitive_compilation branch February 5, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants