JJoeven

Exercises / transformers

Greedy decode

greedy(vocab, logits) returns the vocab item with the largest logit. Print greedy for search/sql/finish with logits [1.2, 2.0, 0.1].

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.