Functions | |
def | parse_kwargs (desc) |
def | merge_dicts (dicts) |
Variables | |
reduceops_common_args | |
multi_dim_common | |
single_dim_common | |
factory_common_args | |
factory_like_common_args | |
factory_data_common_args | |
Adds docstrings to functions defined in the torch._C
def torch._torch_docs.parse_kwargs | ( | desc | ) |
Maps a description of args to a dictionary of {argname: description}. Input: (' weight (Tensor): a weight tensor\n' + ' Some optional description') Output: { 'weight': \ 'weight (Tensor): a weight tensor\n Some optional description' }
Definition at line 9 of file _torch_docs.py.