-
Notifications
You must be signed in to change notification settings - Fork 971
[QDP] fix test bug #734
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
[QDP] fix test bug #734
Conversation
Signed-off-by: Hsien-Cheng Huang <[email protected]>
ryankert01
left a comment
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.
sorry for my vscode rust extension is changing a lot of our codespace, I've highlighted the changes.
PTAL @guan404ming @rich7420 @400Ping @machichima
| assert_eq!( | ||
| tensor.dtype.bits, 128, | ||
| "Should be 128 bits (2x64-bit floats)" | ||
| ); |
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.
this is the failed test
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 am thinking as we change the precision to float32 by default, should we set the expected value to 2x32 rather than change the precision back to float64?
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.
see this, working on float32 right now.
| println!("Testing DLPack tensor metadata..."); | ||
|
|
||
| let engine = match QdpEngine::new(0) { | ||
| let engine = match QdpEngine::new_with_precision(0, Precision::Float64) { |
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.
This is what I changed
|
Can you provide the reproduction scrip you run for the error? |
cargo test |
|
strange, my local test passed. |
|
@400Ping As I'm concerned, there's a PR change default from fp64 to fp32 |
Yes, I am also working on the follow up as well. |
|
local test all passed. |
machichima
left a comment
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.
LGTM

Purpose of PR
default has been changed to f32, so the bits result would be 32*2=64
solution: Make the test not init the executor to default, instead init to a predetermined f64
Related Issues or PRs
Closes #733
Changes Made
Breaking Changes
Checklist
TODO
new()fp32, bring back the coverage