Skip to content
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

Ensure the const-ness of the data member #1215

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

lancerts
Copy link
Collaborator

@lancerts lancerts commented Jan 15, 2024

Summary

The data variable loads from the info.txt and encodes the info in pair <image path, ground truth label>.
The program should not modify this information during the execution and thus ensure the const-ness of the data variable.

Testing Done

Tested the program via libtorch (2.1.2) with cuda 12.1 using both the release and debug build.

Copy link

netlify bot commented Jan 15, 2024

Deploy Preview for pytorch-examples-preview canceled.

Name Link
🔨 Latest commit 5e508df
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-examples-preview/deploys/65af3fe71bb8dc0008e9454e

@lancerts lancerts force-pushed the custom-dataset-const branch from e2ae5c4 to 5e508df Compare January 23, 2024 04:26
@lancerts
Copy link
Collaborator Author

@msaroufim FYI, rebased to main so this change is tested by the CI job and passed the test.

@lancerts lancerts merged commit b2832cc into pytorch:main Jan 23, 2024
@lancerts lancerts deleted the custom-dataset-const branch January 24, 2024 18:46
YinZhengxun pushed a commit to YinZhengxun/mt-exercise-02 that referenced this pull request Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants