Setting dataset feature value as numpy array

Mohnik9777
Sat, 08 Jul 2023 04:02:09 +0000

I’m having the same issue and updating or converting to list doesn’t work.

Trying to return the “inputs_embeds” which is a 2D numpy array (num_tokens, emb_size) but run into this error:

only size-1 arrays can be converted to Python scalars