pytupli.dataset.TensorflowTupleParser

class TensorflowTupleParser[source]

Bases: BaseTupleParser

Parser for converting lists of observations, actions, rewards, terminal flags, and timeout flags into TensorFlow tensors.

Methods

parse_lists

Converts lists to TensorFlow tensors.

classmethod parse_lists(obs: list[list[float]], act: list[list[float]], rew: list[float], term: list[bool], trunc: list[bool]) tuple[source]

Converts lists to TensorFlow tensors.