Fix `VisionTextDualEncoderIntegrationTest`
# What does this PR do?

Need a tiny update in the test files after the PR #24585

So far, CI gets errors like

```bash
RuntimeError: Only Tensors of floating point and complex dtype can require gradients
```
_The documentation is not available anymore as the PR was closed or merged._