Don't set unused Operation private fields if the C API is enabled.
Don't set unused Operation private fields if the C API is enabled.

This helps catch invalid uses of the private fields with the C API
enabled, and refactors Operation.__init__ in preparation for enabling
the C API and eventually getting rid of the _USE_C_API toggle.

PiperOrigin-RevId: 183092099

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