MCPcopy 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
839template <>
840void Clear(Tensor<CPUBackend>& tensor) {
841 std::memset(tensor.raw_mutable_data(), 0, tensor.nbytes());
842}
843
844template <>
845void Clear(Tensor<GPUBackend>& tensor) {

Callers 2

TYPED_TESTFunction · 0.70
InitMethod · 0.50

Calls 4

memsetFunction · 0.85
CUDA_CALLFunction · 0.85
raw_mutable_dataMethod · 0.45
nbytesMethod · 0.45

Tested by

no test coverage detected