fix: "UserWarning: Creating a tensor from a list of numpy.ndarrays is…
fix "UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor."

# What does this PR do?
reduce latency of codes below from  0.744675874710083s to 0.013312816619873047s.
```
st = time.time()
inputs = tokenizer(query_list, return_tensors="pt" ,padding=True)
print(time.time() - st)
```

Fixes #24764


## Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@ArthurZucker
