Caffe2 - Python API
A deep learning, cross platform ML framework
Functions | Variables
torch._torch_docs Namespace Reference

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
 

Detailed Description

Adds docstrings to functions defined in the torch._C

Function Documentation

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.