The input data to my model is 1-hot encoded, and of different lengths, and it is 3D. Therefore it must be represented with a sparse datatype and padded to the same length.
Currently, I am using multidimensional Flux OneHotArrays and I am wondering if there is a way to pad and mask them with zero columns. Currently, I do not see how I can add a zero row to a Flux OneHotArray. I tried using SparseMatrixCSC, which allows me to add zero rows, but it can only be in 2D, not 3D.
Please let me know how I should go about padding (and masking if possible) a 3D one-hot matrix with zero columns.
Thanks,
Jack