-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Relay] Support i16, f16 scalars in Relay text #11224
Conversation
d58d5f1
to
c655b0f
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.
I think this is generally an improvement, but I'm curious whether we could cover more of the error scenarios in test cases? There's three different diagnostic errors for both int and float plus the clipping errors - though I'm unsure how easy it is to trigger them with current testing infrastructure.
While testing fp16 models for Collage discovered the Relay text format did not support f16. While adding that cleaned up scalar handling in general. However I left two inlined tests for 'is simple const' in place (fuse_ops.cc and memory_alloc.cc) since it's not clear whether they should remain specific to just {i,f}{32,64} or whether they can be replaced with the support::IsSimpleScalar central predicate.
Thanks @Mousius (and sorry for the delay, been off an a separate adventure). I think the range checking testing is ok, and I added range checks for fp16 too. For the LOG(FATALS) I added cc tests since it's tricky to tickle the failures via python. PTAL. |
088671f
to
86d3434
Compare
Thanks @mbs-octoml 😸 nice clean up! |
While testing fp16 models for Collage discovered the Relay text
format did not support f16. While adding that cleaned up scalar handling
in general. However I left two inlined tests for 'is simple const'
in place (fuse_ops.cc and memory_alloc.cc) since it's not clear whether
they should remain specific to just {i,f}{32,64} or whether they can
be replaced with the support::IsSimpleScalar central predicate.
Also include spans in pretty printed form since I've started populating
them when debugging Collage.