MCPcopy
hub / github.com/karpathy/makemore / get_output_length

Method get_output_length

makemore.py:524–525  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

522 return len(self.chars) + 1 # all the possible characters and special 0 token
523
524 def get_output_length(self):
525 return self.max_word_length + 1 # <START> token followed by words
526
527 def encode(self, word):
528 ix = torch.tensor([self.stoi[w] for w in word], dtype=torch.long)

Callers 2

print_samplesFunction · 0.80
makemore.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected