"docs/basic_usage/native_api.ipynb" did not exist on "463d56bf4439b078748c47421dffaf73d8eaede4"
Unverified Commit d858e9f3 authored by Yujie Yuan's avatar Yujie Yuan Committed by GitHub
Browse files

fix issues in the example code (#203)

parent ebeb5ddf
......@@ -176,7 +176,7 @@ class SubjectLoader(torch.utils.data.Dataset):
device=self.images.device,
)
else:
image_id = [index]
image_id = [index] * num_rays
x = torch.randint(
0, self.WIDTH, size=(num_rays,), device=self.images.device
)
......
......@@ -306,7 +306,7 @@ class SubjectLoader(torch.utils.data.Dataset):
device=self.images.device,
)
else:
image_id = [index]
image_id = [index] * num_rays
x = torch.randint(
0, self.width, size=(num_rays,), device=self.images.device
)
......
......@@ -174,7 +174,7 @@ class SubjectLoader(torch.utils.data.Dataset):
device=self.images.device,
)
else:
image_id = [index]
image_id = [index] * num_rays
x = torch.randint(
0, self.WIDTH, size=(num_rays,), device=self.images.device
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment