Function
val_to_vec
Converts target into one-hot. Args: size: Size of vector. val: Integer in range [0, size]. Returns: vec: one-hot vector with a 1 in the val element.
(size, val)
Source from the content-addressed store, hash-verified
source not stored for this graph (policy: none)
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…