Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ init
Method
init
dnn/src/naive/pooling/opr_impl.cpp:23–26 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
bool fed;
22
MaxPooler(size_t, DType) : answer(DTypeTrait<ctype>::min()) {}
23
void init() {
24
answer = DTypeTrait<ctype>::min();
25
fed = false;
26
}
27
void feed(ctype x) {
28
answer = answer > x ? answer : x;
29
fed = true;
Callers
1
rep
Function · 0.45
Calls
1
min
Function · 0.50
Tested by
no test coverage detected