Skip to content

Commit

Permalink
Merge pull request #2511 from activeloopai/fy_opt_view
Browse files Browse the repository at this point in the history
[AL-2368] Optimization for saving shallow views
  • Loading branch information
FayazRahman authored Aug 1, 2023
2 parents bc5f7df + 66b4690 commit 95eec4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deeplake/core/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3273,7 +3273,13 @@ def _write_vds(
create_shape_tensor=False,
create_id_tensor=False,
create_sample_info_tensor=False,
).extend(list(self.index.values[0].indices(self.num_samples)))
).extend(
np.array(
tuple(self.index.values[0].indices(self.num_samples)),
dtype="uint64",
),
progressbar=True,
)
info["first-index-subscriptable"] = self.index.subscriptable_at(0)
if len(self.index) > 1:
info["sub-sample-index"] = Index(
Expand Down

0 comments on commit 95eec4e

Please sign in to comment.