Print

class tfdatacompose.util.print.Print(name: str | None = None)

Print tensor operation.

Prints the dataset element, then forwards the elements unchanged. This operation is mainly used for debugging.

Parameters:

name – The name of the operation to display when printing, if None a number is displayed instead.

map(*args) Tuple[Tensor, ...]

Implement your transformation in this method. The method receives an element of the dataset as input and should return the transformed elements. You can change the arguments of this method to retrieve the inner element of tuples if your dataset elements are tuples. Example: map(self, x: int, y:int) -> int

Parameters:

args – the dataset element.

Returns:

the transformed element.