"CITATION" did not exist on "c94ad7a016d57fcc6d07b90a2af37aeed9db7159"
Commit 67370881 authored by Andrea Paris's avatar Andrea Paris Committed by Boris Bonev
Browse files

correction

parent 9fb288c0
......@@ -81,10 +81,9 @@ class TestLegendrePolynomials(unittest.TestCase):
class TestSphericalHarmonicTransform(unittest.TestCase):
"""Test the spherical harmonic transform (CPU/CUDA if available)."""
def setUp(self):
if torch.cuda.is_available():
self.device = torch.device("cuda")
else:
self.device = torch.device("cpu")
torch.manual_seed(333)
if self.device.type == "cuda":
torch.cuda.manual_seed(333)
@parameterized.expand(
[
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment