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

#1680: Added explicit check for checking golden before getting output… #1693

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion runtime/tools/python/ttrt/common/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ def golden(callback_runtime_config, binary, program_context, op_context):
loc = ttrt.runtime.get_op_loc_info(op_context)

op_golden_tensor = binary.get_debug_info_golden(loc)
op_output_tensor = ttrt.runtime.get_op_output_tensor(op_context, program_context)

if op_golden_tensor is None:
logging.debug("Golden tensor is None - skipping golden comparison")
return

op_output_tensor = ttrt.runtime.get_op_output_tensor(op_context, program_context)

if len(op_output_tensor) == 0:
logging.debug("Output tensor is empty - skipping golden comparison")
return
Expand Down
Loading