num_grasps = len(grasps)
if num_grasps == 0:
logging.warning("No valid grasps could be found")
return None
// form tensors
image_tensor, pose_tensor = self.grasps_to_tensors(grasps, state)
if self.config["vis"]["tf_images"]:
After Change
num_grasps = len(grasps)
if num_grasps == 0:
logging.warning("No valid grasps could be found")
raise NoValidGraspsException()
// form tensors
image_tensor, pose_tensor = self.grasps_to_tensors(grasps, state)
if self.config["vis"]["tf_images"]: