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

Method compute

imperative/src/impl/ops/custom_opdef.cpp:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void CustomOpDef::compute(
54 std::shared_ptr<SmallVector<DeviceTensorND>> inputs,
55 std::shared_ptr<SmallVector<DeviceTensorND>> outputs) const {
56 custom::dispatch_custom_op(m_op, m_param, inputs, outputs);
57}
58
59std::tuple<SmallVector<LogicalTensorDesc>, bool> CustomOpDef::infer_output_attrs(
60 const SmallVector<TensorPtr>& inputs) const {

Callers 1

apply_on_physical_tensorFunction · 0.45

Calls 1

dispatch_custom_opFunction · 0.85

Tested by

no test coverage detected