Skip to content

Commit

Permalink
Merge pull request activeloopai#278 from sparkingdark/fix_doc_basic
Browse files Browse the repository at this point in the history
fix doc & basic.py in Hub
  • Loading branch information
davidbuniat authored Dec 7, 2020
2 parents 59c81ba + d4d3665 commit 6a4616c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ import numpy as np

ds = Dataset(
"username/basic",
shape=(4,),
schema={
shape = (4,),
mode = "w+",
schema = {
"image": schema.Tensor((512, 512), dtype="float"),
"label": schema.Tensor((512, 512), dtype="float"),
},
}
)

ds["image"][:] = np.zeros((4, 512, 512))
Expand Down
1 change: 1 addition & 0 deletions examples/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def main():
"image": schema.Tensor((512, 512), dtype="float"),
"label": schema.Tensor((512, 512), dtype="float"),
},
mode="w+",
)

# Upload Data
Expand Down

0 comments on commit 6a4616c

Please sign in to comment.