-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use Proper Locations for Golden IDs #1488
Conversation
fa3adde
to
0cfbe69
Compare
0cfbe69
to
a62a2ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
extremely clean and great change
Thanks @ctodTT + @vprajapati-tt :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! LGTM
# find matching golden tensor based on loc in op debug string | ||
match = re.search(r"loc\(([^)]+)\)", op_debug_str) | ||
|
||
if not match: | ||
print(f"debug_str={op_debug_str}") | ||
print("No location found in debug string - skipping golden comparison") | ||
return | ||
|
||
loc = match.group(1).replace('"', "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RegeXcted 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re.sub("re\..*", "")
* PyBind `GoldenTensor` w/ Integral Types This change introduces a PyBound class `GoldenTensor` that reflects the same type from TTRT. This binding supports the following element types for a `GoldenTensor`: - uint8 - uint16 - uint32 - float32 Also, this change reverts PR #1488 , as it broke some things unintentionally. This is to be able to address these problems in a separate PR. Closes #1334
* PyBind `GoldenTensor` w/ Integral Types This change introduces a PyBound class `GoldenTensor` that reflects the same type from TTRT. This binding supports the following element types for a `GoldenTensor`: - uint8 - uint16 - uint32 - float32 Also, this change reverts PR #1488 , as it broke some things unintentionally. This is to be able to address these problems in a separate PR. Closes #1334
This change swaps the UUID for golden tensors from only a monotonically increasing id to a filename and line number as well.
Closes #1300