@property
def _num_threads(self) -> int:
    if (is_gpu_available() and self.resource_quota.on_gpu):
        return 1
    return int(round(self.resource_quota.cpu))
@property
def _num_threads(self) -> int:
    if (is_gpu_available() and self.resource_quota.on_gpu):
        return 1
    return int(round(self.resource_quota.cpu))