dl::RegisterPostEncoderModule
dl::RegisterPostEncoderModule
RAII helper for compile-time post-encoder module registration. More…
#include <RegisterPostEncoderModule.hpp>
Public Functions
| Name | |
|---|---|
| RegisterPostEncoderModule(std::string key, std::string display_name, std::string description, bool collapses_spatial_dims, std::function< std::unique_ptr< PostEncoderModule >(Params const &, ImageSize)> typed_factory) Register a post-encoder module at static initialization time. |
Detailed Description
template <typename Params >
class dl::RegisterPostEncoderModule;RAII helper for compile-time post-encoder module registration.
Template Parameters:
- Params reflect-cpp parameter struct for the module.
Public Functions Documentation
function RegisterPostEncoderModule
inline RegisterPostEncoderModule(
std::string key,
std::string display_name,
std::string description,
bool collapses_spatial_dims,
std::function< std::unique_ptr< PostEncoderModule >(Params const &, ImageSize)> typed_factory
)Register a post-encoder module at static initialization time.
Parameters:
- key Registry key (e.g.
"global_avg_pool"). - display_name Human-readable name for UI lists.
- description Short module description.
- collapses_spatial_dims Whether the module maps
[B,C,H,W] to[B,C]. - typed_factory Factory that creates the module from typed params.
Updated on 2026-11-13 at 20:25:42 +0000