ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
Loading...
Searching...
No Matches
ember::SpmTokenizer::Lower Struct Reference
Collaboration diagram for ember::SpmTokenizer::Lower:
Collaboration graph

Public Member Functions

bool operator() (const Bigram &l, const Bigram &r) const
 

Detailed Description

Definition at line 148 of file spm_tokenizer.h.

Member Function Documentation

◆ operator()()

bool ember::SpmTokenizer::Lower::operator() ( const Bigram &  l,
const Bigram &  r 
) const
inline

Definition at line 149 of file spm_tokenizer.h.

149 {
150 return l.score < r.score || (l.score == r.score && l.left > r.left);
151 }
size_t j

References j.


The documentation for this struct was generated from the following file: