I have some data of the following form,

shape = (batch_size X max_seq_len X embedding_dim)

```
np.ndarray([torch.tensor([torch.tensor(), torch.tensor(), ....]), ...])
```

Is there a convenient way to convert it to,

```
torch.tensor([torch.tensor([torch.tensor(), torch.tensor(), ....]), ...])
```

Right now, I do

```
torch.from_numpy(devX)
```

and get the error

```
TypeError: can't convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, int64, int32, int16, int8, uint8, and bool.
```