Fast Implementation of Generalised Geodesic Distance Transform for CPU (OpenMP) and GPU (CUDA)
BSD 3-Clause "New" or "Revised" License
91
stars
14
forks
source link
[BUG] Testing for torch.cuda.is_available (the function not its return value) is always true #7
Closed
tvercaut closed 2 years ago
Describe the bug Examples and notebooks make use of a construct along the lines of
However
torch.cuda.is_available
is a function. One should thus test for the return value of the function rather than the function itsef. E.g.To Reproduce Run an example notebok in colab with no GPU: https://colab.research.google.com/github/masadcv/FastGeodis/blob/master/samples/simpledemo2d.ipynb
Expected behavior The examples and notebooks should run on CPU as well.