| 8 | #include "PointRenderer.h" |
| 9 | |
| 10 | class PointRenderModuleImpl : public torch::nn::Module |
| 11 | { |
| 12 | public: |
| 13 | PointRenderModuleImpl(std::shared_ptr<CombinedParams> params); |
| 14 | |
| 15 | // Renders the point cloud image in multiple scale levels and returns all of them. |
| 16 | // If masks are required, the first n images are the color images followed by n mask images |
| 17 | // |
| 18 | std::pair<std::vector<torch::Tensor>, std::vector<torch::Tensor>> forward(NeuralRenderInfo* nri); |
| 19 | |
| 20 | std::pair<std::vector<torch::Tensor>, std::vector<torch::Tensor>> forward( |
| 21 | NeuralScene& scene, const std::vector<NeuralTrainData>& batch, CUDA::CudaTimerSystem* timer_system = nullptr); |
| 22 | |
| 23 | std::shared_ptr<CombinedParams> params; |
| 24 | int num_layers; |
| 25 | std::shared_ptr<PointRendererCache> cache; |
| 26 | }; |
| 27 | |
| 28 | |
| 29 | TORCH_MODULE(PointRenderModule); |
nothing calls this directly
no outgoing calls
no test coverage detected