MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / decode

Method decode

src/token.rs:41–44  ·  view source on GitHub ↗
(&self, tokens: &[i64], skip_special_tokens: bool)

Source from the content-addressed store, hash-verified

39 }
40
41 pub fn decode(&self, tokens: &[i64], skip_special_tokens: bool) -> String {
42 let clean_spaces = false;
43 self.spm.decode(tokens, skip_special_tokens, clean_spaces)
44 }
45
46 pub fn vocab_size(&self, include_special_tokens: bool) -> usize {
47 let vocab = self.spm.vocab();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected