mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
Serializing JSON code for drawable objects (and some documentation) (#222)
* some comments and starting serializing comments. on plane w/o formatter * fixing pylint and black * removed changes in file * revert file * addressing comments * remove abstract Co-authored-by: Ethan Weber <ethanweber@Ethans-MacBook-Pro.local>
This commit is contained in:
1 parent
44a7fa288c
commit
d13a766b9e
13 files changed
+240
-106
No files matched your search
@@ -51,6 +51,7 @@ __global__ void kernel_morton3D_invert(
|
||||
torch::Tensor morton3D(const torch::Tensor coords){
|
||||
DEVICE_GUARD(coords);
|
||||
CHECK_INPUT(coords);
|
||||
// NOTE(ethan): why & and not &&?
|
||||
TORCH_CHECK(coords.ndimension() == 2 & coords.size(1) == 3)
|
||||
|
||||
const int N = coords.size(0);
|
||||
@@ -75,7 +76,7 @@ torch::Tensor morton3D(const torch::Tensor coords){
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Convert 3D indices to coords in z-order
|
||||
* @brief Convert indices in z-order to 3D coords
|
||||
*
|
||||
* @param indices Integer indices with shape [N]
|
||||
* @return torch::Tensor Integer coords with shape [N, 3]
|
||||
|
||||
Reference in new issue
Block a user