Add info on how to run tests to README.md

This commit is contained in:
bartosz roguski 2025-02-12 14:06:40 +01:00
parent af0f80c1e6
commit 6d3570d0e2
2 changed files with 7 additions and 0 deletions

View File

@ -221,6 +221,12 @@ docker run -it --runtime=habana clip_hpu:latest
You do not need to change the code to leverage Intel® Gaudi® HPU. The `get_device_initial()` function will automatically detect the correct device and return the appropriate device name. So no changes are required.
### Run the Tests
```bash
pytest
```
This will run the tests and verify that the model is working correctly.
## See Also

View File

@ -2,6 +2,7 @@ import numpy as np
import pytest
import torch
from PIL import Image
import habana_frameworks.torch
import clip