|
ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
|
Definition at line 26 of file graph_ir_ops.cpp.
| void ember_ir::cpu::conv1d_causal_row | ( | const float * | x, |
| const float * | w, | ||
| const float * | bias, | ||
| float * | state, | ||
| float * | out, | ||
| int | C, | ||
| int | K | ||
| ) |
Definition at line 10 of file graph_ir_mamba.cpp.
| void ember_ir::cpu::depth_attend | ( | const std::vector< const float * > & | sources, |
| const float * | w, | ||
| float * | out, | ||
| int | T, | ||
| int | d, | ||
| float | eps | ||
| ) |
Definition at line 81 of file graph_ir_ops.cpp.
| void ember_ir::cpu::mla_attention | ( | const float * | qn, |
| const float * | qr, | ||
| const float * | kv, | ||
| float * | out, | ||
| int | T, | ||
| const std::vector< std::vector< int > > & | rows, | ||
| int | H, | ||
| int | r, | ||
| int | dn, | ||
| int | dr, | ||
| int | dv, | ||
| const float * | Kb, | ||
| const float * | Vb, | ||
| float | scale | ||
| ) |
Definition at line 134 of file graph_ir_ops.cpp.
Definition at line 69 of file graph_ir_ops.cpp.
| void ember_ir::cpu::scale | ( | const float * | x, |
| const float * | g, | ||
| const float * | b, | ||
| float * | out, | ||
| int | T, | ||
| int | w | ||
| ) |
Definition at line 51 of file graph_ir_ops.cpp.
| void ember_ir::cpu::selective_scan_row | ( | const float * | x, |
| const float * | dt, | ||
| const float * | B, | ||
| const float * | C, | ||
| const float * | A, | ||
| const float * | d, | ||
| float * | s, | ||
| float * | y, | ||
| int | D, | ||
| int | N, | ||
| bool | softplus | ||
| ) |
Definition at line 25 of file graph_ir_mamba.cpp.
| void ember_ir::cpu::split_groups | ( | const float * | x, |
| int | T, | ||
| const std::vector< int > & | sizes, | ||
| int | g, | ||
| const std::vector< float * > & | outs | ||
| ) |