MCPcopy
hub / github.com/pyg-team/pytorch_geometric / wrapper3

Function wrapper3

test/utils/test_coalesce.py:69–73  ·  view source on GitHub ↗
(
        edge_index: Tensor,
        edge_attr: List[Tensor],
    )

Source from the content-addressed store, hash-verified

67
68 @torch.jit.script
69 def wrapper3(
70 edge_index: Tensor,
71 edge_attr: List[Tensor],
72 ) -> Tuple[Tensor, List[Tensor]]:
73 return coalesce(edge_index, edge_attr)
74
75 edge_index = torch.tensor([[2, 1, 1, 0], [1, 2, 0, 1]])
76 edge_attr = torch.tensor([[1], [2], [3], [4]])

Callers 1

test_coalesce_jitFunction · 0.70

Calls 1

coalesceFunction · 0.90

Tested by

no test coverage detected