Black formatting
This commit is contained in:
committed by
Nicola Demo
parent
1926e64b50
commit
fbf6fbb9b9
@@ -45,7 +45,7 @@ class ConditionInterface(metaclass=ABCMeta):
|
|||||||
objects is consistent.
|
objects is consistent.
|
||||||
|
|
||||||
:param data_list: List of graph type objects.
|
:param data_list: List of graph type objects.
|
||||||
:type data_list: torch_geometric.data.Data | Graph|
|
:type data_list: torch_geometric.data.Data | Graph|
|
||||||
list[torch_geometric.data.Data] | list[Graph]
|
list[torch_geometric.data.Data] | list[Graph]
|
||||||
|
|
||||||
:raises ValueError: Input data must be either torch_geometric.data.Data
|
:raises ValueError: Input data must be either torch_geometric.data.Data
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ class DataCondition(ConditionInterface):
|
|||||||
types of input data.
|
types of input data.
|
||||||
|
|
||||||
:param input: Input data for the condition.
|
:param input: Input data for the condition.
|
||||||
:type input: torch.Tensor | LabelTensor | Graph |
|
:type input: torch.Tensor | LabelTensor | Graph |
|
||||||
torch_geometric.data.Data | list[Graph] |
|
torch_geometric.data.Data | list[Graph] |
|
||||||
list[torch_geometric.data.Data] | tuple[Graph] |
|
list[torch_geometric.data.Data] | tuple[Graph] |
|
||||||
tuple[torch_geometric.data.Data]
|
tuple[torch_geometric.data.Data]
|
||||||
:param conditional_variables: Conditional variables for the condition.
|
:param conditional_variables: Conditional variables for the condition.
|
||||||
@@ -63,8 +63,8 @@ class DataCondition(ConditionInterface):
|
|||||||
variables (if any).
|
variables (if any).
|
||||||
|
|
||||||
:param input: Input data for the condition.
|
:param input: Input data for the condition.
|
||||||
:type input: torch.Tensor | LabelTensor | Graph |
|
:type input: torch.Tensor | LabelTensor | Graph |
|
||||||
torch_geometric.data.Data | list[Graph] |
|
torch_geometric.data.Data | list[Graph] |
|
||||||
list[torch_geometric.data.Data] | tuple[Graph] |
|
list[torch_geometric.data.Data] | tuple[Graph] |
|
||||||
tuple[torch_geometric.data.Data]
|
tuple[torch_geometric.data.Data]
|
||||||
:param conditional_variables: Conditional variables for the condition.
|
:param conditional_variables: Conditional variables for the condition.
|
||||||
|
|||||||
@@ -85,13 +85,13 @@ class InputTargetCondition(ConditionInterface):
|
|||||||
Initialize the InputTargetCondition, storing the input and target data.
|
Initialize the InputTargetCondition, storing the input and target data.
|
||||||
|
|
||||||
:param input: Input data for the condition.
|
:param input: Input data for the condition.
|
||||||
:type input: torch.Tensor | LabelTensor | Graph |
|
:type input: torch.Tensor | LabelTensor | Graph |
|
||||||
torch_geometric.data.Data | list[Graph] |
|
torch_geometric.data.Data | list[Graph] |
|
||||||
list[torch_geometric.data.Data] | tuple[Graph] |
|
list[torch_geometric.data.Data] | tuple[Graph] |
|
||||||
tuple[torch_geometric.data.Data]
|
tuple[torch_geometric.data.Data]
|
||||||
:param target: Target data for the condition.
|
:param target: Target data for the condition.
|
||||||
:type target: torch.Tensor | LabelTensor | Graph |
|
:type target: torch.Tensor | LabelTensor | Graph |
|
||||||
torch_geometric.data.Data | list[Graph] |
|
torch_geometric.data.Data | list[Graph] |
|
||||||
list[torch_geometric.data.Data] | tuple[Graph] |
|
list[torch_geometric.data.Data] | tuple[Graph] |
|
||||||
tuple[torch_geometric.data.Data]
|
tuple[torch_geometric.data.Data]
|
||||||
|
|
||||||
|
|||||||
@@ -668,7 +668,7 @@ class LabelTensor(torch.Tensor):
|
|||||||
Computes the summation of a list of :class:`LabelTensor` instances.
|
Computes the summation of a list of :class:`LabelTensor` instances.
|
||||||
|
|
||||||
|
|
||||||
:param list[LabelTensor] tensors: A list of tensors to sum. All
|
:param list[LabelTensor] tensors: A list of tensors to sum. All
|
||||||
tensors must have the same shape and labels.
|
tensors must have the same shape and labels.
|
||||||
:return: A new `LabelTensor` containing the element-wise sum of the
|
:return: A new `LabelTensor` containing the element-wise sum of the
|
||||||
input tensors.
|
input tensors.
|
||||||
|
|||||||
Reference in New Issue
Block a user