-
Notifications
You must be signed in to change notification settings - Fork 485
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
Missing FileDataSink test in etdump_flatcc tests #9165
Comments
Hello! |
yes of course! Thanks for your contribution! @Megan0704-1 |
Summary: - Extend test loops to cover FileDataSink scenarios (j=2 case) - Add temporary file cleanup in TearDown - Include file_data_sink.h, stdio.h and fstream in test sources - Update CMakeLists.txt to ensure proper linking Fixes pytorch#9165
Hi @Gasoonjia
Thanks for the clear issue description—it made the fix straightforward! 🙌 |
Thanks @Megan0704-1 for your contribution! Have left some comments under your PR. |
Summary: - Extend test loops to cover FileDataSink scenarios (j=2 case) - Add temporary file cleanup in TearDown - Include file_data_sink.h, stdio.h and fstream in test sources - Update CMakeLists.txt to ensure proper linking Fixes pytorch#9165
🚀 The feature, motivation and pitch
We have adopted datasink as the primary output data dumping pipeline in ETDumpGen, and we've implemented two datasinks, BufferDataSink and FileDataSink. #9033 has more details.
However, we only tested BufferDataSink in the ETDumpGen's test (e.g. https://github.com/pytorch/executorch/blob/main/devtools/etdump/tests/etdump_test.cpp#L237) but still missing FileDataSink test.
So, for this issue we'd love to bring FileDataSink into ETDumpGen's test.
You can mimic what we've done for BufferDataSink to solve the problem, and https://github.com/pytorch/executorch/blob/main/extension/data_loader/test/file_data_loader_test.cpp would be a good example about how to create a temporary file for testing.
Alternatives
No response
Additional context
No response
RFC (Optional)
No response
cc @Jack-Khuu
The text was updated successfully, but these errors were encountered: