Returns: dict: the current argscope. An argscope is a dict of dict: ``dict[layername] = {arg: val}``
()
| 54 | |
| 55 | |
| 56 | def get_arg_scope(): |
| 57 | """ |
| 58 | Returns: |
| 59 | dict: the current argscope. |
| 60 | |
| 61 | An argscope is a dict of dict: ``dict[layername] = {arg: val}`` |
| 62 | """ |
| 63 | if len(_ArgScopeStack) > 0: |
| 64 | return _ArgScopeStack[-1] |
| 65 | else: |
| 66 | return defaultdict(dict) |
| 67 | |
| 68 | |
| 69 | def enable_argscope_for_function(func, log_shape=True): |
no outgoing calls
no test coverage detected