eg if I have embedding = nn.Embedding(V, E), is the shortest method something like:
scale = my_hand_written_formula_here
embedding.weight.data.uniform(-scale, scale)

(and ditto for bias too, eg in a Linear).
?