| 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 | |
| 49 | SymbolVarArray batch_norm_group(const SymbolVarArray& inputs, const Param& param) { |
no test coverage detected