Skip to main content

dl::PostEncoderStepSpec

dl::PostEncoderStepSpec

JSON-serializable specification for a single post-encoder module step. More…

#include <RuntimeModelSpec.hpp>

Public Attributes

Name
std::string module
std::optional< std::string > interpolation

Detailed Description

struct dl::PostEncoderStepSpec;

JSON-serializable specification for a single post-encoder module step.

Used within the "post_encoder" array of a [RuntimeModelSpec](/api_generated/Classes/structdl_1_1RuntimeModelSpec.md). Each entry specifies a module by "[module](/api_generated/Classes/structdl_1_1PostEncoderStepSpec.md#variable-module)" key and optional parameters.

JSON examples: ```json

“post_encoder”: [ { “module”: “global_avg_pool” }]

“post_encoder”: [ { “module”: “spatial_point”, “interpolation”: “bilinear” }]


## Public Attributes Documentation

### variable module

```cpp
std::string module;

Module key (e.g. “global_avg_pool”)

variable interpolation

std::optional< std::string > interpolation;

“nearest” | “bilinear” (spatial_point only)


Updated on 2026-11-13 at 20:25:42 +0000