Update activations.py
Update activations.py

Converted examples to doctest format.
frreiss/tensorflow-fred,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,gunan/tensorflow,karllessard/tensorflow,xzturn/tensorflow,karllessard/tensorflow,jhseu/tensorflow,gunan/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,yongtang/tensorflow,yongtang/tensorflow,yongtang/tensorflow,xzturn/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,freedomtan/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,aam-at/tensorflow,xzturn/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,yongtang/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,Intel-Corporation/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,petewarden/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,aam-at/tensorflow,arborh/tensorflow,gautam1858/tensorflow,arborh/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,paolodedios/tensorflow,arborh/tensorflow,freedomtan/tensorflow,arborh/tensorflow,annarev/tensorflow,karllessard/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,annarev/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,tensorflow/tensorflow,arborh/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,yongtang/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,davidzchen/tensorflow,arborh/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,gautam1858/tensorflow,cxxgtxy/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,yongtang/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,gunan/tensorflow,aldian/tensorflow,xzturn/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,aam-at/tensorflow,renyi533/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,yongtang/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,renyi533/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,aldian/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,karllessard/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,sarvex/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,DavidNorman/tensorflow,karllessard/tensorflow,annarev/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,jhseu/tensorflow,petewarden/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,davidzchen/tensorflow,DavidNorman/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,aldian/tensorflow,davidzchen/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,gunan/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,annarev/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,petewarden/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,aam-at/tensorflow,aldian/tensorflow,arborh/tensorflow,renyi533/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,cxxgtxy/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,aldian/tensorflow,petewarden/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,gunan/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,gunan/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,jhseu/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,aam-at/tensorflow,gunan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow