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

Function entry_index

executor/operator/common/region.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#include "operator/region.hpp"
36
37int entry_index(int batch, int location, int entry, int hw, int chw, int classes)
38{
39 int coords = 4;
40 int n = location / hw;
41 int loc = location % hw;
42 return batch * chw + n * hw * (coords + classes + 1) + entry * hw + loc;
43}
44static inline float logistic_activate(float x)
45{
46 return 1. / (1. + exp(-x));

Callers 1

RunMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected