问题 I have tokenized data in the form of a list of unequally shaped arrays: array([array([1179, 6, 208, 2, 1625, 92, 9, 3870, 3, 2136, 435, 5, 2453, 2180, 44, 1, 226, 166, 3, 4409, 49, 6728, ... 10, 17, 1396, 106, 8002, 7968, 111, 33, 1130, 60, 181, 7988, 7974, 7970])], dtype=object) With their respective targets: Out[74]: array([0, 0, 0, ..., 0, 0, 1], dtype=object) I'm trying to transform them into a padded tf.data.Dataset() , but it won't let me convert unequal shapes to a tensor. I will get