MCPcopy Create free account
hub / github.com/NVIDIA/DALI / PadFill

Function PadFill

dali/kernels/slice/slice_kernel_utils.h:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 */
91template <typename T>
92void PadFill(T *output, const T *fill_values, int64_t npixels, int64_t nchannels) {
93 int64_t n = npixels * nchannels;
94 int64_t i = 0;
95 for (; i < nchannels; i++)
96 output[i] = fill_values[i];
97 for (; i < n; i++)
98 output[i] = output[i - nchannels];
99}
100
101inline std::tuple<int64_t, int64_t, int64_t> CalcPadCopyExtents(int64_t anchor,
102 int64_t in_extent,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected