(args)
| 207 | |
| 208 | |
| 209 | def 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 | |
| 228 | def eval_layer(layer_kwargs): |
no test coverage detected
searching dependent graphs…