MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / zero_buffers

Function zero_buffers

tensorflow/compiler/aot/test.cc:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52namespace {
53
54void zero_buffers(XlaCompiledCpuFunction* computation) {
55 for (int i = 0; i < computation->num_args(); ++i) {
56 memset(computation->arg_data(i), 0, computation->arg_size(i));
57 }
58}
59
60// Trivial test that runs the generated function to ensure it doesn't crash.
61TEST(TEST_NAME, NoCrash) {

Callers 2

TESTFunction · 0.85
BM_NAMEFunction · 0.85

Calls 3

arg_dataMethod · 0.80
arg_sizeMethod · 0.80
num_argsMethod · 0.45

Tested by

no test coverage detected