-
Notifications
You must be signed in to change notification settings - Fork 615
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
Remove access to underlying contiguous TL buffer from tests #3319
Conversation
!build |
CI MESSAGE: [2937387]: BUILD STARTED |
CI MESSAGE: [2937387]: BUILD PASSED |
@@ -35,7 +35,7 @@ void GenerateShapeTestInputs(TensorList<Backend> &out, RNG &rng, int num_samples | |||
} | |||
out.Reset(); | |||
out.Resize(shape); | |||
(void)out.template mutable_data<uint8_t>(); | |||
out.set_type(TypeInfo::Create<uint8_t>()); |
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.
out.set_type(TypeInfo::Create<uint8_t>()); | |
out.set_type(TypeTable::GetTypeInfoFromStatic<uint8_t>()); |
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.
done
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
df0ef7b
to
cc23c10
Compare
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
!build |
CI MESSAGE: [2955620]: BUILD STARTED |
CI MESSAGE: [2955620]: BUILD PASSED |
for (size_t n = 0; n < N; n++) { | ||
tl->Resize(uniform_list_shape(N, {kBbStructSize})); |
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.
Does this line need to be inside for loop?
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.
Moved accidentally, fixed.
!build |
CI MESSAGE: [2971157]: BUILD STARTED |
CI MESSAGE: [2971157]: BUILD PASSED |
Signed-off-by: Krzysztof Lecki klecki@nvidia.com
Description
What happened in this PR
Tests access TL on sample basis instead of using underlying contiguous allocation.
Remove some dead code.
Additional information
Affected modules and functionalities:
Tests
Key points relevant for the review:
Checklist
Tests
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: DALI-2234