MCPcopy Create free account
hub / github.com/evilsocket/cake / load

Method load

cake-core/src/models/flux/flux2_model.rs:185–188  ·  view source on GitHub ↗
(dim: usize, eps: f64, vb: VarBuilder)

Source from the content-addressed store, hash-verified

183
184impl QkNorm {
185 fn load(dim: usize, eps: f64, vb: VarBuilder) -> Result<Self> {
186 let weight = vb.get(dim, "weight")?;
187 Ok(Self { weight, eps })
188 }
189
190 fn forward(&self, x: &Tensor) -> Result<Tensor> {
191 let in_dtype = x.dtype();

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
cloneMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected