MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get

Method get

src/opr/test/dnn/batch_norm.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 std::shared_ptr<HostTensorND> get(std::string key) {
35 auto iter = params.find(key);
36 auto ret = gen({});
37 if (iter != params.end()) {
38 auto&& hv = iter->second.first;
39 if (iter->second.second) {
40 return hv;
41 } else {
42 ret->copy_from(*hv).sync();
43 }
44 }
45 return ret;
46 }
47};
48
49SymbolVarArray batch_norm_group(const SymbolVarArray& inputs, const Param& param) {

Callers 14

TESTFunction · 0.45
run_testFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
run_all_gatherFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
run_svd_empty_grad_testFunction · 0.45
TESTFunction · 0.45
SetUpMethod · 0.45
runFunction · 0.45
run_forwardFunction · 0.45

Calls 5

genFunction · 0.50
findMethod · 0.45
endMethod · 0.45
syncMethod · 0.45
copy_fromMethod · 0.45

Tested by

no test coverage detected