Closed f-dangel closed 3 years ago
I did not find a clever way to use expand
over repeat
, as the axis to be repeated does not have dimension 1. However, the details on constructing the one-hot kernel are documented more clearly, and the creation is refactored and does not need a for
loop anymore.
It should be possible to construct the one-hot kernel using
expand
instead ofrepeat
.Approach:
[x] Document the one-hot kernel structure
[x] Try replacing
repeat
withexpand
in_make_weight