Check whether the optional actually has a value.
Check whether the optional actually has a value.

TriangularSolve and Cholesky use protos for configuring options. The boolean
fields in these protos are optional, and are considered to be false by default.
In our HloParser, we set the the optional<bool> storing the attribute value to
absl::nullopt. If the HLO text did not specify this attribute, we would try to
dereference this optional without checking whether it has a value.
This change adds the necessary check.
PiperOrigin-RevId: 290944536
Change-Id: Id5aaa9bc11fbbc3088eb050643e038d6aebaff0d

karllessard/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,annarev/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,xzturn/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,yongtang/tensorflow,jhseu/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,xzturn/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,karllessard/tensorflow,petewarden/tensorflow,aldian/tensorflow,sarvex/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,gunan/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,annarev/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,jhseu/tensorflow,aldian/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,aam-at/tensorflow,karllessard/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,yongtang/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,sarvex/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,yongtang/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,renyi533/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,aldian/tensorflow,gunan/tensorflow,gautam1858/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,gunan/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,aam-at/tensorflow,jhseu/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,sarvex/tensorflow,davidzchen/tensorflow,annarev/tensorflow,renyi533/tensorflow,yongtang/tensorflow,yongtang/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,paolodedios/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,karllessard/tensorflow,annarev/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,gunan/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aldian/tensorflow,aldian/tensorflow,petewarden/tensorflow,aam-at/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,aldian/tensorflow,Intel-Corporation/tensorflow,renyi533/tensorflow,aam-at/tensorflow,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,renyi533/tensorflow,renyi533/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,gunan/tensorflow