MCPcopy Create free account
hub / github.com/pytorch/executorch / implement_op

Function implement_op

backends/qualcomm/utils/utils.py:802–810  ·  view source on GitHub ↗
(custom_op, op_name, outputs)

Source from the content-addressed store, hash-verified

800 from pathlib import Path
801
802 def implement_op(custom_op, op_name, outputs):
803 @torch.library.impl(
804 custom_op, str(op_name), dispatch_key="CompositeExplicitAutograd"
805 )
806 def op_impl(inputs: List[torch.Tensor]):
807 return tuple(
808 torch.zeros(tuple(v.shape), device="meta", dtype=v.dtype)
809 for v in outputs.values()
810 )
811
812 def build_graph(
813 inputs,

Callers 1

build_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected