Skip to content

Commit a710ce5

Browse files
committed
Remove default padding
Signed-off-by: Joaquin Anton <[email protected]>
1 parent bd18094 commit a710ce5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

dali/operators/imgcodec/decoder_schema.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ reallocated to decode the image.
4646
If a value greater than 0 is provided, the operator preallocates one device buffer of the
4747
requested size per thread. If the value is correctly selected, no additional allocations
4848
will occur during the pipeline execution.)code",
49-
16*1024*1024)
49+
0)
5050
.AddOptionalArg("device_memory_padding_jpeg2k",
5151
R"code(Applies **only** to the ``mixed`` backend type.
5252
@@ -56,9 +56,7 @@ reallocated to decode the image.
5656
5757
If a value greater than 0 is provided, the operator preallocates the necessary number of buffers
5858
according to the hint provided. If the value is correctly selected, no additional allocations
59-
will occur during the pipeline execution. One way to find the ideal value is to do a complete
60-
run over the dataset with the ``memory_stats`` argument set to True and then copy the largest
61-
allocation value that was printed in the statistics.)code",
59+
will occur during the pipeline execution.)code",
6260
0)
6361
.AddOptionalArg("host_memory_padding",
6462
R"code(Applies **only** to the ``mixed`` backend type.
@@ -70,7 +68,7 @@ to be reallocated to decode the image.
7068
If a value greater than 0 is provided, the operator preallocates two (because of double-buffering)
7169
host-pinned buffers of the requested size per thread. If selected correctly, no additional
7270
allocations will occur during the pipeline execution.)code",
73-
8*1024*1024) // based on ImageNet heuristics (8MB)
71+
0)
7472
.AddOptionalArg("host_memory_padding_jpeg2k",
7573
R"code(Applies **only** to the ``mixed`` backend type.
7674
@@ -80,9 +78,7 @@ to be reallocated to decode the image.
8078
8179
If a value greater than 0 is provided, the operator preallocates the necessary number of buffers
8280
according to the hint provided. If the value is correctly selected, no additional
83-
allocations will occur during the pipeline execution. One way to find the ideal value is to
84-
do a complete run over the dataset with the ``memory_stats`` argument set to True, and then copy
85-
the largest allocation value that is printed in the statistics.)code",
81+
allocations will occur during the pipeline execution.)code",
8682
0)
8783
.AddOptionalArg("hw_decoder_load",
8884
R"code(The percentage of the image data to be processed by the HW JPEG decoder.

0 commit comments

Comments
 (0)