From b2bd3dfa7cb78cda66e2f092be243dec9d514996 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni <kaushikcfd@gmail.com> Date: Tue, 22 Jun 2021 09:08:44 -0500 Subject: [PATCH] makes LazilyFunctionCompilingFunctionCaller.__doc__ more precise --- arraycontext/impl/pytato/compile.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arraycontext/impl/pytato/compile.py b/arraycontext/impl/pytato/compile.py index 3cbc895..f169ea7 100644 --- a/arraycontext/impl/pytato/compile.py +++ b/arraycontext/impl/pytato/compile.py @@ -155,10 +155,13 @@ class LazilyCompilingFunctionCaller: def __call__(self, *args: Any) -> Any: """ - Mimics :attr:`~LazilyCompilingFunctionCaller.f` being called with *args*. - Before calling :attr:`~LazilyCompilingFunctionCaller.f`, it is compiled to a - :mod:`pytato` DAG that would apply :attr:`~LazilyCompilingFunctionCaller.f` - with *args* in a lazy-sense. + Returns the result of :attr:`~LazilyCompilingFunctionCaller.f`'s + function application on *args*. + + Before applying :attr:`~LazilyCompilingFunctionCaller.f`, it is compiled + to a :mod:`pytato` DAG that would apply + :attr:`~LazilyCompilingFunctionCaller.f` with *args* in a lazy-sense. + The intermediary pytato DAG for *args* is memoized in *self*. """ arg_id_to_arg, arg_id_to_descr = _get_arg_id_to_arg_and_arg_id_to_descr(args) -- GitLab