fix axis arg to dim for pytorch funcs

This commit is contained in:
Ruilong Li committed 2022-07-13 20:31:38 +00:00
1 parent ff4f1bb421
commit 1f38240212
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")