-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adding a dependency on PyTorch #57
Comments
Yes, though I would prefer for such tests to be scoped to a If you just want utilities for working with data types, I'd prefer to not take a dependency on a full ML framework just for that. |
Also depending on what you want, you can follow a similar pattern to the onnx op tests. Those depend on onnx for test case generation, writing out |
Its not firm but I would recommend sticking to numpy if possible. We can pretty easily convert |
@ScottTodd, thank you for the suggestion. The comparison function I want to use is the cosine similarity per token of the returned features from a text encoder. An element-wise closeness comparison would not be good enough. The other option is to have a second IREE module to compute the cosine similarity that would return float32. This does not seem right to me to use an IREE module to test IREE's execution of a module.
@rsuderman, I assume we can achieve this with NumPy by treating the value as int. I will write this function then. |
I opened an issue regarding the possibility of interop between the IREE Python bindings and dtypes from |
Is it acceptable that some tests have a dependency on PyTorch? There is the problem that NumPy does not have support for bfloat16.
Now I mostly want this to convert a blfoat16 IREE buffer view to float32.
You may want to operate on bfloat16 tensors without conversion.
The text was updated successfully, but these errors were encountered: