(self, attrname)
return super(ModelMGPU, self).__getattribute__(attrname)
Override load and save methods to be used from the serial-model. The
        serial-model holds references to the weights in the multi-gpu model.
Override load and save methods to be used from the serial-model. The
        serial-model holds references to the weights in the multi-gpu model.
Override load and save methods to be used from the serial - model . The serial - model holds references to the weights in the multi - gpu model .
def __getattribute__(self, attrname):
        '''Override load and save methods to be used from the serial-model. The
        serial-model holds references to the weights in the multi-gpu model.
        '''
        # return Model.__getattribute__(self, attrname)
        if 'load' in attrname or 'save' in attrname:
            return getattr(self._smodel, attrname)

        return super(ModelMGPU, self).__getattribute__(attrname)
def __getattribute__ ( self , attrname ) : # return Model.__getattribute__(self, attrname) if 'load' in attrname or 'save' in attrname : return getattr ( self . _smodel , attrname ) return super ( ModelMGPU , self ) . __getattribute__ ( attrname )