Skip to main content

Option

_class _Option(option: [<class 'tcim_lite.runtime.WeightManager'>, < class 'tcim_lite.runtime.DevManager'>, < class 'int'>] = 0)

Static configuration options for loading models.

Constructor for the Option class.

Parameters:

option (int or WeightManager) --

Initialization options:

  • The logical ID of the Houmo device used for loading and inferring a model. The device 0 is used by default.

  • The WeightManager object to manage the shared weight memory.

Methods

__init__Constructor for the Option class.
enable_host_lazy_loadingControls lazy buffer allocation strategy during model loading phase.
enable_io_lazy_modeControls when input and output buffers used during inference are allocated on the host.
enable_profileEnable profiling mode.
set_dummy_tensorsSets a list of tensor names of a model.
set_model_offsetSets the byte offset and size of the model data within the file or buffer.