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

Method make

src/opr/impl/io.cpp:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254SymbolVar 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
263void Host2DeviceCopy::record_execute_deps(ExecDependencyArray& deps) {
264 deps.emplace_back(std::make_unique<HostValueExecDep>(std::move(m_host_data)));

Callers

nothing calls this directly

Calls 14

instFunction · 0.85
has_comp_node_setMethod · 0.80
get_single_comp_nodeMethod · 0.80
makeFunction · 0.50
outputMethod · 0.45
insert_oprMethod · 0.45
comp_nodeMethod · 0.45
syncMethod · 0.45
copy_fromMethod · 0.45
total_nr_elemsMethod · 0.45
shapeMethod · 0.45
setupMethod · 0.45

Tested by

no test coverage detected