Skip to content

Commit

Permalink
Merge pull request #2919 from activeloopai/ld_138
Browse files Browse the repository at this point in the history
bump libdeeplake version to 0.0.138
  • Loading branch information
nvoxland-al authored Jul 30, 2024
2 parents c00ca21 + 0735151 commit 2dda4ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions deeplake/enterprise/test_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,6 @@ def test_batch_sampler_attribute(local_auth_ds):
@pytest.mark.slow
@pytest.mark.flaky
def test_pil_decode_method(local_auth_ds):
from indra.pytorch.exceptions import CollateExceptionWrapper # type: ignore

with local_auth_ds as ds:
ds.create_tensor("x", htype="image", sample_compression="jpeg")
ds.x.extend(np.random.randint(0, 255, (10, 10, 10, 3), np.uint8))
Expand All @@ -839,11 +837,6 @@ def test_pil_decode_method(local_auth_ds):
assert "x" in batch.keys()
assert batch["x"].shape == (1, 10, 10, 3)

ptds = ds.dataloader().pytorch(decode_method={"x": "pil"})
with pytest.raises(CollateExceptionWrapper):
for _ in ptds:
continue

def custom_transform(batch):
batch["x"] = np.array(batch["x"])
return batch
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def libdeeplake_available():
extras_require["all"] = [req_map[r] for r in all_extras]

if libdeeplake_available():
libdeeplake = "libdeeplake==0.0.137"
libdeeplake = "libdeeplake==0.0.138"
extras_require["enterprise"] = [libdeeplake, "pyjwt"]
extras_require["all"].append(libdeeplake)
install_requires.append(libdeeplake)
Expand Down

0 comments on commit 2dda4ed

Please sign in to comment.