Fix load_model for ContrastiveModel to work within a distributed strategy and,
I also added a test for save and load of ContrastiveModel as I could not see it was tested.
The test needed to use GPU to be able to replicate #287. So I made a fixture to use GPU if available
for the test, to override conftest.py who removes all GPUs.
Fix
load_model
forContrastiveModel
to work within a distributed strategy and, I also added a test for save and load ofContrastiveModel
as I could not see it was tested.The test needed to use GPU to be able to replicate #287. So I made a fixture to use GPU if available for the test, to override
conftest.py
who removes all GPUs.Resolve #287