MCPcopy Create free account
hub / github.com/TalwalkarLab/leaf / _one_hot

Function _one_hot

models/utils/language_utils.py:15–20  ·  view source on GitHub ↗

returns one-hot vector with given size and value 1 at given index

(index, size)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

letter_to_vecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…