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

Function fill_custom_kernel_param

internal/bin/test_generic.cpp:292–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void fill_custom_kernel_param(node_t node, struct custom_kernel_ops* ops)
293{
294 my_op_param* param = ( my_op_param* )ops->kernel_param;
295
296 if(get_node_attr_float(node, "alpha", &param->alpha) < 0)
297 {
298 std::cerr << "get attr alpha failed\n";
299 }
300
301 if(get_node_attr_float(node, "beta", &param->beta) < 0)
302 {
303 std::cerr << "get attr beta failed\n";
304 }
305}
306
307int main(int argc, char* argv[])
308{

Callers 1

mainFunction · 0.70

Calls 1

get_node_attr_floatFunction · 0.85

Tested by

no test coverage detected