put back torch bool value