@@ -25,11 +25,15 @@ def __new__(cls, input, target):
2525 the types of input and target data.
2626
2727 :param input: Input data for the condition.
28- :type input: torch.Tensor | Graph | torch_geometric.data.Data | list | \
29- tuple
28+ :type input: torch.Tensor | LabelTensor | Graph |
29+ torch_geometric.data.Data | list[Graph] |
30+ list[torch_geometric.data.Data] | tuple[Graph] |
31+ tuple[torch_geometric.data.Data]
3032 :param target: Target data for the condition.
31- :type target: torch.Tensor | Graph | torch_geometric.data.Data | list \
32- | tuple
33+ :type target: torch.Tensor | LabelTensor | Graph |
34+ torch_geometric.data.Data | list[Graph] |
35+ list[torch_geometric.data.Data] | tuple[Graph] |
36+ tuple[torch_geometric.data.Data]
3337 :return: Subclass of InputTargetCondition
3438 :rtype: TensorInputTensorTargetCondition | \
3539 TensorInputGraphTargetCondition | \
@@ -81,9 +85,15 @@ def __init__(self, input, target):
8185 Initialize the InputTargetCondition, storing the input and target data.
8286
8387 :param input: Input data for the condition.
84- :type input: torch.Tensor | Graph | torch_geometric.data.Data
88+ :type input: torch.Tensor | LabelTensor | Graph |
89+ torch_geometric.data.Data | list[Graph] |
90+ list[torch_geometric.data.Data] | tuple[Graph] |
91+ tuple[torch_geometric.data.Data]
8592 :param target: Target data for the condition.
86- :type target: torch.Tensor | Graph | torch_geometric.data.Data
93+ :type target: torch.Tensor | LabelTensor | Graph |
94+ torch_geometric.data.Data | list[Graph] |
95+ list[torch_geometric.data.Data] | tuple[Graph] |
96+ tuple[torch_geometric.data.Data]
8797
8898 .. note::
8999 If either ``input`` or ``target`` are composed by a list of
0 commit comments