@protected_method<EOL><INDENT>def _get_init_args(self, skip=<NUM_LIT:4>):<DEDENT>
stack = inspect.stack()<EOL>if len(stack) < skip + <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>args, _, _, values = inspect.getargvalues(stack[skip][<NUM_LIT:0>])<EOL>params = {}<EOL>for arg in args:<EOL><INDENT>if values[arg] is not None and arg not in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>val = values[arg]<EOL>if inspect.isfunction(val):<EOL><INDENT>params[arg] = {"<STR_LIT>": val.__module__, "<STR_LIT>": val.__name__}<EOL><DEDENT>elif arg.endswith('<STR_LIT>'):<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>params[arg] = val<EOL><DEDENT><DEDENT><DEDENT>return params<EOL>
Get all arguments of current layer for saving the graph.