def gpu(self): if cuda.available is False: return False return True if self.xp is cuda.cupy else False