We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa7e7b commit 095cdf6Copy full SHA for 095cdf6
test/jaxmd.py
@@ -120,12 +120,16 @@ def forward(
120
# TODO: This is horribly slow for reasons which are unknown.
121
self.mlirad_fwd = False
122
123
- self.tol = 5e-4
+ if jax.default_backend() == "tpu":
124
+ self.tol = 5e-3
125
- # GPU CI reverse mode needs loose, merits future investigation
126
- self.tol = 1e-2
+ elif jax.default_backend() == "gpu":
127
+ # GPU CI reverse mode needs loose, merits future investigation
128
+ self.tol = 1e-2
129
- self.tol = 0.04
130
+ else:
131
+ # CPU backend needs loose tolerance, see #1289
132
+ self.tol = 0.07
133
134
135
if __name__ == "__main__":
0 commit comments