mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
Summary: We don't use gradents of sample_pdf. Here we disable gradient calculation around calling it, instead of calling detach later. There's a theoretical speedup, but mainly this enables using sample_pdf implementations which don't support gradients. Reviewed By: nikhilaravi Differential Revision: D28057284 fbshipit-source-id: 8a9d5e73f18b34e1e4291028008e02973023638d