Fix conditions rendering
This commit is contained in:
committed by
Nicola Demo
parent
8dc682c849
commit
05105dd517
@@ -15,17 +15,17 @@ class InputTargetCondition(ConditionInterface):
|
||||
both supervised learning and Physics-informed problems. Based on the type of
|
||||
the input and target, different condition implementations are available:
|
||||
|
||||
- :class:`TensorInputTensorTargetCondition`: For :class:`torch.Tensor` or
|
||||
- :class:`TensorInputTensorTargetCondition`: For :class:`torch.Tensor` or \
|
||||
:class:`~pina.label_tensor.LabelTensor` input and target data.
|
||||
- :class:`TensorInputGraphTargetCondition`: For :class:`torch.Tensor` or
|
||||
:class:`~pina.label_tensor.LabelTensor` input and
|
||||
:class:`~pina.graph.Graph` or :class:`~torch_geometric.data.Data`
|
||||
- :class:`TensorInputGraphTargetCondition`: For :class:`torch.Tensor` or \
|
||||
:class:`~pina.label_tensor.LabelTensor` input and \
|
||||
:class:`~pina.graph.Graph` or :class:`torch_geometric.data.Data` \
|
||||
target data.
|
||||
- :class:`GraphInputTensorTargetCondition`: For :class:`~pina.graph.Graph`
|
||||
or :class:`~torch_geometric.data.Data` input and :class:`torch.Tensor`
|
||||
- :class:`GraphInputTensorTargetCondition`: For :class:`~pina.graph.Graph` \
|
||||
or :class:`~torch_geometric.data.Data` input and :class:`torch.Tensor` \
|
||||
or :class:`~pina.label_tensor.LabelTensor` target data.
|
||||
- :class:`GraphInputGraphTargetCondition`: For :class:`~pina.graph.Graph` or
|
||||
:class:`~torch_geometric.data.Data` input and target data.
|
||||
- :class:`GraphInputGraphTargetCondition`: For :class:`~pina.graph.Graph` \
|
||||
or :class:`~torch_geometric.data.Data` input and target data.
|
||||
"""
|
||||
|
||||
__slots__ = ["input", "target"]
|
||||
@@ -104,10 +104,10 @@ class InputTargetCondition(ConditionInterface):
|
||||
list[Data] | tuple[Graph] | tuple[Data]
|
||||
|
||||
.. note::
|
||||
If either ``input`` or ``target`` are composed by a list of
|
||||
:class:`~pina.graph.Graph` or :class:`~torch_geometric.data.Data`
|
||||
objects, all elements must have the same structure (keys and data
|
||||
types)
|
||||
If either input or target consists of a list of
|
||||
:class:~pina.graph.Graph or :class:~torch_geometric.data.Data
|
||||
objects, all elements must have the same structure (matching
|
||||
keys and data types).
|
||||
"""
|
||||
|
||||
super().__init__()
|
||||
|
||||
Reference in New Issue
Block a user