Handle negative values when slicing symbolic shapes
Handle negative values when slicing symbolic shapes

PiperOrigin-RevId: 195176133

davidzchen/tensorflow,paolodedios/tensorflow,nburn42/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,snnn/tensorflow,yongtang/tensorflow,ZhangXinNan/tensorflow,petewarden/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,hfp/tensorflow-xsmm,kevin-coder/tensorflow-fork,adit-chandra/tensorflow,jart/tensorflow,gautam1858/tensorflow,snnn/tensorflow,Intel-Corporation/tensorflow,manipopopo/tensorflow,girving/tensorflow,asimshankar/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,asimshankar/tensorflow,asimshankar/tensorflow,ppwwyyxx/tensorflow,dongjoon-hyun/tensorflow,adit-chandra/tensorflow,brchiu/tensorflow,hfp/tensorflow-xsmm,jhseu/tensorflow,jhseu/tensorflow,dancingdan/tensorflow,ageron/tensorflow,gautam1858/tensorflow,jalexvig/tensorflow,apark263/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow,ageron/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,jart/tensorflow,jart/tensorflow,apark263/tensorflow,alshedivat/tensorflow,nburn42/tensorflow,gunan/tensorflow,xzturn/tensorflow,meteorcloudy/tensorflow,alshedivat/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,asimshankar/tensorflow,jart/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,manipopopo/tensorflow,renyi533/tensorflow,yanchen036/tensorflow,freedomtan/tensorflow,drpngx/tensorflow,adit-chandra/tensorflow,jbedorf/tensorflow,sarvex/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,petewarden/tensorflow,Bismarrck/tensorflow,DavidNorman/tensorflow,ZhangXinNan/tensorflow,renyi533/tensorflow,benoitsteiner/tensorflow-xsmm,annarev/tensorflow,drpngx/tensorflow,sarvex/tensorflow,girving/tensorflow,jalexvig/tensorflow,annarev/tensorflow,jalexvig/tensorflow,apark263/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,caisq/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,ageron/tensorflow,petewarden/tensorflow,dancingdan/tensorflow,hfp/tensorflow-xsmm,jhseu/tensorflow,renyi533/tensorflow,dendisuhubdy/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,petewarden/tensorflow,aselle/tensorflow,karllessard/tensorflow,alshedivat/tensorflow,hfp/tensorflow-xsmm,brchiu/tensorflow,renyi533/tensorflow,arborh/tensorflow,asimshankar/tensorflow,theflofly/tensorflow,dancingdan/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,adit-chandra/tensorflow,dendisuhubdy/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,apark263/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,brchiu/tensorflow,manipopopo/tensorflow,dendisuhubdy/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,nburn42/tensorflow,Bismarrck/tensorflow,theflofly/tensorflow,jhseu/tensorflow,chemelnucfin/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,annarev/tensorflow,apark263/tensorflow,jbedorf/tensorflow,drpngx/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,petewarden/tensorflow,sarvex/tensorflow,alsrgv/tensorflow,gunan/tensorflow,nburn42/tensorflow,apark263/tensorflow,jendap/tensorflow,brchiu/tensorflow,jart/tensorflow,theflofly/tensorflow,Bismarrck/tensorflow,kevin-coder/tensorflow-fork,drpngx/tensorflow,gojira/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yanchen036/tensorflow,theflofly/tensorflow,arborh/tensorflow,girving/tensorflow,AnishShah/tensorflow,cxxgtxy/tensorflow,ghchinoy/tensorflow,seanli9jan/tensorflow,xodus7/tensorflow,yanchen036/tensorflow,Bismarrck/tensorflow,alsrgv/tensorflow,ageron/tensorflow,davidzchen/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,nburn42/tensorflow,benoitsteiner/tensorflow-xsmm,ppwwyyxx/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,yongtang/tensorflow,arborh/tensorflow,sarvex/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,ZhangXinNan/tensorflow,yongtang/tensorflow,jart/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kevin-coder/tensorflow-fork,xodus7/tensorflow,gojira/tensorflow,kobejean/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kevin-coder/tensorflow-fork,seanli9jan/tensorflow,chemelnucfin/tensorflow,hfp/tensorflow-xsmm,Intel-tensorflow/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,aselle/tensorflow,nburn42/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,ageron/tensorflow,Intel-tensorflow/tensorflow,hfp/tensorflow-xsmm,drpngx/tensorflow,jart/tensorflow,jart/tensorflow,gojira/tensorflow,jendap/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow,dendisuhubdy/tensorflow,brchiu/tensorflow,snnn/tensorflow,gojira/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,lukeiwanski/tensorflow,aldian/tensorflow,DavidNorman/tensorflow,arborh/tensorflow,jbedorf/tensorflow,girving/tensorflow,manipopopo/tensorflow,chemelnucfin/tensorflow,dancingdan/tensorflow,benoitsteiner/tensorflow-xsmm,frreiss/tensorflow-fred,tensorflow/tensorflow,ZhangXinNan/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,AnishShah/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,asimshankar/tensorflow,aldian/tensorflow,benoitsteiner/tensorflow-xsmm,ZhangXinNan/tensorflow,hfp/tensorflow-xsmm,alsrgv/tensorflow,karllessard/tensorflow,meteorcloudy/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,kobejean/tensorflow,freedomtan/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,xodus7/tensorflow,annarev/tensorflow,tensorflow/tensorflow,theflofly/tensorflow,renyi533/tensorflow,caisq/tensorflow,aselle/tensorflow,freedomtan/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,ZhangXinNan/tensorflow,ghchinoy/tensorflow,drpngx/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,jendap/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ghchinoy/tensorflow,caisq/tensorflow,dongjoon-hyun/tensorflow,hehongliang/tensorflow,frreiss/tensorflow-fred,manipopopo/tensorflow,aselle/tensorflow,DavidNorman/tensorflow,sarvex/tensorflow,benoitsteiner/tensorflow-xsmm,yongtang/tensorflow,ageron/tensorflow,DavidNorman/tensorflow,benoitsteiner/tensorflow-xsmm,xodus7/tensorflow,jendap/tensorflow,aselle/tensorflow,lukeiwanski/tensorflow,jbedorf/tensorflow,yanchen036/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ppwwyyxx/tensorflow,brchiu/tensorflow,caisq/tensorflow,dongjoon-hyun/tensorflow,gojira/tensorflow,annarev/tensorflow,hfp/tensorflow-xsmm,kobejean/tensorflow,benoitsteiner/tensorflow-xsmm,manipopopo/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,meteorcloudy/tensorflow,xzturn/tensorflow,jendap/tensorflow,davidzchen/tensorflow,kobejean/tensorflow,xzturn/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,davidzchen/tensorflow,AnishShah/tensorflow,dendisuhubdy/tensorflow,benoitsteiner/tensorflow-xsmm,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,theflofly/tensorflow,dongjoon-hyun/tensorflow,gautam1858/tensorflow,jbedorf/tensorflow,dancingdan/tensorflow,jalexvig/tensorflow,dancingdan/tensorflow,aselle/tensorflow,kobejean/tensorflow,petewarden/tensorflow,alshedivat/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-pywrap_saved_model,hehongliang/tensorflow,jbedorf/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,snnn/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,davidzchen/tensorflow,AnishShah/tensorflow,aselle/tensorflow,manipopopo/tensorflow,aldian/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,xodus7/tensorflow,brchiu/tensorflow,aselle/tensorflow,petewarden/tensorflow,caisq/tensorflow,annarev/tensorflow,caisq/tensorflow,aldian/tensorflow,meteorcloudy/tensorflow,petewarden/tensorflow,gunan/tensorflow,kevin-coder/tensorflow-fork,jalexvig/tensorflow,ageron/tensorflow,jart/tensorflow,girving/tensorflow,jalexvig/tensorflow,jendap/tensorflow,snnn/tensorflow,aselle/tensorflow,chemelnucfin/tensorflow,meteorcloudy/tensorflow,ZhangXinNan/tensorflow,AnishShah/tensorflow,alshedivat/tensorflow,asimshankar/tensorflow,gunan/tensorflow,gunan/tensorflow,yanchen036/tensorflow,jalexvig/tensorflow,drpngx/tensorflow,meteorcloudy/tensorflow,gojira/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,snnn/tensorflow,apark263/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,xzturn/tensorflow,AnishShah/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,dancingdan/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,cxxgtxy/tensorflow,dongjoon-hyun/tensorflow,AnishShah/tensorflow,caisq/tensorflow,kobejean/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,dongjoon-hyun/tensorflow,lukeiwanski/tensorflow,Intel-Corporation/tensorflow,jalexvig/tensorflow,freedomtan/tensorflow,yanchen036/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,jalexvig/tensorflow,kobejean/tensorflow,cxxgtxy/tensorflow,dongjoon-hyun/tensorflow,petewarden/tensorflow,kevin-coder/tensorflow-fork,paolodedios/tensorflow,brchiu/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,AnishShah/tensorflow,theflofly/tensorflow,gojira/tensorflow,seanli9jan/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,seanli9jan/tensorflow,xodus7/tensorflow,theflofly/tensorflow,kobejean/tensorflow,tensorflow/tensorflow,yanchen036/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,jendap/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,manipopopo/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,hehongliang/tensorflow,dendisuhubdy/tensorflow,ghchinoy/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,asimshankar/tensorflow,dancingdan/tensorflow,jalexvig/tensorflow,petewarden/tensorflow,apark263/tensorflow,asimshankar/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,lukeiwanski/tensorflow,apark263/tensorflow,kevin-coder/tensorflow-fork,ppwwyyxx/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,xzturn/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,manipopopo/tensorflow,Intel-Corporation/tensorflow,ghchinoy/tensorflow,Intel-tensorflow/tensorflow,brchiu/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,ageron/tensorflow,meteorcloudy/tensorflow,paolodedios/tensorflow,lukeiwanski/tensorflow,karllessard/tensorflow,seanli9jan/tensorflow,gunan/tensorflow,dendisuhubdy/tensorflow,gojira/tensorflow,lukeiwanski/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,chemelnucfin/tensorflow,nburn42/tensorflow,ZhangXinNan/tensorflow,xzturn/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,lukeiwanski/tensorflow,annarev/tensorflow,AnishShah/tensorflow,snnn/tensorflow,jbedorf/tensorflow,jart/tensorflow,AnishShah/tensorflow,snnn/tensorflow,gojira/tensorflow,DavidNorman/tensorflow,kevin-coder/tensorflow-fork,frreiss/tensorflow-fred,ageron/tensorflow,yanchen036/tensorflow,xodus7/tensorflow,jhseu/tensorflow,jhseu/tensorflow,drpngx/tensorflow,caisq/tensorflow,asimshankar/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,caisq/tensorflow,alshedivat/tensorflow,aldian/tensorflow,karllessard/tensorflow,dendisuhubdy/tensorflow,xodus7/tensorflow,dendisuhubdy/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,ZhangXinNan/tensorflow,manipopopo/tensorflow,kobejean/tensorflow,girving/tensorflow,meteorcloudy/tensorflow,ghchinoy/tensorflow,gunan/tensorflow,girving/tensorflow,renyi533/tensorflow,drpngx/tensorflow,arborh/tensorflow,aselle/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ghchinoy/tensorflow,gojira/tensorflow,snnn/tensorflow,Intel-tensorflow/tensorflow,Bismarrck/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,ageron/tensorflow,dendisuhubdy/tensorflow,DavidNorman/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,jbedorf/tensorflow,davidzchen/tensorflow,ghchinoy/tensorflow,ageron/tensorflow,xodus7/tensorflow,dancingdan/tensorflow,brchiu/tensorflow,hfp/tensorflow-xsmm,ppwwyyxx/tensorflow,adit-chandra/tensorflow,caisq/tensorflow,girving/tensorflow,girving/tensorflow,jhseu/tensorflow,xodus7/tensorflow,nburn42/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,chemelnucfin/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,aldian/tensorflow,chemelnucfin/tensorflow,theflofly/tensorflow,meteorcloudy/tensorflow,theflofly/tensorflow,Bismarrck/tensorflow,sarvex/tensorflow,arborh/tensorflow,hehongliang/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,dongjoon-hyun/tensorflow,alshedivat/tensorflow,frreiss/tensorflow-fred,drpngx/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,ghchinoy/tensorflow,jendap/tensorflow,aam-at/tensorflow,nburn42/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,aam-at/tensorflow,alshedivat/tensorflow,jbedorf/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,kevin-coder/tensorflow-fork,seanli9jan/tensorflow,ageron/tensorflow,girving/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,arborh/tensorflow,xzturn/tensorflow,aselle/tensorflow,dongjoon-hyun/tensorflow,alsrgv/tensorflow,seanli9jan/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,sarvex/tensorflow,lukeiwanski/tensorflow,girving/tensorflow,nburn42/tensorflow,jbedorf/tensorflow,Intel-Corporation/tensorflow,Bismarrck/tensorflow,manipopopo/tensorflow,gunan/tensorflow,arborh/tensorflow,ZhangXinNan/tensorflow,alsrgv/tensorflow,theflofly/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,kobejean/tensorflow,cxxgtxy/tensorflow,gojira/tensorflow,aam-at/tensorflow,hehongliang/tensorflow,benoitsteiner/tensorflow-xsmm,paolodedios/tensorflow,meteorcloudy/tensorflow,xodus7/tensorflow,kevin-coder/tensorflow-fork,dongjoon-hyun/tensorflow,jendap/tensorflow,alsrgv/tensorflow,jendap/tensorflow,aam-at/tensorflow,apark263/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,benoitsteiner/tensorflow-xsmm,jalexvig/tensorflow,dongjoon-hyun/tensorflow,ZhangXinNan/tensorflow,renyi533/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,AnishShah/tensorflow,snnn/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,hfp/tensorflow-xsmm,adit-chandra/tensorflow,snnn/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,nburn42/tensorflow,seanli9jan/tensorflow