diff options
author | Fabio R. Sluzala <Fabio3rs@users.noreply.github.com> | 2023-03-21 14:21:50 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 19:21:50 +0200 |
commit | 353ec251a42491f5192c48561da4b444ef67f23c (patch) | |
tree | 95783d81ab8be8a6875ec708e2e2a7882222250a /.github/ISSUE_TEMPLATE | |
parent | 89d5d90f3b6d25f134da7a8e252c3432bffcf674 (diff) |
We could use std::unordered_map over std::map (#305)
* Improve performance by changing std::map to std::unordered_map and std::map<id, token> id_to_token; to std::vector<token> id_to_token;
* fix last commit on gpt_vocab_init add vocab.id_to_token.resize(vocab.token_to_id.size());
* Removed include <map>
* Nest struct token score inside gpt_vocab
* renamed token to tok
Diffstat (limited to '.github/ISSUE_TEMPLATE')
0 files changed, 0 insertions, 0 deletions