MCPcopy Create free account
hub / github.com/baidu/bigflow / declare

Function declare

bigflow_python/python/bigflow/lazy_var.py:117–143  ·  view source on GitHub ↗

根据给定的Python Object生成函数,生成一个 LazyVariable 变量; 可以用该接口来加载一个外部字典或任意的Python Object 在真正需要使用 Python Object 的时候,可以调用LazyVariable的get获取 Args: fn(Python function or Python callable Object): 生成Python Object的函数 Returns: lazy_variable(LazyVariable): 可被延迟加载的变量 Examples:

(fn)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

LazyVariableClass · 0.85

Tested by

no test coverage detected