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

Method build

imperative/python/src/ops.cpp:582–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 std::shared_ptr<mgb::Hashable> key = nullptr;
581
582 std::shared_ptr<OpDef> build() {
583 if (key == nullptr) {
584 key = std::make_shared<UniqueKey>();
585 }
586 return SubgraphOp::make(
587 name, std::make_shared<Subgraph>(graph), output_grad_mask, key);
588 }
589 };
590
591 py::class_<PySubgraphBuilder>(m, "SubgraphBuilder")

Callers 11

init_opsFunction · 0.45
make_tensor_descriptorFunction · 0.45
make_filter_descriptorFunction · 0.45
make_conv_descriptorFunction · 0.45
build_opgraphFunction · 0.45
build_opgraph_fusedFunction · 0.45

Calls 1

makeFunction · 0.50

Tested by

no test coverage detected