(self)
return pdict
Serialize callback configuration.
Serialize callback configuration.
Serialize callback configuration .
def get_description(self):
        """
        Serialize callback configuration.
        """
        keys = inspect.getargspec(self.__init__)[0]
        keys.remove('self')

        skip = []
        for key in keys:
            if isinstance(getattr(self, key), NervanaDataIterator):
                # data iterator inputs are serialized serpartely
                skip.append(key)
        pdict = super(Callback, self).get_description(skip=skip)
        for datap in skip:
            pdict['config'][datap] = {'type': 'Data', 'name': getattr(self, datap).name}
        return pdict
def get_description ( self ) : keys = inspect . getargspec ( self . __init__ ) [ 0 ] keys . remove ( 'self' ) skip = [ ] for key in keys : if isinstance ( getattr ( self , key ) , NervanaDataIterator ) : # data iterator inputs are serialized serpartely skip . append ( key ) pdict = super ( Callback , self ) . get_description ( skip = skip ) for datap in skip : pdict [ 'config' ] [ datap ] = { 'type' : 'Data' , 'name' : getattr ( self , datap ) . name } return pdict