How to transform a list of 2D-arrays (with one dimension varies) to a ragged tensor?

164 Views Asked by At

x is a list of 2D-arrays, and each 2D-array is a series of 6-tuple.

enter image description here

I want to transform x into a ragged tensor. I try xrag = tf.ragged.constant(x) and

enter image description here

get xrag with shape = (895, None, None), however its shape should be (895, None, 6). Would it be OK or how to improve it?

0

There are 0 best solutions below