Exemple #1
0
    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)
Exemple #2
0
def _param():
    return cntk_py.Parameter((1, 2), cntk_py.DataType_Float, 5.0)