MCPcopy Create free account
hub / github.com/OAID/Tengine / init_tensor_data

Function init_tensor_data

internal/tests/executor/tests/test_pooling.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43float op_fops;
44void init_tensor_data(float* addr, int number, int fixed_val)
45{
46 for(int i = 0; i < number; i++)
47 {
48 if(fixed_val >= 0)
49 addr[i] = fixed_val;
50 else
51 addr[i] = i % 64;
52 }
53}
54
55Node* create_pooling_node(int input_n, int input_c, int input_h, int input_w, int ksize, int stride,
56 PoolArg type = kPoolMax, int pad = 0, int global = 0)

Callers 1

create_pooling_nodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected