def as_parameter(self): ''' Converts this instance into a :class:`Parameter` ''' if not self.is_parameter: raise TypeError('cannot be converted into a Parameter') return cntk_py.Parameter(self)
def _param(): return cntk_py.Parameter((1, 2), cntk_py.DataType_Float, 5.0)