eval_if_exist_else_none

paddle.fluid.dygraph.dygraph_to_static.convert_operators. eval_if_exist_else_none ( name, local_symbol_table ) [source]
Parameters
  • name ([str]) – Expression passed into eval.

  • local_symbol_table (dict) – Specified from locals(). DO NOT use globals(), it has a higher priority and will hide away variables from locals().

Returns

Return the variable if found in local_symbol_table else None.