| 252 | } |
| 253 | |
| 254 | SymbolVar Host2DeviceCopy::make( |
| 255 | ComputingGraph& graph, const std::shared_ptr<HostTensorND>& host_data, |
| 256 | const Param& param, const OperatorNodeConfig& config) { |
| 257 | return graph |
| 258 | .insert_opr( |
| 259 | std::make_unique<Host2DeviceCopy>(graph, host_data, param, config)) |
| 260 | ->output(0); |
| 261 | } |
| 262 | |
| 263 | void Host2DeviceCopy::record_execute_deps(ExecDependencyArray& deps) { |
| 264 | deps.emplace_back(std::make_unique<HostValueExecDep>(std::move(m_host_data))); |
nothing calls this directly
no test coverage detected