MCPcopy Create free account
hub / github.com/PyGCL/PyGCL / __call__

Method __call__

GCL/augmentors/augmentor.py:26–30  ·  view source on GitHub ↗
(
            self, x: torch.FloatTensor,
            edge_index: torch.LongTensor, edge_weight: Optional[torch.FloatTensor] = None
    )

Source from the content-addressed store, hash-verified

24 raise NotImplementedError(f"GraphAug.augment should be implemented.")
25
26 def __call__(
27 self, x: torch.FloatTensor,
28 edge_index: torch.LongTensor, edge_weight: Optional[torch.FloatTensor] = None
29 ) -> Tuple[torch.Tensor, torch.Tensor, Optional[torch.Tensor]]:
30 return self.augment(Graph(x, edge_index, edge_weight)).unfold()
31
32
33class Compose(Augmentor):

Callers

nothing calls this directly

Calls 3

augmentMethod · 0.95
GraphClass · 0.85
unfoldMethod · 0.80

Tested by

no test coverage detected