Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf_agents.utils.eager_utils.Future

View source on GitHub

Converts a function or class method call into a future callable.

tf_agents.utils.eager_utils.Future(
    func_or_method, *args, **kwargs
)

Methods

__call__

View source

__call__(
    *args, **kwargs
)

If args/*kwargs are given they would replace those given at init.

Args:

  • *args: List of extra arguments.
  • **kwargs: Dict of extra keyword arguments.

Returns:

The result of func_or_method(*args, **kwargs).