Merge pull request #130 from plenoptix/fix_axis_dim

fix axis arg to dim for pytorch funcs
This commit is contained in:
Ruilong Li(李瑞龙) authored and GitHub committed 2022-07-13 15:02:52 -07:00
commit 670a19f4ec
6 files changed
+15 -13

No files matched your search

+1 -1
View File
@@ -313,7 +313,7 @@ class PDFSampler(Sampler):
(ray_samples.frustums.starts[..., 1:, 0] + ray_samples.frustums.ends[..., :-1, 0]) / 2.0,
ray_samples.frustums.ends[..., -1:, 0],
],
axis=-1,
dim=-1,
)
inds = torch.searchsorted(cdf, u, side="right")