|
1 | | -// Copyright (c) 2019-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 1 | +// Copyright (c) 2019-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -191,7 +191,10 @@ Please note that GPU acceleration for JPEG 2000 decoding is only available for C |
191 | 191 | .NumInput(1) |
192 | 192 | .NumOutput(1) |
193 | 193 | .AddParent("ImageDecoderAttr") |
194 | | - .AddParent("CachedDecoderAttr"); |
| 194 | + .AddParent("CachedDecoderAttr") |
| 195 | + .OutputDType(0, [](const OpSpec &, span<const DALIDataType>) { return DALI_UINT8; }) |
| 196 | + .OutputNdim(0, [](const OpSpec &, span<const int>) { return 3; }) |
| 197 | + .OutputLayout(0, [](const OpSpec &, span<const TensorLayout>) { return "HWC"; }); |
195 | 198 |
|
196 | 199 | // Fused |
197 | 200 |
|
@@ -309,7 +312,10 @@ of the slice (s0, s1, s2, …). |
309 | 312 |
|
310 | 313 | Integer coordinates are interpreted as absolute coordinates, while float coordinates can be |
311 | 314 | interpreted as absolute or relative coordinates, depending on the value of |
312 | | -`normalized_shape`.)code"); |
| 315 | +`normalized_shape`.)code") |
| 316 | + .OutputDType(0, [](const OpSpec &, span<const DALIDataType>) { return DALI_UINT8; }) |
| 317 | + .OutputNdim(0, [](const OpSpec &, span<const int>) { return 3; }) |
| 318 | + .OutputLayout(0, [](const OpSpec &, span<const TensorLayout>) { return "HWC"; }); |
313 | 319 |
|
314 | 320 |
|
315 | 321 | // Deprecated aliases |
|
0 commit comments