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

Function align_up

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

Source from the content-addressed store, hash-verified

34constexpr uint64_t SESSION_STATE_ALIGN = 256;
35
36uint64_t align_up(uint64_t n, uint64_t a) { return (n + a - 1) / a * a; }
37
38/// The floats one GDN layer's recurrent + conv state needs. `gdn_buffers_bytes` carves them for ONE layer and
39/// `GdnBuffers::state`/`conv_state` point INTO that carve, so a session with 36 GDN layers has to give each one

Callers 2

session_bytesFunction · 0.70
session_initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected