def new_tensor_value(self, tensor_value: np.ndarray) -> Optional[np.ndarray]:
        """Replace values below the threshold with the replacement value."""
        if np.any(tensor_value < self.threshold):
            tensor_value_new = tensor_value.copy()
            tensor_value_new[tensor_value_new < self.threshold] = self.replacement
            return tensor_value_new
        return None
Replace values below the threshold with the replacement value.
olive/passes/onnx/graph_surgeries.py