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

Show number of parameters when onnx files are being analyzed #125

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

danielholanda
Copy link
Collaborator

Description

Bug fix: Ensure that we show number of parameters when onnx files are being analyzed

@danielholanda danielholanda self-assigned this Mar 1, 2024
# Begin evaluating the ONNX model
tracer_args.script_name = onnx_name
tracer_args.models_found[tracer_args.script_name] = model_info
explore_invocation(
model_inputs=onnx_inputs,
model_info=model_info,
invocation_info=invocation_info,
invocation_info=model_info.unique_invocations[onnx_hash],
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: the code could be a bit simpler if it was ModelInfo.add_unique_invocation() -> UniqueInvocationInfo (ie, the function returned the new UniqueInvocationInfo instance).

That way you wouldn't have to look it up in the dictionary a few lines of code later.

Copy link
Collaborator

@jeremyfowers jeremyfowers left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! Please implement the one comment before merging.

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