File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -387,15 +387,11 @@ def _get_init_args(self, skip=3):
387387
388388 # change function (e.g. act) into dictionary of module path and function name
389389 if inspect .isfunction (val ):
390- if ("__module__" in dir (val )) and (len (val .__module__ ) >
391- 10 ) and ( val . __module__ [ 0 : 10 ] == "tensorflow" ):
390+ if ("__module__" in dir (val )) and (len (val .__module__ ) > 10 ) and ( val . __module__ [ 0 : 10 ]
391+ == "tensorflow" ):
392392 params [arg ] = val .__name__
393393 else :
394394 params [arg ] = ('is_Func' , utils .func2str (val ))
395- # if val.__name__ == "<lambda>":
396- # params[arg] = utils.lambda2str(val)
397- # else:
398- # params[arg] = {"module_path": val.__module__, "func_name": val.__name__}
399395 # ignore more args e.g. TL initializer
400396 elif arg .endswith ('init' ):
401397 continue
You can’t perform that action at this time.
0 commit comments