MCPcopy Create free account
hub / github.com/Niko1221/Strata / ple_hist_bytes

Function ple_hist_bytes

engine/src/core/session.cpp:50–52  ·  view source on GitHub ↗

`NG_HIST` rows of `hc_dim` floats: the PLE conv's history, which is the ONLY PLE state that lives in the session arena. The table and the weights are model-level and the caller owns them.

Source from the content-addressed store, hash-verified

48/// `NG_HIST` rows of `hc_dim` floats: the PLE conv's history, which is the ONLY PLE state that lives in the
49/// session arena. The table and the weights are model-level and the caller owns them.
50static uint64_t ple_hist_bytes() {
51 return (uint64_t) strata::kernels::NG_HIST * strata::kernels::NG_HC_DIM * sizeof(float);
52}
53
54uint64_t session_bytes(const ModelGeometry& g, int64_t max_cells, int64_t k, int64_t layer_lo, int64_t layer_hi) {
55 if (layer_hi < 0 || layer_hi > g.n_layers) layer_hi = g.n_layers;

Callers 3

session_bytesFunction · 0.70
session_initFunction · 0.70
session_zeroFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected