Skip to content

Commit

Permalink
Doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger authored Jun 27, 2024
1 parent d3a01c8 commit 8efb0fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions equinox/debug/_dce.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _register_alive_impl(i, x):

def store_dce(x: PyTree, name: Hashable = None):
"""Used to check whether a PyTree is DCE'd. (That is, whether this code has been
removed in the compiler, due to dead code eliminitation.)
removed in the compiler, due to dead code elimination.)
`store_dce` must be used within a JIT'd function, and acts as the identity
function. When the JIT'd function is called, then whether each array got DCE'd or
Expand All @@ -38,11 +38,11 @@ def store_dce(x: PyTree, name: Hashable = None):
```python
@jax.jit
def f(x):
a, _ = eqxi.store_dce((x**2, x + 1))
a, _ = eqx.debug.store_dce((x**2, x + 1))
return a
f(1)
eqxi.inspect_dce()
eqx.debug.inspect_dce()
# Found 1 call to `equinox.debug.store_dce`.
# Entry 0:
# (i32[], <DCE'd>)
Expand Down

0 comments on commit 8efb0fc

Please sign in to comment.