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__
__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). |