MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / clear

Method clear

src/core/CL/ICLTensor.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void ICLTensor::clear(cl::CommandQueue &q)
46{
47 this->map(q);
48 std::memset(static_cast<void *>(_mapping), 0, this->info()->total_size());
49 this->unmap(q);
50}
51
52uint8_t *ICLTensor::buffer() const
53{

Callers 8

parseMethod · 0.45
decompose_stagesFunction · 0.45
clear_programs_cacheMethod · 0.45
do_setupMethod · 0.45
getBuildInfoMethod · 0.45

Calls 4

mapMethod · 0.95
unmapMethod · 0.95
total_sizeMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected