MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / parse_softmax

Function parse_softmax

yolo_detector/darknet_opt/src/parser.c:260–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260softmax_layer parse_softmax(list *options, size_params params)
261{
262 int groups = option_find_int_quiet(options, "groups",1);
263 softmax_layer layer = make_softmax_layer(params.batch, params.inputs, groups);
264 layer.temperature = option_find_float_quiet(options, "temperature", 1);
265 char *tree_file = option_find_str(options, "tree", 0);
266 if (tree_file) layer.softmax_tree = read_tree(tree_file);
267 layer.w = params.w;
268 layer.h = params.h;
269 layer.c = params.c;
270 layer.spatial = option_find_float_quiet(options, "spatial", 0);
271 return layer;
272}
273
274layer parse_region(list *options, size_params params)
275{

Callers 1

parse_network_cfgFunction · 0.85

Calls 5

option_find_int_quietFunction · 0.85
make_softmax_layerFunction · 0.85
option_find_float_quietFunction · 0.85
option_find_strFunction · 0.85
read_treeFunction · 0.85

Tested by

no test coverage detected