Skip to navigation

holoscan::schema::WithTensorGather

Beta
View as Markdown

Thread-local scope that materializes Tensor bytes only below a size threshold.

WithTensorGather(0) is equivalent to metadata-only/reference mode. A positive threshold materializes small tensors and leaves larger tensors metadata-only.

#include <holoscan/schema/tensor_materialization.hpp>

Constructors

WithTensorGather

std::size_t size_threshold_bytes = 1024
)

Destructor

~WithTensorGather

holoscan::schema::WithTensorGather::~WithTensorGather()

Assignment operators

operator=

The following overloads are deleted to prevent misuse:

WithTensorGather & holoscan::schema::WithTensorGather::operator=(const WithTensorGather &) = delete;
WithTensorGather & holoscan::schema::WithTensorGather::operator=(WithTensorGather &&) = delete;

Static methods

enabled

static bool holoscan::schema::WithTensorGather::enabled() noexcept

size_threshold_bytes

static std::size_t holoscan::schema::WithTensorGather::size_threshold_bytes() noexcept

Member variables

NameTypeDescription
enabled_ staticbool
size_threshold_bytes_ staticstd::size_t
nesting_level_ staticint