@@ -973,42 +974,39 @@ class ASTStaticFunction(StaticFunction):
...
@@ -973,42 +974,39 @@ class ASTStaticFunction(StaticFunction):
)
)
returnconcrete_program
returnconcrete_program
else:
else:
raiseValueError(
ifcached_program_len!=0:
"No valid transformed program for {}.\n\t Please specific `input_spec` in `@paddle.jit.to_static` or feed input tensor to call the decorated function at once.\n".format(
logging_utils.warn(
self._function_spec
"No input_spec is found, save cached program instead"
"No valid transformed program for {}.\n\t Please specific `input_spec` in `@paddle.jit.to_static` or feed input tensor to call the decorated function at once.\n".format(