MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / generate_func

Function generate_func

tensorlayer/files/utils.py:209–225  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

207
208
209def generate_func(args):
210 for key in args:
211 if isinstance(args[key], tuple) and args[key][0] == 'is_Func':
212 fn = str2func(args[key][1])
213 args[key] = fn
214 # if key in ['act']:
215 # # fn_dict = args[key]
216 # # module_path = fn_dict['module_path']
217 # # func_name = fn_dict['func_name']
218 # # lib = importlib.import_module(module_path)
219 # # fn = getattr(lib, func_name)
220 # # args[key] = fn
221 # fn = str2func(args[key])
222 # args[key] = fn
223 # elif key in ['fn']:
224 # fn = str2func(args[key])
225 # args[key] = fn
226
227
228def eval_layer(layer_kwargs):

Callers 1

eval_layerFunction · 0.85

Calls 1

str2funcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…