tuple_transforms
Description
Transformations that modify tuples of items on call.
The tuple transformations are all based on TupleTransforms
.
ReduceTuple
can be used to merge the output tuple of a
TupleTransforms
into one output value.
The Identity
transformation can be used as dummy transformation
where necessary.
Classes
Given a 3-tuple of input, target, mask apply the mask to the first two. |
|
Return the value of a sequence at selected index. |
|
Simple identity transformation for example for defaults. |
|
Apply a given transformation to all tuple items. |
|
Apply a given transformation to both input and target of a tuple in parallel. |
|
Apply a given transformation to tuple items at given indices. |
|
Apply a given one-value transformation only to the input of a two-tuple. |
|
Apply a given one-value transformation only to the target of a two-tuple. |
|
Given a 3-tuple of prediction, target, mask tensors merge mask and target and return a two-tuple. |
|
Transform an unpacked input tuple and then reduce it to one value using a reduction func. |
|
Given a tuple of input and target image, resize the target to the size of the input. |
|
Return a tuple only containing the elements at given indices of input tuple. |
|
Base class of tuple transformations that accept the same amount of inputs as they provide outputs. |
|
Version of TupleTransforms for operating on two-tuples only. |
|
Convenience trafo that takes an iterable and returns it as tuple. |
|
Undo a |