Cleanup STL headers + fix embedding examples + minor stuff
This commit is contained in:
parent
55ad42af84
commit
03f7e33560
4 changed files with 20 additions and 26 deletions
|
@ -1,14 +1,6 @@
|
|||
#include "common.h"
|
||||
#include "llama.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cinttypes>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
std::vector<double> softmax(const std::vector<float>& logits) {
|
||||
std::vector<double> probs(logits.size());
|
||||
float max_logit = logits[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue