Skip to content

Commit

Permalink
Remove assert from ShardedDeviceArray staging. (#2908)
Browse files Browse the repository at this point in the history
This would erroneously fail on Cloud TPU because the TPU client has its own buffer type.
  • Loading branch information
skye committed Apr 30, 2020
1 parent 3216f5c commit 815a92e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion jax/interpreters/pxla.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ def __init__(self,
# providing sharding_spec. It assumes that any pre-existing callers are
# creating pmap-style ShardedDeviceArrays.
if device_buffers is None:
assert isinstance(sharding_spec[0], xb.xla_client._xla.PyLocalBuffer)
device_buffers = sharding_spec
sharding_spec = _pmap_sharding_spec(aval.shape[0], aval.shape[0],
aval.shape[1:])
Expand Down

0 comments on commit 815a92e

Please sign in to comment.