Skip to main content

char_to_byte

Function char_to_byte 

Source
pub fn char_to_byte(c: char) -> Option<u8>
Expand description

Maps a GPT-2-encoded character codepoint back to a byte; returns None if not in the table.