jit.str.fromsymbol -> float32

    Dec 23 2019 | 4:03 pm
    First of all Happy Holidays and Merry Christmas everyone!
    I am having a weird issue that I just can't wrap my brain around... I have text of unknown length coming into a jit.str.fromsymbol. From there I'd like to normalize it to a float32 matrix. No matter what I do, I always get a char output. I tried [jit.matrix float32] I tried [jit.map @map 0 255 0. 1.]... see the patch below.
    What is the correct way of normalizing the char output to a float32?

    • Dec 23 2019 | 4:10 pm
      Does this help ?
    • Dec 27 2019 | 1:10 am
      Just saw your reply. Thanks! yes, I hacked something together with jit.matrixinfo similar to your approach in the end.