Skip to content

Commit

Permalink
Replace internal usage of stop_outfeed_receiver with _deprecated_stop…
Browse files Browse the repository at this point in the history
…_outfeed_receiver.

The jax.experimental.host_callback module is deprecated and will be removed.

See #20385.

PiperOrigin-RevId: 620220346
  • Loading branch information
gnecula authored and jax authors committed Mar 29, 2024
1 parent 15e2e26 commit adbffc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/infeed_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def f(x):

@jax.numpy_rank_promotion("allow") # Test explicitly exercises implicit rank promotion.
def testInfeedThenOutfeed(self):
hcb.stop_outfeed_receiver()
hcb._deprecated_stop_outfeed_receiver()

@jax.jit
def f(x):
Expand All @@ -100,7 +100,7 @@ def f(x):
self.assertAllClose(out, y + np.float32(1))

def testInfeedThenOutfeedInALoop(self):
hcb.stop_outfeed_receiver()
hcb._deprecated_stop_outfeed_receiver()

def doubler(_, token):
y, token = lax.infeed(
Expand Down

0 comments on commit adbffc6

Please sign in to comment.