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

Function init_tensor_data

internal/tests/executor/tests/test_fc.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40float op_fops;
41
42void init_tensor_data(float* addr, int number, int fixed_val)
43{
44 for(int i = 0; i < number; i++)
45 {
46 if(fixed_val >= 0)
47 addr[i] = fixed_val;
48 else
49 addr[i] = i % 64;
50 }
51}
52
53Node* create_fc_node(void)
54{

Callers 1

create_fc_nodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected