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
Fix a double set of preserve
schema arg and uninitialized var
#2632
Conversation
!build |
- when the user specifies the `preserve` operator argument it is set twice due to logic in ops.py. This PR makes sure it is set only once - 0 initializes next_seek_pos_ variable in the index_file_loader Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
1e776cb
to
ee620b2
Compare
CI MESSAGE: [2008098]: BUILD STARTED |
CI MESSAGE: [2008098]: BUILD PASSED |
out = dali.fn.external_source(source=[[np.array([-0.5, 1.25])]], preserve = True) | ||
res = dali.fn.resize(out, preserve = True) | ||
pipe.set_outputs(out) | ||
pipe.build() |
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.
you don't run any iteration?
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.
It checks if build succeeds and args are properly consumed.
Co-authored-by: Joaquin Anton <j.anton.guirao@gmail.com>
!build |
CI MESSAGE: [2012390]: BUILD STARTED |
CI MESSAGE: [2012390]: BUILD PASSED |
preserve
operator argument it is set twice due to logic in ops.py. This PR makes sure it is set only onceSigned-off-by: Janusz Lisiecki jlisiecki@nvidia.com
Why we need this PR?
Pick one, remove the rest
preserve
schema arg and uninitialized varWhat happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
makes sure
preserve
schema arg is set only once0 initializes next_seek_pos_ variable in the index_file_loader
ops.py
index_file_loader
NA
test added
valgrind run
NA
JIRA TASK: [NA]