Hi, is there any native way to flatten/easily cast...
# daft-dev
m
Hi, is there any native way to flatten/easily cast 2D list (
List[List[float64]]
) to
FixedSizeList[float64, 18]
? Eventually I want to cast nested lists to tensors I saw that such cast doesnt exist currently, i thought meanwhile I could got through fixed list to fixed tensor.
c
you should be able to perform a normal cast for this.
m
The cast itself works but it casts into a nested
FixedSizeList
I need it to be flattened in order to cast to a
FixedShapeTensor
. When its nested I get mismatch child type error.
daft.exceptions.DaftTypeError: Cannot cast FixedSizeList[FixedSizeList[Float32; 2]; 9] to FixedShapeTensor[Float32; [9, 2]]: mismatched child type
c
hmm yeah it sounds like we don't yet have proper support for casting to/from tensors. If you open up an issue we can hopefully get a fix for it ASAP.