Skip to content

Commit a34a051

Browse files
committed
fix yapf
1 parent 0aa5454 commit a34a051

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tensorlayer/layers/core.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)