Expand description
Tools for testing environments: agreement of the native backend, the
interpreter, and XLA, and of vmap with native loops.
Enums§
- Xla
- Where
check_backendsruns the traced environment besides the interpreter.
Functions§
- check_
backends - Runs
stepssteps ofenvwith the same keys and actions natively, as IR with the interpreter, and optionally with XLA, comparing the results of every step. - check_
vmap - Checks that the batched IR of
resetandstep(ruxla’svmap, which JAX’svmapuses) gives the same results as running each ofnenvironments natively: bit for bit with the interpreter, and within a small tolerance with XLA. - trees_
equal - Returns whether two pytrees of native values are equal bit for bit.