Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MrNeRF/LichtFeld-Studio
/ is_cuda
Method
is_cuda
src/python/lfs/py_tensor.cpp:217–219 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
215
}
216
217
bool PyTensor::is_cuda() const {
218
return tensor_.device() == Device::CUDA;
219
}
220
221
size_t PyTensor::size(int dim) const {
222
const int resolved = dim < 0 ? static_cast<int>(tensor_.shape().rank()) + dim : dim;
Callers
7
TEST_F
Function · 0.80
copy_to_torch
Method · 0.80
from_torch
Function · 0.80
TEST_F
Function · 0.80
TEST
Function · 0.80
expect_depth_loss_kernel_matches_autograd
Function · 0.80
expect_adaptive_warped_l1_depth_loss_kernel_matches_autograd
Function · 0.80
Calls
1
device
Method · 0.45
Tested by
6
TEST_F
Function · 0.64
copy_to_torch
Method · 0.64
TEST_F
Function · 0.64
TEST
Function · 0.64
expect_depth_loss_kernel_matches_autograd
Function · 0.64
expect_adaptive_warped_l1_depth_loss_kernel_matches_autograd
Function · 0.64