nnvm/python/nnvm/symbol.py
def Variable(name, **kwargs):
    """Create a symbolic variable with specified name.

    Parameters
    ----------
    name : str
        Name of the variable.
    kwargs : dict of string -> string
        Additional attributes to set on the variable.

    Returns
    -------
    variable : Symbol
        The created variable symbol.
    """
    if not isinstance(name, _base.string_types):
        raise TypeError('Expect a string for variable `name`')
    handle = _base.SymbolHandle()
    _base.check_call(_LIB.NNSymbolCreateVariable(
        _base.c_str(name), _ctypes.byref(handle)))
    ret = Symbol(handle)
    attr = AttrScope.current.get(kwargs)
    if attr:
        ret._set_attr(**attr)
    return ret
Create a symbolic variable with specified name.

    Parameters
    ----------
    name : str
        Name of the variable.
    kwargs : dict of string -> string
        Additional attributes to set on the variable.

    Returns
    -------
    variable : Symbol
        The created variable symbol.
    
Create a symbolic variable with specified name.
Parameters

name : str
Name of the variable.
kwargs : dict of string -> string
Additional attributes to set on the variable.

Returns

variable : Symbol
The created variable symbol.
Create a symbolic variable with specified name . Parameters name : str Name of the variable . kwargs : dict of string - > string Additional attributes to set on the variable . Returns variable : Symbol The created variable symbol .
def Variable(name, **kwargs):
    if not isinstance(name, _base.string_types):
        raise TypeError('Expect a string for variable `name`')
    handle = _base.SymbolHandle()
    _base.check_call(_LIB.NNSymbolCreateVariable(
        _base.c_str(name), _ctypes.byref(handle)))
    ret = Symbol(handle)
    attr = AttrScope.current.get(kwargs)
    if attr:
        ret._set_attr(**attr)
    return ret
def Variable ( name , ** kwargs ) : if not isinstance ( name , _base . string_types ) : raise TypeError ( 'Expect a string for variable `name`' ) handle = _base . SymbolHandle ( ) _base . check_call ( _LIB . NNSymbolCreateVariable ( _base . c_str ( name ) , _ctypes . byref ( handle ) ) ) ret = Symbol ( handle ) attr = AttrScope . current . get ( kwargs ) if attr : ret . _set_attr ( ** attr ) return ret
Create a symbolic variable with specified name.
Create a symbolic variable with specified name .
"""Create a symbolic variable with specified name.

    Parameters
    ----------
    name : str
        Name of the variable.
    kwargs : dict of string -> string
        Additional attributes to set on the variable.

    Returns
    -------
    variable : Symbol
        The created variable symbol.
    """
name