Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ Clear
Function
Clear
dali/c_api/c_api_test.cc:840–842 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
838
839
template <>
840
void Clear(Tensor<CPUBackend>& tensor) {
841
std::memset(tensor.raw_mutable_data(), 0, tensor.nbytes());
842
}
843
844
template <>
845
void Clear(Tensor<GPUBackend>& tensor) {
Callers
2
TYPED_TEST
Function · 0.70
Init
Method · 0.50
Calls
4
memset
Function · 0.85
CUDA_CALL
Function · 0.85
raw_mutable_data
Method · 0.45
nbytes
Method · 0.45
Tested by
no test coverage detected