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

Function init_tensor_data

internal/tests/executor/tests/test_batch_norm.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39using namespace TEngine;
40void init_tensor_data(float* addr, int number, int fixed_val)
41{
42 for(int i = 0; i < number; i++)
43 {
44 if(fixed_val >= 0)
45 addr[i] = fixed_val;
46 else
47 addr[i] = (i % 64) / 100.f;
48 }
49}
50float op_fops;
51
52Node* create_batch_norm_node(int n, int c, int h, int w)

Callers 1

create_batch_norm_nodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected