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

Method empty

include/dali/core/tensor_layout.h:193–194  ·  view source on GitHub ↗

@brief Returns true if size() == 0 */

Source from the content-addressed store, hash-verified

191 constexpr int ndim() const noexcept { return size(); }
192 /** @brief Returns true if size() == 0 */
193 DALI_HOST_DEV
194 constexpr bool empty() const noexcept { return size() == 0; }
195
196 void resize(size_t new_size, char fill_value = '?') noexcept {
197 assert(new_size < max_ndim);

Callers 3

tensor_layout.hFile · 0.45
IsChannelLastMethod · 0.45
GetLayoutMappingFunction · 0.45

Calls 1

sizeFunction · 0.70

Tested by

no test coverage detected