// Copyright (c) Meta Platforms, Inc. and affiliates. // All rights reserved. // // This source code is licensed under the license found in the // LICENSE file in the root directory of this source tree. #pragma once #include torch::Tensor msi_forward_cuda( const torch::Tensor& ray_o, const torch::Tensor& ray_d, const torch::Tensor& texture, int64_t sub_step_count, double min_inv_r, double max_inv_r, double stop_thresh); torch::Tensor msi_backward_cuda( const torch::Tensor& rgba_img, const torch::Tensor& rgba_img_grad, const torch::Tensor& ray_o, const torch::Tensor& ray_d, const torch::Tensor& texture, int64_t sub_step_count, double min_inv_r, double max_inv_r, double stop_thresh);