|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: tensorflow/core/protobuf/config.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021, 8981
- #region Designer generated code
-
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Tensorflow {
-
- /// <summary>Holder for reflection information generated from tensorflow/core/protobuf/config.proto</summary>
- public static partial class ConfigReflection {
-
- #region Descriptor
- /// <summary>File descriptor for tensorflow/core/protobuf/config.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static ConfigReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiV0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvY29uZmlnLnByb3RvEgp0ZW5z",
- "b3JmbG93Gip0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2Nvc3RfZ3JhcGgu",
- "cHJvdG8aJXRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvZ3JhcGgucHJvdG8a",
- "KnRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvc3RlcF9zdGF0cy5wcm90bxom",
- "dGVuc29yZmxvdy9jb3JlL3Byb3RvYnVmL2NsdXN0ZXIucHJvdG8aMnRlbnNv",
- "cmZsb3cvY29yZS9wcm90b2J1Zi9jb29yZGluYXRpb25fY29uZmlnLnByb3Rv",
- "GiR0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvZGVidWcucHJvdG8aLnRlbnNv",
- "cmZsb3cvY29yZS9wcm90b2J1Zi9yZXdyaXRlcl9jb25maWcucHJvdG8i1wYK",
- "CkdQVU9wdGlvbnMSJwofcGVyX3Byb2Nlc3NfZ3B1X21lbW9yeV9mcmFjdGlv",
- "bhgBIAEoARIUCgxhbGxvd19ncm93dGgYBCABKAgSFgoOYWxsb2NhdG9yX3R5",
- "cGUYAiABKAkSHwoXZGVmZXJyZWRfZGVsZXRpb25fYnl0ZXMYAyABKAMSGwoT",
- "dmlzaWJsZV9kZXZpY2VfbGlzdBgFIAEoCRIiChpwb2xsaW5nX2FjdGl2ZV9k",
- "ZWxheV91c2VjcxgGIAEoBRIkChxwb2xsaW5nX2luYWN0aXZlX2RlbGF5X21z",
- "ZWNzGAcgASgFEhwKFGZvcmNlX2dwdV9jb21wYXRpYmxlGAggASgIEjkKDGV4",
- "cGVyaW1lbnRhbBgJIAEoCzIjLnRlbnNvcmZsb3cuR1BVT3B0aW9ucy5FeHBl",
- "cmltZW50YWwakAQKDEV4cGVyaW1lbnRhbBJLCg92aXJ0dWFsX2RldmljZXMY",
- "ASADKAsyMi50ZW5zb3JmbG93LkdQVU9wdGlvbnMuRXhwZXJpbWVudGFsLlZp",
- "cnR1YWxEZXZpY2VzEhoKEnVzZV91bmlmaWVkX21lbW9yeRgCIAEoCBIjChtu",
- "dW1fZGV2X3RvX2Rldl9jb3B5X3N0cmVhbXMYAyABKAUSHQoVY29sbGVjdGl2",
- "ZV9yaW5nX29yZGVyGAQgASgJEh0KFXRpbWVzdGFtcGVkX2FsbG9jYXRvchgF",
- "IAEoCBIjChtrZXJuZWxfdHJhY2tlcl9tYXhfaW50ZXJ2YWwYByABKAUSIAoY",
- "a2VybmVsX3RyYWNrZXJfbWF4X2J5dGVzGAggASgFEiIKGmtlcm5lbF90cmFj",
- "a2VyX21heF9wZW5kaW5nGAkgASgFEicKH2ludGVybmFsX2ZyYWdtZW50YXRp",
- "b25fZnJhY3Rpb24YCiABKAESHQoVdXNlX2N1ZGFfbWFsbG9jX2FzeW5jGAsg",
- "ASgIEiwKJGRpc2FsbG93X3JldHJ5X29uX2FsbG9jYXRpb25fZmFpbHVyZRgM",
- "IAEoCBpTCg5WaXJ0dWFsRGV2aWNlcxIXCg9tZW1vcnlfbGltaXRfbWIYASAD",
- "KAISEAoIcHJpb3JpdHkYAiADKAUSFgoOZGV2aWNlX29yZGluYWwYAyADKAUi",
- "nQMKEE9wdGltaXplck9wdGlvbnMSKwojZG9fY29tbW9uX3N1YmV4cHJlc3Np",
- "b25fZWxpbWluYXRpb24YASABKAgSGwoTZG9fY29uc3RhbnRfZm9sZGluZxgC",
- "IAEoCBIkChxtYXhfZm9sZGVkX2NvbnN0YW50X2luX2J5dGVzGAYgASgDEhwK",
- "FGRvX2Z1bmN0aW9uX2lubGluaW5nGAQgASgIEjUKCW9wdF9sZXZlbBgDIAEo",
- "DjIiLnRlbnNvcmZsb3cuT3B0aW1pemVyT3B0aW9ucy5MZXZlbBJFChBnbG9i",
- "YWxfaml0X2xldmVsGAUgASgOMisudGVuc29yZmxvdy5PcHRpbWl6ZXJPcHRp",
- "b25zLkdsb2JhbEppdExldmVsEhYKDmNwdV9nbG9iYWxfaml0GAcgASgIIiAK",
- "BUxldmVsEgYKAkwxEAASDwoCTDAQ////////////ASJDCg5HbG9iYWxKaXRM",
- "ZXZlbBILCgdERUZBVUxUEAASEAoDT0ZGEP///////////wESCAoET05fMRAB",
- "EggKBE9OXzIQAiLuAgoMR3JhcGhPcHRpb25zEh4KFmVuYWJsZV9yZWN2X3Nj",
- "aGVkdWxpbmcYAiABKAgSNwoRb3B0aW1pemVyX29wdGlvbnMYAyABKAsyHC50",
- "ZW5zb3JmbG93Lk9wdGltaXplck9wdGlvbnMSGAoQYnVpbGRfY29zdF9tb2Rl",
- "bBgEIAEoAxIeChZidWlsZF9jb3N0X21vZGVsX2FmdGVyGAkgASgDEhQKDGlu",
- "ZmVyX3NoYXBlcxgFIAEoCBIaChJwbGFjZV9wcnVuZWRfZ3JhcGgYBiABKAgS",
- "IAoYZW5hYmxlX2JmbG9hdDE2X3NlbmRyZWN2GAcgASgIEhUKDXRpbWVsaW5l",
- "X3N0ZXAYCCABKAUSMwoPcmV3cml0ZV9vcHRpb25zGAogASgLMhoudGVuc29y",
- "Zmxvdy5SZXdyaXRlckNvbmZpZ0oECAEQAlIlc2tpcF9jb21tb25fc3ViZXhw",
- "cmVzc2lvbl9lbGltaW5hdGlvbiJBChVUaHJlYWRQb29sT3B0aW9uUHJvdG8S",
- "EwoLbnVtX3RocmVhZHMYASABKAUSEwoLZ2xvYmFsX25hbWUYAiABKAki1QEK",
- "ClJQQ09wdGlvbnMSJAocdXNlX3JwY19mb3JfaW5wcm9jZXNzX21hc3RlchgB",
- "IAEoCBIdChVjb21wcmVzc2lvbl9hbGdvcml0aG0YAiABKAkSGQoRY29tcHJl",
- "c3Npb25fbGV2ZWwYAyABKAUSGgoSY2FjaGVfcnBjX3Jlc3BvbnNlGAQgASgI",
- "EioKImRpc2FibGVfc2Vzc2lvbl9jb25uZWN0aW9uX3NoYXJpbmcYBSABKAgS",
- "HwoXbnVtX2NoYW5uZWxzX3Blcl90YXJnZXQYBiABKAUiMAoPU2Vzc2lvbk1l",
- "dGFkYXRhEgwKBG5hbWUYASABKAkSDwoHdmVyc2lvbhgCIAEoAyKuDgoLQ29u",
- "ZmlnUHJvdG8SPgoMZGV2aWNlX2NvdW50GAEgAygLMigudGVuc29yZmxvdy5D",
- "b25maWdQcm90by5EZXZpY2VDb3VudEVudHJ5EiQKHGludHJhX29wX3BhcmFs",
- "bGVsaXNtX3RocmVhZHMYAiABKAUSJAocaW50ZXJfb3BfcGFyYWxsZWxpc21f",
- "dGhyZWFkcxgFIAEoBRIfChd1c2VfcGVyX3Nlc3Npb25fdGhyZWFkcxgJIAEo",
- "CBJHChxzZXNzaW9uX2ludGVyX29wX3RocmVhZF9wb29sGAwgAygLMiEudGVu",
- "c29yZmxvdy5UaHJlYWRQb29sT3B0aW9uUHJvdG8SGAoQcGxhY2VtZW50X3Bl",
- "cmlvZBgDIAEoBRIWCg5kZXZpY2VfZmlsdGVycxgEIAMoCRIrCgtncHVfb3B0",
- "aW9ucxgGIAEoCzIWLnRlbnNvcmZsb3cuR1BVT3B0aW9ucxIcChRhbGxvd19z",
- "b2Z0X3BsYWNlbWVudBgHIAEoCBIcChRsb2dfZGV2aWNlX3BsYWNlbWVudBgI",
- "IAEoCBIvCg1ncmFwaF9vcHRpb25zGAogASgLMhgudGVuc29yZmxvdy5HcmFw",
- "aE9wdGlvbnMSHwoXb3BlcmF0aW9uX3RpbWVvdXRfaW5fbXMYCyABKAMSKwoL",
- "cnBjX29wdGlvbnMYDSABKAsyFi50ZW5zb3JmbG93LlJQQ09wdGlvbnMSKwoL",
- "Y2x1c3Rlcl9kZWYYDiABKAsyFi50ZW5zb3JmbG93LkNsdXN0ZXJEZWYSHQoV",
- "aXNvbGF0ZV9zZXNzaW9uX3N0YXRlGA8gASgIEigKIHNoYXJlX2NsdXN0ZXJf",
- "ZGV2aWNlc19pbl9zZXNzaW9uGBEgASgIEjoKDGV4cGVyaW1lbnRhbBgQIAEo",
- "CzIkLnRlbnNvcmZsb3cuQ29uZmlnUHJvdG8uRXhwZXJpbWVudGFsGjIKEERl",
- "dmljZUNvdW50RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4",
- "ARqoCAoMRXhwZXJpbWVudGFsEh8KF2NvbGxlY3RpdmVfZ3JvdXBfbGVhZGVy",
- "GAEgASgJEhUKDWV4ZWN1dG9yX3R5cGUYAyABKAkSGgoScmVjdl9idWZfbWF4",
- "X2NodW5rGAQgASgFEhkKEXVzZV9udW1hX2FmZmluaXR5GAUgASgIEjUKLWNv",
- "bGxlY3RpdmVfZGV0ZXJtaW5pc3RpY19zZXF1ZW50aWFsX2V4ZWN1dGlvbhgG",
- "IAEoCBIXCg9jb2xsZWN0aXZlX25jY2wYByABKAgSNgouc2hhcmVfc2Vzc2lv",
- "bl9zdGF0ZV9pbl9jbHVzdGVyc3BlY19wcm9wYWdhdGlvbhgIIAEoCBIfChdk",
- "aXNhYmxlX3RocmVhZF9zcGlubmluZxgJIAEoCBIoCiBzaGFyZV9jbHVzdGVy",
- "X2RldmljZXNfaW5fc2Vzc2lvbhgKIAEoCBI1ChBzZXNzaW9uX21ldGFkYXRh",
- "GAsgASgLMhsudGVuc29yZmxvdy5TZXNzaW9uTWV0YWRhdGESIQoZb3B0aW1p",
- "emVfZm9yX3N0YXRpY19ncmFwaBgMIAEoCBIaChJlbmFibGVfbWxpcl9icmlk",
- "Z2UYDSABKAgSUwoTbWxpcl9icmlkZ2Vfcm9sbG91dBgRIAEoDjI2LnRlbnNv",
- "cmZsb3cuQ29uZmlnUHJvdG8uRXhwZXJpbWVudGFsLk1saXJCcmlkZ2VSb2xs",
- "b3V0EiYKHmVuYWJsZV9tbGlyX2dyYXBoX29wdGltaXphdGlvbhgQIAEoCBIn",
- "Ch9kaXNhYmxlX291dHB1dF9wYXJ0aXRpb25fZ3JhcGhzGA4gASgIEiMKG3hs",
- "YV9mdXNpb25fYXV0b3R1bmVyX3RocmVzaBgPIAEoAxIQCgh1c2VfdGZydBgS",
- "IAEoCBInCh9kaXNhYmxlX2Z1bmN0aW9uYWxfb3BzX2xvd2VyaW5nGBUgASgI",
- "EicKH3hsYV9wcmVmZXJfc2luZ2xlX2dyYXBoX2NsdXN0ZXIYFiABKAgSQgoT",
- "Y29vcmRpbmF0aW9uX2NvbmZpZxgXIAEoCzIlLnRlbnNvcmZsb3cuQ29vcmRp",
- "bmF0aW9uU2VydmljZUNvbmZpZyLaAQoRTWxpckJyaWRnZVJvbGxvdXQSIwof",
- "TUxJUl9CUklER0VfUk9MTE9VVF9VTlNQRUNJRklFRBAAEh8KG01MSVJfQlJJ",
- "REdFX1JPTExPVVRfRU5BQkxFRBABEiAKHE1MSVJfQlJJREdFX1JPTExPVVRf",
- "RElTQUJMRUQQAhIpCiVNTElSX0JSSURHRV9ST0xMT1VUX1NBRkVfTU9ERV9F",
- "TkFCTEVEEAMSMgouTUxJUl9CUklER0VfUk9MTE9VVF9TQUZFX01PREVfRkFM",
- "TEJBQ0tfRU5BQkxFRBAESgQIAhADSgQIExAUSgQIFBAVIuEECgpSdW5PcHRp",
- "b25zEjYKC3RyYWNlX2xldmVsGAEgASgOMiEudGVuc29yZmxvdy5SdW5PcHRp",
- "b25zLlRyYWNlTGV2ZWwSFQoNdGltZW91dF9pbl9tcxgCIAEoAxIcChRpbnRl",
- "cl9vcF90aHJlYWRfcG9vbBgDIAEoBRIfChdvdXRwdXRfcGFydGl0aW9uX2dy",
- "YXBocxgFIAEoCBIvCg1kZWJ1Z19vcHRpb25zGAYgASgLMhgudGVuc29yZmxv",
- "dy5EZWJ1Z09wdGlvbnMSKgoicmVwb3J0X3RlbnNvcl9hbGxvY2F0aW9uc191",
- "cG9uX29vbRgHIAEoCBI5CgxleHBlcmltZW50YWwYCCABKAsyIy50ZW5zb3Jm",
- "bG93LlJ1bk9wdGlvbnMuRXhwZXJpbWVudGFsGtIBCgxFeHBlcmltZW50YWwS",
- "HAoUY29sbGVjdGl2ZV9ncmFwaF9rZXkYASABKAMSHAoUdXNlX3J1bl9oYW5k",
- "bGVyX3Bvb2wYAiABKAgSWwoYcnVuX2hhbmRsZXJfcG9vbF9vcHRpb25zGAMg",
- "ASgLMjkudGVuc29yZmxvdy5SdW5PcHRpb25zLkV4cGVyaW1lbnRhbC5SdW5I",
- "YW5kbGVyUG9vbE9wdGlvbnMaKQoVUnVuSGFuZGxlclBvb2xPcHRpb25zEhAK",
- "CHByaW9yaXR5GAEgASgDIlIKClRyYWNlTGV2ZWwSDAoITk9fVFJBQ0UQABIS",
- "Cg5TT0ZUV0FSRV9UUkFDRRABEhIKDkhBUkRXQVJFX1RSQUNFEAISDgoKRlVM",
- "TF9UUkFDRRADSgQIBBAFIr4DCgtSdW5NZXRhZGF0YRIpCgpzdGVwX3N0YXRz",
- "GAEgASgLMhUudGVuc29yZmxvdy5TdGVwU3RhdHMSLAoKY29zdF9ncmFwaBgC",
- "IAEoCzIYLnRlbnNvcmZsb3cuQ29zdEdyYXBoRGVmEi4KEHBhcnRpdGlvbl9n",
- "cmFwaHMYAyADKAsyFC50ZW5zb3JmbG93LkdyYXBoRGVmEj8KD2Z1bmN0aW9u",
- "X2dyYXBocxgEIAMoCzImLnRlbnNvcmZsb3cuUnVuTWV0YWRhdGEuRnVuY3Rp",
- "b25HcmFwaHMSNQoQc2Vzc2lvbl9tZXRhZGF0YRgFIAEoCzIbLnRlbnNvcmZs",
- "b3cuU2Vzc2lvbk1ldGFkYXRhGq0BCg5GdW5jdGlvbkdyYXBocxIuChBwYXJ0",
- "aXRpb25fZ3JhcGhzGAEgAygLMhQudGVuc29yZmxvdy5HcmFwaERlZhI0ChZw",
- "cmVfb3B0aW1pemF0aW9uX2dyYXBoGAIgASgLMhQudGVuc29yZmxvdy5HcmFw",
- "aERlZhI1Chdwb3N0X29wdGltaXphdGlvbl9ncmFwaBgDIAEoCzIULnRlbnNv",
- "cmZsb3cuR3JhcGhEZWYiOgoQVGVuc29yQ29ubmVjdGlvbhITCgtmcm9tX3Rl",
- "bnNvchgBIAEoCRIRCgl0b190ZW5zb3IYAiABKAkisAMKD0NhbGxhYmxlT3B0",
- "aW9ucxIMCgRmZWVkGAEgAygJEg0KBWZldGNoGAIgAygJEg4KBnRhcmdldBgD",
- "IAMoCRIrCgtydW5fb3B0aW9ucxgEIAEoCzIWLnRlbnNvcmZsb3cuUnVuT3B0",
- "aW9ucxI3ChF0ZW5zb3JfY29ubmVjdGlvbhgFIAMoCzIcLnRlbnNvcmZsb3cu",
- "VGVuc29yQ29ubmVjdGlvbhJCCgxmZWVkX2RldmljZXMYBiADKAsyLC50ZW5z",
- "b3JmbG93LkNhbGxhYmxlT3B0aW9ucy5GZWVkRGV2aWNlc0VudHJ5EkQKDWZl",
- "dGNoX2RldmljZXMYByADKAsyLS50ZW5zb3JmbG93LkNhbGxhYmxlT3B0aW9u",
- "cy5GZXRjaERldmljZXNFbnRyeRIXCg9mZXRjaF9za2lwX3N5bmMYCCABKAga",
- "MgoQRmVlZERldmljZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiAB",
- "KAk6AjgBGjMKEUZldGNoRGV2aWNlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2",
- "YWx1ZRgCIAEoCToCOAFChAEKGG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0IM",
- "Q29uZmlnUHJvdG9zUAFaVWdpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3Jm",
- "bG93L3RlbnNvcmZsb3cvZ28vY29yZS9wcm90b2J1Zi9mb3JfY29yZV9wcm90",
- "b3NfZ29fcHJvdG/4AQFiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Tensorflow.CostGraphReflection.Descriptor, global::Tensorflow.GraphReflection.Descriptor, global::Tensorflow.StepStatsReflection.Descriptor, global::Tensorflow.ClusterReflection.Descriptor, global::Tensorflow.CoordinationConfigReflection.Descriptor, global::Tensorflow.DebugReflection.Descriptor, global::Tensorflow.RewriterConfigReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GPUOptions), global::Tensorflow.GPUOptions.Parser, new[]{ "PerProcessGpuMemoryFraction", "AllowGrowth", "AllocatorType", "DeferredDeletionBytes", "VisibleDeviceList", "PollingActiveDelayUsecs", "PollingInactiveDelayMsecs", "ForceGpuCompatible", "Experimental" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GPUOptions.Types.Experimental), global::Tensorflow.GPUOptions.Types.Experimental.Parser, new[]{ "VirtualDevices", "UseUnifiedMemory", "NumDevToDevCopyStreams", "CollectiveRingOrder", "TimestampedAllocator", "KernelTrackerMaxInterval", "KernelTrackerMaxBytes", "KernelTrackerMaxPending", "InternalFragmentationFraction", "UseCudaMallocAsync", "DisallowRetryOnAllocationFailure" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices), global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices.Parser, new[]{ "MemoryLimitMb", "Priority", "DeviceOrdinal" }, null, null, null, null)})}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.OptimizerOptions), global::Tensorflow.OptimizerOptions.Parser, new[]{ "DoCommonSubexpressionElimination", "DoConstantFolding", "MaxFoldedConstantInBytes", "DoFunctionInlining", "OptLevel", "GlobalJitLevel", "CpuGlobalJit" }, null, new[]{ typeof(global::Tensorflow.OptimizerOptions.Types.Level), typeof(global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel) }, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GraphOptions), global::Tensorflow.GraphOptions.Parser, new[]{ "EnableRecvScheduling", "OptimizerOptions", "BuildCostModel", "BuildCostModelAfter", "InferShapes", "PlacePrunedGraph", "EnableBfloat16Sendrecv", "TimelineStep", "RewriteOptions" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ThreadPoolOptionProto), global::Tensorflow.ThreadPoolOptionProto.Parser, new[]{ "NumThreads", "GlobalName" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RPCOptions), global::Tensorflow.RPCOptions.Parser, new[]{ "UseRpcForInprocessMaster", "CompressionAlgorithm", "CompressionLevel", "CacheRpcResponse", "DisableSessionConnectionSharing", "NumChannelsPerTarget" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SessionMetadata), global::Tensorflow.SessionMetadata.Parser, new[]{ "Name", "Version" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ConfigProto), global::Tensorflow.ConfigProto.Parser, new[]{ "DeviceCount", "IntraOpParallelismThreads", "InterOpParallelismThreads", "UsePerSessionThreads", "SessionInterOpThreadPool", "PlacementPeriod", "DeviceFilters", "GpuOptions", "AllowSoftPlacement", "LogDevicePlacement", "GraphOptions", "OperationTimeoutInMs", "RpcOptions", "ClusterDef", "IsolateSessionState", "ShareClusterDevicesInSession", "Experimental" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ConfigProto.Types.Experimental), global::Tensorflow.ConfigProto.Types.Experimental.Parser, new[]{ "CollectiveGroupLeader", "ExecutorType", "RecvBufMaxChunk", "UseNumaAffinity", "CollectiveDeterministicSequentialExecution", "CollectiveNccl", "ShareSessionStateInClusterspecPropagation", "DisableThreadSpinning", "ShareClusterDevicesInSession", "SessionMetadata", "OptimizeForStaticGraph", "EnableMlirBridge", "MlirBridgeRollout", "EnableMlirGraphOptimization", "DisableOutputPartitionGraphs", "XlaFusionAutotunerThresh", "UseTfrt", "DisableFunctionalOpsLowering", "XlaPreferSingleGraphCluster", "CoordinationConfig" }, null, new[]{ typeof(global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout) }, null, null)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunOptions), global::Tensorflow.RunOptions.Parser, new[]{ "TraceLevel", "TimeoutInMs", "InterOpThreadPool", "OutputPartitionGraphs", "DebugOptions", "ReportTensorAllocationsUponOom", "Experimental" }, null, new[]{ typeof(global::Tensorflow.RunOptions.Types.TraceLevel) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunOptions.Types.Experimental), global::Tensorflow.RunOptions.Types.Experimental.Parser, new[]{ "CollectiveGraphKey", "UseRunHandlerPool", "RunHandlerPoolOptions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions), global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions.Parser, new[]{ "Priority" }, null, null, null, null)})}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunMetadata), global::Tensorflow.RunMetadata.Parser, new[]{ "StepStats", "CostGraph", "PartitionGraphs", "FunctionGraphs", "SessionMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunMetadata.Types.FunctionGraphs), global::Tensorflow.RunMetadata.Types.FunctionGraphs.Parser, new[]{ "PartitionGraphs", "PreOptimizationGraph", "PostOptimizationGraph" }, null, null, null, null)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TensorConnection), global::Tensorflow.TensorConnection.Parser, new[]{ "FromTensor", "ToTensor" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CallableOptions), global::Tensorflow.CallableOptions.Parser, new[]{ "Feed", "Fetch", "Target", "RunOptions", "TensorConnection", "FeedDevices", "FetchDevices", "FetchSkipSync" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, })
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class GPUOptions : pb::IMessage<GPUOptions>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<GPUOptions> _parser = new pb::MessageParser<GPUOptions>(() => new GPUOptions());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<GPUOptions> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GPUOptions() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GPUOptions(GPUOptions other) : this() {
- perProcessGpuMemoryFraction_ = other.perProcessGpuMemoryFraction_;
- allowGrowth_ = other.allowGrowth_;
- allocatorType_ = other.allocatorType_;
- deferredDeletionBytes_ = other.deferredDeletionBytes_;
- visibleDeviceList_ = other.visibleDeviceList_;
- pollingActiveDelayUsecs_ = other.pollingActiveDelayUsecs_;
- pollingInactiveDelayMsecs_ = other.pollingInactiveDelayMsecs_;
- forceGpuCompatible_ = other.forceGpuCompatible_;
- experimental_ = other.experimental_ != null ? other.experimental_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GPUOptions Clone() {
- return new GPUOptions(this);
- }
-
- /// <summary>Field number for the "per_process_gpu_memory_fraction" field.</summary>
- public const int PerProcessGpuMemoryFractionFieldNumber = 1;
- private double perProcessGpuMemoryFraction_;
- /// <summary>
- /// Fraction of the available GPU memory to allocate for each process.
- /// 1 means to allocate all of the GPU memory, 0.5 means the process
- /// allocates up to ~50% of the available GPU memory.
- ///
- /// GPU memory is pre-allocated unless the allow_growth option is enabled.
- ///
- /// If greater than 1.0, uses CUDA unified memory to potentially oversubscribe
- /// the amount of memory available on the GPU device by using host memory as a
- /// swap space. Accessing memory not available on the device will be
- /// significantly slower as that would require memory transfer between the host
- /// and the device. Options to reduce the memory requirement should be
- /// considered before enabling this option as this may come with a negative
- /// performance impact. Oversubscription using the unified memory requires
- /// Pascal class or newer GPUs and it is currently only supported on the Linux
- /// operating system. See
- /// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#um-requirements
- /// for the detailed requirements.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public double PerProcessGpuMemoryFraction {
- get { return perProcessGpuMemoryFraction_; }
- set {
- perProcessGpuMemoryFraction_ = value;
- }
- }
-
- /// <summary>Field number for the "allow_growth" field.</summary>
- public const int AllowGrowthFieldNumber = 4;
- private bool allowGrowth_;
- /// <summary>
- /// If true, the allocator does not pre-allocate the entire specified
- /// GPU memory region, instead starting small and growing as needed.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool AllowGrowth {
- get { return allowGrowth_; }
- set {
- allowGrowth_ = value;
- }
- }
-
- /// <summary>Field number for the "allocator_type" field.</summary>
- public const int AllocatorTypeFieldNumber = 2;
- private string allocatorType_ = "";
- /// <summary>
- /// The type of GPU allocation strategy to use.
- ///
- /// Allowed values:
- /// "": The empty string (default) uses a system-chosen default
- /// which may change over time.
- ///
- /// "BFC": A "Best-fit with coalescing" algorithm, simplified from a
- /// version of dlmalloc.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string AllocatorType {
- get { return allocatorType_; }
- set {
- allocatorType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "deferred_deletion_bytes" field.</summary>
- public const int DeferredDeletionBytesFieldNumber = 3;
- private long deferredDeletionBytes_;
- /// <summary>
- /// Delay deletion of up to this many bytes to reduce the number of
- /// interactions with gpu driver code. If 0, the system chooses
- /// a reasonable default (several MBs).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long DeferredDeletionBytes {
- get { return deferredDeletionBytes_; }
- set {
- deferredDeletionBytes_ = value;
- }
- }
-
- /// <summary>Field number for the "visible_device_list" field.</summary>
- public const int VisibleDeviceListFieldNumber = 5;
- private string visibleDeviceList_ = "";
- /// <summary>
- /// A comma-separated list of GPU ids that determines the 'visible'
- /// to 'virtual' mapping of GPU devices. For example, if TensorFlow
- /// can see 8 GPU devices in the process, and one wanted to map
- /// visible GPU devices 5 and 3 as "/device:GPU:0", and "/device:GPU:1",
- /// then one would specify this field as "5,3". This field is similar in
- /// spirit to the CUDA_VISIBLE_DEVICES environment variable, except
- /// it applies to the visible GPU devices in the process.
- ///
- /// NOTE:
- /// 1. The GPU driver provides the process with the visible GPUs
- /// in an order which is not guaranteed to have any correlation to
- /// the *physical* GPU id in the machine. This field is used for
- /// remapping "visible" to "virtual", which means this operates only
- /// after the process starts. Users are required to use vendor
- /// specific mechanisms (e.g., CUDA_VISIBLE_DEVICES) to control the
- /// physical to visible device mapping prior to invoking TensorFlow.
- /// 2. In the code, the ids in this list are also called "platform GPU id"s,
- /// and the 'virtual' ids of GPU devices (i.e. the ids in the device
- /// name "/device:GPU:<id>") are also called "TF GPU id"s. Please
- /// refer to third_party/tensorflow/core/common_runtime/gpu/gpu_id.h
- /// for more information.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string VisibleDeviceList {
- get { return visibleDeviceList_; }
- set {
- visibleDeviceList_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "polling_active_delay_usecs" field.</summary>
- public const int PollingActiveDelayUsecsFieldNumber = 6;
- private int pollingActiveDelayUsecs_;
- /// <summary>
- /// In the event polling loop sleep this many microseconds between
- /// PollEvents calls, when the queue is not empty. If value is not
- /// set or set to 0, gets set to a non-zero default.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int PollingActiveDelayUsecs {
- get { return pollingActiveDelayUsecs_; }
- set {
- pollingActiveDelayUsecs_ = value;
- }
- }
-
- /// <summary>Field number for the "polling_inactive_delay_msecs" field.</summary>
- public const int PollingInactiveDelayMsecsFieldNumber = 7;
- private int pollingInactiveDelayMsecs_;
- /// <summary>
- /// This field is deprecated and ignored.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int PollingInactiveDelayMsecs {
- get { return pollingInactiveDelayMsecs_; }
- set {
- pollingInactiveDelayMsecs_ = value;
- }
- }
-
- /// <summary>Field number for the "force_gpu_compatible" field.</summary>
- public const int ForceGpuCompatibleFieldNumber = 8;
- private bool forceGpuCompatible_;
- /// <summary>
- /// Force all tensors to be gpu_compatible. On a GPU-enabled TensorFlow,
- /// enabling this option forces all CPU tensors to be allocated with Cuda
- /// pinned memory. Normally, TensorFlow will infer which tensors should be
- /// allocated as the pinned memory. But in case where the inference is
- /// incomplete, this option can significantly speed up the cross-device memory
- /// copy performance as long as it fits the memory.
- /// Note that this option is not something that should be
- /// enabled by default for unknown or very large models, since all Cuda pinned
- /// memory is unpageable, having too much pinned memory might negatively impact
- /// the overall host system performance.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool ForceGpuCompatible {
- get { return forceGpuCompatible_; }
- set {
- forceGpuCompatible_ = value;
- }
- }
-
- /// <summary>Field number for the "experimental" field.</summary>
- public const int ExperimentalFieldNumber = 9;
- private global::Tensorflow.GPUOptions.Types.Experimental experimental_;
- /// <summary>
- /// Everything inside experimental is subject to change and is not subject
- /// to API stability guarantees in
- /// https://www.tensorflow.org/guide/version_compat.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.GPUOptions.Types.Experimental Experimental {
- get { return experimental_; }
- set {
- experimental_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as GPUOptions);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(GPUOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PerProcessGpuMemoryFraction, other.PerProcessGpuMemoryFraction)) return false;
- if (AllowGrowth != other.AllowGrowth) return false;
- if (AllocatorType != other.AllocatorType) return false;
- if (DeferredDeletionBytes != other.DeferredDeletionBytes) return false;
- if (VisibleDeviceList != other.VisibleDeviceList) return false;
- if (PollingActiveDelayUsecs != other.PollingActiveDelayUsecs) return false;
- if (PollingInactiveDelayMsecs != other.PollingInactiveDelayMsecs) return false;
- if (ForceGpuCompatible != other.ForceGpuCompatible) return false;
- if (!object.Equals(Experimental, other.Experimental)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (PerProcessGpuMemoryFraction != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PerProcessGpuMemoryFraction);
- if (AllowGrowth != false) hash ^= AllowGrowth.GetHashCode();
- if (AllocatorType.Length != 0) hash ^= AllocatorType.GetHashCode();
- if (DeferredDeletionBytes != 0L) hash ^= DeferredDeletionBytes.GetHashCode();
- if (VisibleDeviceList.Length != 0) hash ^= VisibleDeviceList.GetHashCode();
- if (PollingActiveDelayUsecs != 0) hash ^= PollingActiveDelayUsecs.GetHashCode();
- if (PollingInactiveDelayMsecs != 0) hash ^= PollingInactiveDelayMsecs.GetHashCode();
- if (ForceGpuCompatible != false) hash ^= ForceGpuCompatible.GetHashCode();
- if (experimental_ != null) hash ^= Experimental.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (PerProcessGpuMemoryFraction != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(PerProcessGpuMemoryFraction);
- }
- if (AllocatorType.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(AllocatorType);
- }
- if (DeferredDeletionBytes != 0L) {
- output.WriteRawTag(24);
- output.WriteInt64(DeferredDeletionBytes);
- }
- if (AllowGrowth != false) {
- output.WriteRawTag(32);
- output.WriteBool(AllowGrowth);
- }
- if (VisibleDeviceList.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(VisibleDeviceList);
- }
- if (PollingActiveDelayUsecs != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(PollingActiveDelayUsecs);
- }
- if (PollingInactiveDelayMsecs != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(PollingInactiveDelayMsecs);
- }
- if (ForceGpuCompatible != false) {
- output.WriteRawTag(64);
- output.WriteBool(ForceGpuCompatible);
- }
- if (experimental_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(Experimental);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (PerProcessGpuMemoryFraction != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(PerProcessGpuMemoryFraction);
- }
- if (AllocatorType.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(AllocatorType);
- }
- if (DeferredDeletionBytes != 0L) {
- output.WriteRawTag(24);
- output.WriteInt64(DeferredDeletionBytes);
- }
- if (AllowGrowth != false) {
- output.WriteRawTag(32);
- output.WriteBool(AllowGrowth);
- }
- if (VisibleDeviceList.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(VisibleDeviceList);
- }
- if (PollingActiveDelayUsecs != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(PollingActiveDelayUsecs);
- }
- if (PollingInactiveDelayMsecs != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(PollingInactiveDelayMsecs);
- }
- if (ForceGpuCompatible != false) {
- output.WriteRawTag(64);
- output.WriteBool(ForceGpuCompatible);
- }
- if (experimental_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(Experimental);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (PerProcessGpuMemoryFraction != 0D) {
- size += 1 + 8;
- }
- if (AllowGrowth != false) {
- size += 1 + 1;
- }
- if (AllocatorType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AllocatorType);
- }
- if (DeferredDeletionBytes != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(DeferredDeletionBytes);
- }
- if (VisibleDeviceList.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(VisibleDeviceList);
- }
- if (PollingActiveDelayUsecs != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PollingActiveDelayUsecs);
- }
- if (PollingInactiveDelayMsecs != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PollingInactiveDelayMsecs);
- }
- if (ForceGpuCompatible != false) {
- size += 1 + 1;
- }
- if (experimental_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Experimental);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(GPUOptions other) {
- if (other == null) {
- return;
- }
- if (other.PerProcessGpuMemoryFraction != 0D) {
- PerProcessGpuMemoryFraction = other.PerProcessGpuMemoryFraction;
- }
- if (other.AllowGrowth != false) {
- AllowGrowth = other.AllowGrowth;
- }
- if (other.AllocatorType.Length != 0) {
- AllocatorType = other.AllocatorType;
- }
- if (other.DeferredDeletionBytes != 0L) {
- DeferredDeletionBytes = other.DeferredDeletionBytes;
- }
- if (other.VisibleDeviceList.Length != 0) {
- VisibleDeviceList = other.VisibleDeviceList;
- }
- if (other.PollingActiveDelayUsecs != 0) {
- PollingActiveDelayUsecs = other.PollingActiveDelayUsecs;
- }
- if (other.PollingInactiveDelayMsecs != 0) {
- PollingInactiveDelayMsecs = other.PollingInactiveDelayMsecs;
- }
- if (other.ForceGpuCompatible != false) {
- ForceGpuCompatible = other.ForceGpuCompatible;
- }
- if (other.experimental_ != null) {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.GPUOptions.Types.Experimental();
- }
- Experimental.MergeFrom(other.Experimental);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 9: {
- PerProcessGpuMemoryFraction = input.ReadDouble();
- break;
- }
- case 18: {
- AllocatorType = input.ReadString();
- break;
- }
- case 24: {
- DeferredDeletionBytes = input.ReadInt64();
- break;
- }
- case 32: {
- AllowGrowth = input.ReadBool();
- break;
- }
- case 42: {
- VisibleDeviceList = input.ReadString();
- break;
- }
- case 48: {
- PollingActiveDelayUsecs = input.ReadInt32();
- break;
- }
- case 56: {
- PollingInactiveDelayMsecs = input.ReadInt32();
- break;
- }
- case 64: {
- ForceGpuCompatible = input.ReadBool();
- break;
- }
- case 74: {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.GPUOptions.Types.Experimental();
- }
- input.ReadMessage(Experimental);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 9: {
- PerProcessGpuMemoryFraction = input.ReadDouble();
- break;
- }
- case 18: {
- AllocatorType = input.ReadString();
- break;
- }
- case 24: {
- DeferredDeletionBytes = input.ReadInt64();
- break;
- }
- case 32: {
- AllowGrowth = input.ReadBool();
- break;
- }
- case 42: {
- VisibleDeviceList = input.ReadString();
- break;
- }
- case 48: {
- PollingActiveDelayUsecs = input.ReadInt32();
- break;
- }
- case 56: {
- PollingInactiveDelayMsecs = input.ReadInt32();
- break;
- }
- case 64: {
- ForceGpuCompatible = input.ReadBool();
- break;
- }
- case 74: {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.GPUOptions.Types.Experimental();
- }
- input.ReadMessage(Experimental);
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the GPUOptions message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- public sealed partial class Experimental : pb::IMessage<Experimental>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Experimental> _parser = new pb::MessageParser<Experimental>(() => new Experimental());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<Experimental> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.GPUOptions.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental(Experimental other) : this() {
- virtualDevices_ = other.virtualDevices_.Clone();
- useUnifiedMemory_ = other.useUnifiedMemory_;
- numDevToDevCopyStreams_ = other.numDevToDevCopyStreams_;
- collectiveRingOrder_ = other.collectiveRingOrder_;
- timestampedAllocator_ = other.timestampedAllocator_;
- kernelTrackerMaxInterval_ = other.kernelTrackerMaxInterval_;
- kernelTrackerMaxBytes_ = other.kernelTrackerMaxBytes_;
- kernelTrackerMaxPending_ = other.kernelTrackerMaxPending_;
- internalFragmentationFraction_ = other.internalFragmentationFraction_;
- useCudaMallocAsync_ = other.useCudaMallocAsync_;
- disallowRetryOnAllocationFailure_ = other.disallowRetryOnAllocationFailure_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental Clone() {
- return new Experimental(this);
- }
-
- /// <summary>Field number for the "virtual_devices" field.</summary>
- public const int VirtualDevicesFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices> _repeated_virtualDevices_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices> virtualDevices_ = new pbc::RepeatedField<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices>();
- /// <summary>
- /// The multi virtual device settings. If empty (not set), it will create
- /// single virtual device on each visible GPU, according to the settings
- /// in "visible_device_list" above. Otherwise, the number of elements in the
- /// list must be the same as the number of visible GPUs (after
- /// "visible_device_list" filtering if it is set), and the string represented
- /// device names (e.g. /device:GPU:<id>) will refer to the virtual
- /// devices and have the <id> field assigned sequentially starting from 0,
- /// according to the order of the virtual devices determined by
- /// device_ordinal and the location in the virtual device list.
- ///
- /// For example,
- /// visible_device_list = "1,0"
- /// virtual_devices { memory_limit: 1GB memory_limit: 2GB }
- /// virtual_devices { memory_limit: 3GB memory_limit: 4GB }
- /// will create 4 virtual devices as:
- /// /device:GPU:0 -> visible GPU 1 with 1GB memory
- /// /device:GPU:1 -> visible GPU 1 with 2GB memory
- /// /device:GPU:2 -> visible GPU 0 with 3GB memory
- /// /device:GPU:3 -> visible GPU 0 with 4GB memory
- ///
- /// but
- /// visible_device_list = "1,0"
- /// virtual_devices { memory_limit: 1GB memory_limit: 2GB
- /// device_ordinal: 10 device_ordinal: 20}
- /// virtual_devices { memory_limit: 3GB memory_limit: 4GB
- /// device_ordinal: 10 device_ordinal: 20}
- /// will create 4 virtual devices as:
- /// /device:GPU:0 -> visible GPU 1 with 1GB memory (ordinal 10)
- /// /device:GPU:1 -> visible GPU 0 with 3GB memory (ordinal 10)
- /// /device:GPU:2 -> visible GPU 1 with 2GB memory (ordinal 20)
- /// /device:GPU:3 -> visible GPU 0 with 4GB memory (ordinal 20)
- ///
- /// NOTE:
- /// 1. It's invalid to set both this and "per_process_gpu_memory_fraction"
- /// at the same time.
- /// 2. Currently this setting is per-process, not per-session. Using
- /// different settings in different sessions within same process will
- /// result in undefined behavior.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices> VirtualDevices {
- get { return virtualDevices_; }
- }
-
- /// <summary>Field number for the "use_unified_memory" field.</summary>
- public const int UseUnifiedMemoryFieldNumber = 2;
- private bool useUnifiedMemory_;
- /// <summary>
- /// If true, uses CUDA unified memory for memory allocations. If
- /// per_process_gpu_memory_fraction option is greater than 1.0, then unified
- /// memory is used regardless of the value for this field. See comments for
- /// per_process_gpu_memory_fraction field for more details and requirements
- /// of the unified memory. This option is useful to oversubscribe memory if
- /// multiple processes are sharing a single GPU while individually using less
- /// than 1.0 per process memory fraction.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool UseUnifiedMemory {
- get { return useUnifiedMemory_; }
- set {
- useUnifiedMemory_ = value;
- }
- }
-
- /// <summary>Field number for the "num_dev_to_dev_copy_streams" field.</summary>
- public const int NumDevToDevCopyStreamsFieldNumber = 3;
- private int numDevToDevCopyStreams_;
- /// <summary>
- /// If > 1, the number of device-to-device copy streams to create
- /// for each GPUDevice. Default value is 0, which is automatically
- /// converted to 1.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int NumDevToDevCopyStreams {
- get { return numDevToDevCopyStreams_; }
- set {
- numDevToDevCopyStreams_ = value;
- }
- }
-
- /// <summary>Field number for the "collective_ring_order" field.</summary>
- public const int CollectiveRingOrderFieldNumber = 4;
- private string collectiveRingOrder_ = "";
- /// <summary>
- /// If non-empty, defines a good GPU ring order on a single worker based on
- /// device interconnect. This assumes that all workers have the same GPU
- /// topology. Specify as a comma-separated string, e.g. "3,2,1,0,7,6,5,4".
- /// This ring order is used by the RingReducer implementation of
- /// CollectiveReduce, and serves as an override to automatic ring order
- /// generation in OrderTaskDeviceMap() during CollectiveParam resolution.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string CollectiveRingOrder {
- get { return collectiveRingOrder_; }
- set {
- collectiveRingOrder_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "timestamped_allocator" field.</summary>
- public const int TimestampedAllocatorFieldNumber = 5;
- private bool timestampedAllocator_;
- /// <summary>
- /// If true then extra work is done by GPUDevice and GPUBFCAllocator to
- /// keep track of when GPU memory is freed and when kernels actually
- /// complete so that we can know when a nominally free memory chunk
- /// is really not subject to pending use.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool TimestampedAllocator {
- get { return timestampedAllocator_; }
- set {
- timestampedAllocator_ = value;
- }
- }
-
- /// <summary>Field number for the "kernel_tracker_max_interval" field.</summary>
- public const int KernelTrackerMaxIntervalFieldNumber = 7;
- private int kernelTrackerMaxInterval_;
- /// <summary>
- /// Parameters for GPUKernelTracker. By default no kernel tracking is done.
- /// Note that timestamped_allocator is only effective if some tracking is
- /// specified.
- ///
- /// If kernel_tracker_max_interval = n > 0, then a tracking event
- /// is inserted after every n kernels without an event.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int KernelTrackerMaxInterval {
- get { return kernelTrackerMaxInterval_; }
- set {
- kernelTrackerMaxInterval_ = value;
- }
- }
-
- /// <summary>Field number for the "kernel_tracker_max_bytes" field.</summary>
- public const int KernelTrackerMaxBytesFieldNumber = 8;
- private int kernelTrackerMaxBytes_;
- /// <summary>
- /// If kernel_tracker_max_bytes = n > 0, then a tracking event is
- /// inserted after every series of kernels allocating a sum of
- /// memory >= n. If one kernel allocates b * n bytes, then one
- /// event will be inserted after it, but it will count as b against
- /// the pending limit.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int KernelTrackerMaxBytes {
- get { return kernelTrackerMaxBytes_; }
- set {
- kernelTrackerMaxBytes_ = value;
- }
- }
-
- /// <summary>Field number for the "kernel_tracker_max_pending" field.</summary>
- public const int KernelTrackerMaxPendingFieldNumber = 9;
- private int kernelTrackerMaxPending_;
- /// <summary>
- /// If kernel_tracker_max_pending > 0 then no more than this many
- /// tracking events can be outstanding at a time. An attempt to
- /// launch an additional kernel will stall until an event
- /// completes.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int KernelTrackerMaxPending {
- get { return kernelTrackerMaxPending_; }
- set {
- kernelTrackerMaxPending_ = value;
- }
- }
-
- /// <summary>Field number for the "internal_fragmentation_fraction" field.</summary>
- public const int InternalFragmentationFractionFieldNumber = 10;
- private double internalFragmentationFraction_;
- /// <summary>
- /// BFC Allocator can return an allocated chunk of memory upto 2x the
- /// requested size. For virtual devices with tight memory constraints, and
- /// proportionately large allocation requests, this can lead to a significant
- /// reduction in available memory. The threshold below controls when a chunk
- /// should be split if the chunk size exceeds requested memory size. It is
- /// expressed as a fraction of total available memory for the tf device. For
- /// example setting it to 0.05 would imply a chunk needs to be split if its
- /// size exceeds the requested memory by 5% of the total virtual device/gpu
- /// memory size.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public double InternalFragmentationFraction {
- get { return internalFragmentationFraction_; }
- set {
- internalFragmentationFraction_ = value;
- }
- }
-
- /// <summary>Field number for the "use_cuda_malloc_async" field.</summary>
- public const int UseCudaMallocAsyncFieldNumber = 11;
- private bool useCudaMallocAsync_;
- /// <summary>
- /// When true, use CUDA cudaMallocAsync API instead of TF gpu allocator.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool UseCudaMallocAsync {
- get { return useCudaMallocAsync_; }
- set {
- useCudaMallocAsync_ = value;
- }
- }
-
- /// <summary>Field number for the "disallow_retry_on_allocation_failure" field.</summary>
- public const int DisallowRetryOnAllocationFailureFieldNumber = 12;
- private bool disallowRetryOnAllocationFailure_;
- /// <summary>
- /// By default, BFCAllocator may sleep when it runs out of memory, in the
- /// hopes that another thread will free up memory in the meantime. Setting
- /// this to true disables the sleep; instead we'll OOM immediately.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DisallowRetryOnAllocationFailure {
- get { return disallowRetryOnAllocationFailure_; }
- set {
- disallowRetryOnAllocationFailure_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as Experimental);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(Experimental other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!virtualDevices_.Equals(other.virtualDevices_)) return false;
- if (UseUnifiedMemory != other.UseUnifiedMemory) return false;
- if (NumDevToDevCopyStreams != other.NumDevToDevCopyStreams) return false;
- if (CollectiveRingOrder != other.CollectiveRingOrder) return false;
- if (TimestampedAllocator != other.TimestampedAllocator) return false;
- if (KernelTrackerMaxInterval != other.KernelTrackerMaxInterval) return false;
- if (KernelTrackerMaxBytes != other.KernelTrackerMaxBytes) return false;
- if (KernelTrackerMaxPending != other.KernelTrackerMaxPending) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InternalFragmentationFraction, other.InternalFragmentationFraction)) return false;
- if (UseCudaMallocAsync != other.UseCudaMallocAsync) return false;
- if (DisallowRetryOnAllocationFailure != other.DisallowRetryOnAllocationFailure) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= virtualDevices_.GetHashCode();
- if (UseUnifiedMemory != false) hash ^= UseUnifiedMemory.GetHashCode();
- if (NumDevToDevCopyStreams != 0) hash ^= NumDevToDevCopyStreams.GetHashCode();
- if (CollectiveRingOrder.Length != 0) hash ^= CollectiveRingOrder.GetHashCode();
- if (TimestampedAllocator != false) hash ^= TimestampedAllocator.GetHashCode();
- if (KernelTrackerMaxInterval != 0) hash ^= KernelTrackerMaxInterval.GetHashCode();
- if (KernelTrackerMaxBytes != 0) hash ^= KernelTrackerMaxBytes.GetHashCode();
- if (KernelTrackerMaxPending != 0) hash ^= KernelTrackerMaxPending.GetHashCode();
- if (InternalFragmentationFraction != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InternalFragmentationFraction);
- if (UseCudaMallocAsync != false) hash ^= UseCudaMallocAsync.GetHashCode();
- if (DisallowRetryOnAllocationFailure != false) hash ^= DisallowRetryOnAllocationFailure.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- virtualDevices_.WriteTo(output, _repeated_virtualDevices_codec);
- if (UseUnifiedMemory != false) {
- output.WriteRawTag(16);
- output.WriteBool(UseUnifiedMemory);
- }
- if (NumDevToDevCopyStreams != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(NumDevToDevCopyStreams);
- }
- if (CollectiveRingOrder.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(CollectiveRingOrder);
- }
- if (TimestampedAllocator != false) {
- output.WriteRawTag(40);
- output.WriteBool(TimestampedAllocator);
- }
- if (KernelTrackerMaxInterval != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(KernelTrackerMaxInterval);
- }
- if (KernelTrackerMaxBytes != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(KernelTrackerMaxBytes);
- }
- if (KernelTrackerMaxPending != 0) {
- output.WriteRawTag(72);
- output.WriteInt32(KernelTrackerMaxPending);
- }
- if (InternalFragmentationFraction != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(InternalFragmentationFraction);
- }
- if (UseCudaMallocAsync != false) {
- output.WriteRawTag(88);
- output.WriteBool(UseCudaMallocAsync);
- }
- if (DisallowRetryOnAllocationFailure != false) {
- output.WriteRawTag(96);
- output.WriteBool(DisallowRetryOnAllocationFailure);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- virtualDevices_.WriteTo(ref output, _repeated_virtualDevices_codec);
- if (UseUnifiedMemory != false) {
- output.WriteRawTag(16);
- output.WriteBool(UseUnifiedMemory);
- }
- if (NumDevToDevCopyStreams != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(NumDevToDevCopyStreams);
- }
- if (CollectiveRingOrder.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(CollectiveRingOrder);
- }
- if (TimestampedAllocator != false) {
- output.WriteRawTag(40);
- output.WriteBool(TimestampedAllocator);
- }
- if (KernelTrackerMaxInterval != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(KernelTrackerMaxInterval);
- }
- if (KernelTrackerMaxBytes != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(KernelTrackerMaxBytes);
- }
- if (KernelTrackerMaxPending != 0) {
- output.WriteRawTag(72);
- output.WriteInt32(KernelTrackerMaxPending);
- }
- if (InternalFragmentationFraction != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(InternalFragmentationFraction);
- }
- if (UseCudaMallocAsync != false) {
- output.WriteRawTag(88);
- output.WriteBool(UseCudaMallocAsync);
- }
- if (DisallowRetryOnAllocationFailure != false) {
- output.WriteRawTag(96);
- output.WriteBool(DisallowRetryOnAllocationFailure);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += virtualDevices_.CalculateSize(_repeated_virtualDevices_codec);
- if (UseUnifiedMemory != false) {
- size += 1 + 1;
- }
- if (NumDevToDevCopyStreams != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumDevToDevCopyStreams);
- }
- if (CollectiveRingOrder.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(CollectiveRingOrder);
- }
- if (TimestampedAllocator != false) {
- size += 1 + 1;
- }
- if (KernelTrackerMaxInterval != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(KernelTrackerMaxInterval);
- }
- if (KernelTrackerMaxBytes != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(KernelTrackerMaxBytes);
- }
- if (KernelTrackerMaxPending != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(KernelTrackerMaxPending);
- }
- if (InternalFragmentationFraction != 0D) {
- size += 1 + 8;
- }
- if (UseCudaMallocAsync != false) {
- size += 1 + 1;
- }
- if (DisallowRetryOnAllocationFailure != false) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(Experimental other) {
- if (other == null) {
- return;
- }
- virtualDevices_.Add(other.virtualDevices_);
- if (other.UseUnifiedMemory != false) {
- UseUnifiedMemory = other.UseUnifiedMemory;
- }
- if (other.NumDevToDevCopyStreams != 0) {
- NumDevToDevCopyStreams = other.NumDevToDevCopyStreams;
- }
- if (other.CollectiveRingOrder.Length != 0) {
- CollectiveRingOrder = other.CollectiveRingOrder;
- }
- if (other.TimestampedAllocator != false) {
- TimestampedAllocator = other.TimestampedAllocator;
- }
- if (other.KernelTrackerMaxInterval != 0) {
- KernelTrackerMaxInterval = other.KernelTrackerMaxInterval;
- }
- if (other.KernelTrackerMaxBytes != 0) {
- KernelTrackerMaxBytes = other.KernelTrackerMaxBytes;
- }
- if (other.KernelTrackerMaxPending != 0) {
- KernelTrackerMaxPending = other.KernelTrackerMaxPending;
- }
- if (other.InternalFragmentationFraction != 0D) {
- InternalFragmentationFraction = other.InternalFragmentationFraction;
- }
- if (other.UseCudaMallocAsync != false) {
- UseCudaMallocAsync = other.UseCudaMallocAsync;
- }
- if (other.DisallowRetryOnAllocationFailure != false) {
- DisallowRetryOnAllocationFailure = other.DisallowRetryOnAllocationFailure;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- virtualDevices_.AddEntriesFrom(input, _repeated_virtualDevices_codec);
- break;
- }
- case 16: {
- UseUnifiedMemory = input.ReadBool();
- break;
- }
- case 24: {
- NumDevToDevCopyStreams = input.ReadInt32();
- break;
- }
- case 34: {
- CollectiveRingOrder = input.ReadString();
- break;
- }
- case 40: {
- TimestampedAllocator = input.ReadBool();
- break;
- }
- case 56: {
- KernelTrackerMaxInterval = input.ReadInt32();
- break;
- }
- case 64: {
- KernelTrackerMaxBytes = input.ReadInt32();
- break;
- }
- case 72: {
- KernelTrackerMaxPending = input.ReadInt32();
- break;
- }
- case 81: {
- InternalFragmentationFraction = input.ReadDouble();
- break;
- }
- case 88: {
- UseCudaMallocAsync = input.ReadBool();
- break;
- }
- case 96: {
- DisallowRetryOnAllocationFailure = input.ReadBool();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- virtualDevices_.AddEntriesFrom(ref input, _repeated_virtualDevices_codec);
- break;
- }
- case 16: {
- UseUnifiedMemory = input.ReadBool();
- break;
- }
- case 24: {
- NumDevToDevCopyStreams = input.ReadInt32();
- break;
- }
- case 34: {
- CollectiveRingOrder = input.ReadString();
- break;
- }
- case 40: {
- TimestampedAllocator = input.ReadBool();
- break;
- }
- case 56: {
- KernelTrackerMaxInterval = input.ReadInt32();
- break;
- }
- case 64: {
- KernelTrackerMaxBytes = input.ReadInt32();
- break;
- }
- case 72: {
- KernelTrackerMaxPending = input.ReadInt32();
- break;
- }
- case 81: {
- InternalFragmentationFraction = input.ReadDouble();
- break;
- }
- case 88: {
- UseCudaMallocAsync = input.ReadBool();
- break;
- }
- case 96: {
- DisallowRetryOnAllocationFailure = input.ReadBool();
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the Experimental message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- /// <summary>
- /// Configuration for breaking down a visible GPU into multiple "virtual"
- /// devices.
- /// </summary>
- public sealed partial class VirtualDevices : pb::IMessage<VirtualDevices>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<VirtualDevices> _parser = new pb::MessageParser<VirtualDevices>(() => new VirtualDevices());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<VirtualDevices> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.GPUOptions.Types.Experimental.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public VirtualDevices() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public VirtualDevices(VirtualDevices other) : this() {
- memoryLimitMb_ = other.memoryLimitMb_.Clone();
- priority_ = other.priority_.Clone();
- deviceOrdinal_ = other.deviceOrdinal_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public VirtualDevices Clone() {
- return new VirtualDevices(this);
- }
-
- /// <summary>Field number for the "memory_limit_mb" field.</summary>
- public const int MemoryLimitMbFieldNumber = 1;
- private static readonly pb::FieldCodec<float> _repeated_memoryLimitMb_codec
- = pb::FieldCodec.ForFloat(10);
- private readonly pbc::RepeatedField<float> memoryLimitMb_ = new pbc::RepeatedField<float>();
- /// <summary>
- /// Per "virtual" device memory limit, in MB. The number of elements in
- /// the list is the number of virtual devices to create on the
- /// corresponding visible GPU (see "virtual_devices" below).
- /// If empty, it will create single virtual device taking all available
- /// memory from the device.
- ///
- /// For the concept of "visible" and "virtual" GPU, see the comments for
- /// "visible_device_list" above for more information.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<float> MemoryLimitMb {
- get { return memoryLimitMb_; }
- }
-
- /// <summary>Field number for the "priority" field.</summary>
- public const int PriorityFieldNumber = 2;
- private static readonly pb::FieldCodec<int> _repeated_priority_codec
- = pb::FieldCodec.ForInt32(18);
- private readonly pbc::RepeatedField<int> priority_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Priority values to use with the virtual devices. Use the cuda function
- /// cudaDeviceGetStreamPriorityRange to query for valid range of values for
- /// priority.
- ///
- /// On a P4000 GPU with cuda 10.1, the priority range reported was 0 for
- /// least priority and -1 for greatest priority.
- ///
- /// If this field is not specified, then the virtual devices will be
- /// created with the default. If this field has values set, then the size
- /// of this must match with the above memory_limit_mb.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<int> Priority {
- get { return priority_; }
- }
-
- /// <summary>Field number for the "device_ordinal" field.</summary>
- public const int DeviceOrdinalFieldNumber = 3;
- private static readonly pb::FieldCodec<int> _repeated_deviceOrdinal_codec
- = pb::FieldCodec.ForInt32(26);
- private readonly pbc::RepeatedField<int> deviceOrdinal_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Virtual Device ordinal number determines the device ID of the device.
- /// A Virtual device with a lower ordinal number always receives the a
- /// smaller device id. The phyiscal device id and location in the
- /// virtual device list is used to break ties.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<int> DeviceOrdinal {
- get { return deviceOrdinal_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as VirtualDevices);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(VirtualDevices other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!memoryLimitMb_.Equals(other.memoryLimitMb_)) return false;
- if(!priority_.Equals(other.priority_)) return false;
- if(!deviceOrdinal_.Equals(other.deviceOrdinal_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= memoryLimitMb_.GetHashCode();
- hash ^= priority_.GetHashCode();
- hash ^= deviceOrdinal_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- memoryLimitMb_.WriteTo(output, _repeated_memoryLimitMb_codec);
- priority_.WriteTo(output, _repeated_priority_codec);
- deviceOrdinal_.WriteTo(output, _repeated_deviceOrdinal_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- memoryLimitMb_.WriteTo(ref output, _repeated_memoryLimitMb_codec);
- priority_.WriteTo(ref output, _repeated_priority_codec);
- deviceOrdinal_.WriteTo(ref output, _repeated_deviceOrdinal_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += memoryLimitMb_.CalculateSize(_repeated_memoryLimitMb_codec);
- size += priority_.CalculateSize(_repeated_priority_codec);
- size += deviceOrdinal_.CalculateSize(_repeated_deviceOrdinal_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(VirtualDevices other) {
- if (other == null) {
- return;
- }
- memoryLimitMb_.Add(other.memoryLimitMb_);
- priority_.Add(other.priority_);
- deviceOrdinal_.Add(other.deviceOrdinal_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- case 13: {
- memoryLimitMb_.AddEntriesFrom(input, _repeated_memoryLimitMb_codec);
- break;
- }
- case 18:
- case 16: {
- priority_.AddEntriesFrom(input, _repeated_priority_codec);
- break;
- }
- case 26:
- case 24: {
- deviceOrdinal_.AddEntriesFrom(input, _repeated_deviceOrdinal_codec);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10:
- case 13: {
- memoryLimitMb_.AddEntriesFrom(ref input, _repeated_memoryLimitMb_codec);
- break;
- }
- case 18:
- case 16: {
- priority_.AddEntriesFrom(ref input, _repeated_priority_codec);
- break;
- }
- case 26:
- case 24: {
- deviceOrdinal_.AddEntriesFrom(ref input, _repeated_deviceOrdinal_codec);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- }
- #endregion
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// Options passed to the graph optimizer
- /// </summary>
- public sealed partial class OptimizerOptions : pb::IMessage<OptimizerOptions>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<OptimizerOptions> _parser = new pb::MessageParser<OptimizerOptions>(() => new OptimizerOptions());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<OptimizerOptions> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OptimizerOptions() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OptimizerOptions(OptimizerOptions other) : this() {
- doCommonSubexpressionElimination_ = other.doCommonSubexpressionElimination_;
- doConstantFolding_ = other.doConstantFolding_;
- maxFoldedConstantInBytes_ = other.maxFoldedConstantInBytes_;
- doFunctionInlining_ = other.doFunctionInlining_;
- optLevel_ = other.optLevel_;
- globalJitLevel_ = other.globalJitLevel_;
- cpuGlobalJit_ = other.cpuGlobalJit_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OptimizerOptions Clone() {
- return new OptimizerOptions(this);
- }
-
- /// <summary>Field number for the "do_common_subexpression_elimination" field.</summary>
- public const int DoCommonSubexpressionEliminationFieldNumber = 1;
- private bool doCommonSubexpressionElimination_;
- /// <summary>
- /// If true, optimize the graph using common subexpression elimination.
- /// Note: the optimization Level L1 will override this setting to true. So in
- /// order to disable common subexpression elimination the opt_level has to be
- /// set to L0.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DoCommonSubexpressionElimination {
- get { return doCommonSubexpressionElimination_; }
- set {
- doCommonSubexpressionElimination_ = value;
- }
- }
-
- /// <summary>Field number for the "do_constant_folding" field.</summary>
- public const int DoConstantFoldingFieldNumber = 2;
- private bool doConstantFolding_;
- /// <summary>
- /// If true, perform constant folding optimization on the graph.
- /// Note: the optimization Level L1 will override this setting to true. So in
- /// order to disable constant folding the opt_level has to be set to L0.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DoConstantFolding {
- get { return doConstantFolding_; }
- set {
- doConstantFolding_ = value;
- }
- }
-
- /// <summary>Field number for the "max_folded_constant_in_bytes" field.</summary>
- public const int MaxFoldedConstantInBytesFieldNumber = 6;
- private long maxFoldedConstantInBytes_;
- /// <summary>
- /// Constant folding optimization replaces tensors whose values can be
- /// predetermined, with constant nodes. To avoid inserting too large constants,
- /// the size of each constant created can be limited. If this value is zero, a
- /// default limit of 10 MiB will be applied. If constant folding optimization
- /// is disabled, this value is ignored.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long MaxFoldedConstantInBytes {
- get { return maxFoldedConstantInBytes_; }
- set {
- maxFoldedConstantInBytes_ = value;
- }
- }
-
- /// <summary>Field number for the "do_function_inlining" field.</summary>
- public const int DoFunctionInliningFieldNumber = 4;
- private bool doFunctionInlining_;
- /// <summary>
- /// If true, perform function inlining on the graph.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DoFunctionInlining {
- get { return doFunctionInlining_; }
- set {
- doFunctionInlining_ = value;
- }
- }
-
- /// <summary>Field number for the "opt_level" field.</summary>
- public const int OptLevelFieldNumber = 3;
- private global::Tensorflow.OptimizerOptions.Types.Level optLevel_ = global::Tensorflow.OptimizerOptions.Types.Level.L1;
- /// <summary>
- /// Overall optimization level. The actual optimizations applied will be the
- /// logical OR of the flags that this level implies and any flags already set.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.OptimizerOptions.Types.Level OptLevel {
- get { return optLevel_; }
- set {
- optLevel_ = value;
- }
- }
-
- /// <summary>Field number for the "global_jit_level" field.</summary>
- public const int GlobalJitLevelFieldNumber = 5;
- private global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel globalJitLevel_ = global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel.Default;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel GlobalJitLevel {
- get { return globalJitLevel_; }
- set {
- globalJitLevel_ = value;
- }
- }
-
- /// <summary>Field number for the "cpu_global_jit" field.</summary>
- public const int CpuGlobalJitFieldNumber = 7;
- private bool cpuGlobalJit_;
- /// <summary>
- /// CPU code will be autoclustered only if global_jit_level >= ON_1 and either:
- /// - this flag is true, or
- /// - TF_XLA_FLAGS contains --tf_xla_cpu_global_jit=true.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool CpuGlobalJit {
- get { return cpuGlobalJit_; }
- set {
- cpuGlobalJit_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as OptimizerOptions);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OptimizerOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (DoCommonSubexpressionElimination != other.DoCommonSubexpressionElimination) return false;
- if (DoConstantFolding != other.DoConstantFolding) return false;
- if (MaxFoldedConstantInBytes != other.MaxFoldedConstantInBytes) return false;
- if (DoFunctionInlining != other.DoFunctionInlining) return false;
- if (OptLevel != other.OptLevel) return false;
- if (GlobalJitLevel != other.GlobalJitLevel) return false;
- if (CpuGlobalJit != other.CpuGlobalJit) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (DoCommonSubexpressionElimination != false) hash ^= DoCommonSubexpressionElimination.GetHashCode();
- if (DoConstantFolding != false) hash ^= DoConstantFolding.GetHashCode();
- if (MaxFoldedConstantInBytes != 0L) hash ^= MaxFoldedConstantInBytes.GetHashCode();
- if (DoFunctionInlining != false) hash ^= DoFunctionInlining.GetHashCode();
- if (OptLevel != global::Tensorflow.OptimizerOptions.Types.Level.L1) hash ^= OptLevel.GetHashCode();
- if (GlobalJitLevel != global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel.Default) hash ^= GlobalJitLevel.GetHashCode();
- if (CpuGlobalJit != false) hash ^= CpuGlobalJit.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (DoCommonSubexpressionElimination != false) {
- output.WriteRawTag(8);
- output.WriteBool(DoCommonSubexpressionElimination);
- }
- if (DoConstantFolding != false) {
- output.WriteRawTag(16);
- output.WriteBool(DoConstantFolding);
- }
- if (OptLevel != global::Tensorflow.OptimizerOptions.Types.Level.L1) {
- output.WriteRawTag(24);
- output.WriteEnum((int) OptLevel);
- }
- if (DoFunctionInlining != false) {
- output.WriteRawTag(32);
- output.WriteBool(DoFunctionInlining);
- }
- if (GlobalJitLevel != global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel.Default) {
- output.WriteRawTag(40);
- output.WriteEnum((int) GlobalJitLevel);
- }
- if (MaxFoldedConstantInBytes != 0L) {
- output.WriteRawTag(48);
- output.WriteInt64(MaxFoldedConstantInBytes);
- }
- if (CpuGlobalJit != false) {
- output.WriteRawTag(56);
- output.WriteBool(CpuGlobalJit);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (DoCommonSubexpressionElimination != false) {
- output.WriteRawTag(8);
- output.WriteBool(DoCommonSubexpressionElimination);
- }
- if (DoConstantFolding != false) {
- output.WriteRawTag(16);
- output.WriteBool(DoConstantFolding);
- }
- if (OptLevel != global::Tensorflow.OptimizerOptions.Types.Level.L1) {
- output.WriteRawTag(24);
- output.WriteEnum((int) OptLevel);
- }
- if (DoFunctionInlining != false) {
- output.WriteRawTag(32);
- output.WriteBool(DoFunctionInlining);
- }
- if (GlobalJitLevel != global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel.Default) {
- output.WriteRawTag(40);
- output.WriteEnum((int) GlobalJitLevel);
- }
- if (MaxFoldedConstantInBytes != 0L) {
- output.WriteRawTag(48);
- output.WriteInt64(MaxFoldedConstantInBytes);
- }
- if (CpuGlobalJit != false) {
- output.WriteRawTag(56);
- output.WriteBool(CpuGlobalJit);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (DoCommonSubexpressionElimination != false) {
- size += 1 + 1;
- }
- if (DoConstantFolding != false) {
- size += 1 + 1;
- }
- if (MaxFoldedConstantInBytes != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxFoldedConstantInBytes);
- }
- if (DoFunctionInlining != false) {
- size += 1 + 1;
- }
- if (OptLevel != global::Tensorflow.OptimizerOptions.Types.Level.L1) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptLevel);
- }
- if (GlobalJitLevel != global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel.Default) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GlobalJitLevel);
- }
- if (CpuGlobalJit != false) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OptimizerOptions other) {
- if (other == null) {
- return;
- }
- if (other.DoCommonSubexpressionElimination != false) {
- DoCommonSubexpressionElimination = other.DoCommonSubexpressionElimination;
- }
- if (other.DoConstantFolding != false) {
- DoConstantFolding = other.DoConstantFolding;
- }
- if (other.MaxFoldedConstantInBytes != 0L) {
- MaxFoldedConstantInBytes = other.MaxFoldedConstantInBytes;
- }
- if (other.DoFunctionInlining != false) {
- DoFunctionInlining = other.DoFunctionInlining;
- }
- if (other.OptLevel != global::Tensorflow.OptimizerOptions.Types.Level.L1) {
- OptLevel = other.OptLevel;
- }
- if (other.GlobalJitLevel != global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel.Default) {
- GlobalJitLevel = other.GlobalJitLevel;
- }
- if (other.CpuGlobalJit != false) {
- CpuGlobalJit = other.CpuGlobalJit;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- DoCommonSubexpressionElimination = input.ReadBool();
- break;
- }
- case 16: {
- DoConstantFolding = input.ReadBool();
- break;
- }
- case 24: {
- OptLevel = (global::Tensorflow.OptimizerOptions.Types.Level) input.ReadEnum();
- break;
- }
- case 32: {
- DoFunctionInlining = input.ReadBool();
- break;
- }
- case 40: {
- GlobalJitLevel = (global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel) input.ReadEnum();
- break;
- }
- case 48: {
- MaxFoldedConstantInBytes = input.ReadInt64();
- break;
- }
- case 56: {
- CpuGlobalJit = input.ReadBool();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- DoCommonSubexpressionElimination = input.ReadBool();
- break;
- }
- case 16: {
- DoConstantFolding = input.ReadBool();
- break;
- }
- case 24: {
- OptLevel = (global::Tensorflow.OptimizerOptions.Types.Level) input.ReadEnum();
- break;
- }
- case 32: {
- DoFunctionInlining = input.ReadBool();
- break;
- }
- case 40: {
- GlobalJitLevel = (global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel) input.ReadEnum();
- break;
- }
- case 48: {
- MaxFoldedConstantInBytes = input.ReadInt64();
- break;
- }
- case 56: {
- CpuGlobalJit = input.ReadBool();
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the OptimizerOptions message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- /// <summary>
- /// Optimization level
- /// </summary>
- public enum Level {
- /// <summary>
- /// L1 is the default level.
- /// Optimization performed at L1 :
- /// 1. Common subexpression elimination
- /// 2. Constant folding
- /// </summary>
- [pbr::OriginalName("L1")] L1 = 0,
- /// <summary>
- /// No optimizations
- /// </summary>
- [pbr::OriginalName("L0")] L0 = -1,
- }
-
- /// <summary>
- /// Control the use of the compiler/jit. Experimental.
- /// </summary>
- public enum GlobalJitLevel {
- /// <summary>
- /// Default setting ("off" now, but later expected to be "on")
- /// </summary>
- [pbr::OriginalName("DEFAULT")] Default = 0,
- [pbr::OriginalName("OFF")] Off = -1,
- /// <summary>
- /// The following settings turn on compilation, with higher values being
- /// more aggressive. Higher values may reduce opportunities for parallelism
- /// and may use more memory. (At present, there is no distinction, but this
- /// is expected to change.)
- /// </summary>
- [pbr::OriginalName("ON_1")] On1 = 1,
- [pbr::OriginalName("ON_2")] On2 = 2,
- }
-
- }
- #endregion
-
- }
-
- public sealed partial class GraphOptions : pb::IMessage<GraphOptions>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<GraphOptions> _parser = new pb::MessageParser<GraphOptions>(() => new GraphOptions());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<GraphOptions> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GraphOptions() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GraphOptions(GraphOptions other) : this() {
- enableRecvScheduling_ = other.enableRecvScheduling_;
- optimizerOptions_ = other.optimizerOptions_ != null ? other.optimizerOptions_.Clone() : null;
- buildCostModel_ = other.buildCostModel_;
- buildCostModelAfter_ = other.buildCostModelAfter_;
- inferShapes_ = other.inferShapes_;
- placePrunedGraph_ = other.placePrunedGraph_;
- enableBfloat16Sendrecv_ = other.enableBfloat16Sendrecv_;
- timelineStep_ = other.timelineStep_;
- rewriteOptions_ = other.rewriteOptions_ != null ? other.rewriteOptions_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public GraphOptions Clone() {
- return new GraphOptions(this);
- }
-
- /// <summary>Field number for the "enable_recv_scheduling" field.</summary>
- public const int EnableRecvSchedulingFieldNumber = 2;
- private bool enableRecvScheduling_;
- /// <summary>
- /// If true, use control flow to schedule the activation of Recv nodes.
- /// (Currently ignored.)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool EnableRecvScheduling {
- get { return enableRecvScheduling_; }
- set {
- enableRecvScheduling_ = value;
- }
- }
-
- /// <summary>Field number for the "optimizer_options" field.</summary>
- public const int OptimizerOptionsFieldNumber = 3;
- private global::Tensorflow.OptimizerOptions optimizerOptions_;
- /// <summary>
- /// Options controlling how graph is optimized.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.OptimizerOptions OptimizerOptions {
- get { return optimizerOptions_; }
- set {
- optimizerOptions_ = value;
- }
- }
-
- /// <summary>Field number for the "build_cost_model" field.</summary>
- public const int BuildCostModelFieldNumber = 4;
- private long buildCostModel_;
- /// <summary>
- /// The number of steps to run before returning a cost model detailing
- /// the memory usage and performance of each node of the graph. 0 means
- /// no cost model.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long BuildCostModel {
- get { return buildCostModel_; }
- set {
- buildCostModel_ = value;
- }
- }
-
- /// <summary>Field number for the "build_cost_model_after" field.</summary>
- public const int BuildCostModelAfterFieldNumber = 9;
- private long buildCostModelAfter_;
- /// <summary>
- /// The number of steps to skip before collecting statistics for the
- /// cost model.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long BuildCostModelAfter {
- get { return buildCostModelAfter_; }
- set {
- buildCostModelAfter_ = value;
- }
- }
-
- /// <summary>Field number for the "infer_shapes" field.</summary>
- public const int InferShapesFieldNumber = 5;
- private bool inferShapes_;
- /// <summary>
- /// Annotate each Node with Op output shape data, to the extent it can
- /// be statically inferred.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool InferShapes {
- get { return inferShapes_; }
- set {
- inferShapes_ = value;
- }
- }
-
- /// <summary>Field number for the "place_pruned_graph" field.</summary>
- public const int PlacePrunedGraphFieldNumber = 6;
- private bool placePrunedGraph_;
- /// <summary>
- /// Only place the subgraphs that are run, rather than the entire graph.
- ///
- /// This is useful for interactive graph building, where one might
- /// produce graphs that cannot be placed during the debugging
- /// process. In particular, it allows the client to continue work in
- /// a session after adding a node to a graph whose placement
- /// constraints are unsatisfiable.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool PlacePrunedGraph {
- get { return placePrunedGraph_; }
- set {
- placePrunedGraph_ = value;
- }
- }
-
- /// <summary>Field number for the "enable_bfloat16_sendrecv" field.</summary>
- public const int EnableBfloat16SendrecvFieldNumber = 7;
- private bool enableBfloat16Sendrecv_;
- /// <summary>
- /// If true, transfer float values between processes as bfloat16.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool EnableBfloat16Sendrecv {
- get { return enableBfloat16Sendrecv_; }
- set {
- enableBfloat16Sendrecv_ = value;
- }
- }
-
- /// <summary>Field number for the "timeline_step" field.</summary>
- public const int TimelineStepFieldNumber = 8;
- private int timelineStep_;
- /// <summary>
- /// If > 0, record a timeline every this many steps.
- /// EXPERIMENTAL: This currently has no effect in MasterSession.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int TimelineStep {
- get { return timelineStep_; }
- set {
- timelineStep_ = value;
- }
- }
-
- /// <summary>Field number for the "rewrite_options" field.</summary>
- public const int RewriteOptionsFieldNumber = 10;
- private global::Tensorflow.RewriterConfig rewriteOptions_;
- /// <summary>
- /// Options that control the type and amount of graph rewriting.
- /// Not currently configurable via the public Python API (i.e. there is no API
- /// stability guarantee if you import RewriterConfig explicitly).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.RewriterConfig RewriteOptions {
- get { return rewriteOptions_; }
- set {
- rewriteOptions_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as GraphOptions);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(GraphOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (EnableRecvScheduling != other.EnableRecvScheduling) return false;
- if (!object.Equals(OptimizerOptions, other.OptimizerOptions)) return false;
- if (BuildCostModel != other.BuildCostModel) return false;
- if (BuildCostModelAfter != other.BuildCostModelAfter) return false;
- if (InferShapes != other.InferShapes) return false;
- if (PlacePrunedGraph != other.PlacePrunedGraph) return false;
- if (EnableBfloat16Sendrecv != other.EnableBfloat16Sendrecv) return false;
- if (TimelineStep != other.TimelineStep) return false;
- if (!object.Equals(RewriteOptions, other.RewriteOptions)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (EnableRecvScheduling != false) hash ^= EnableRecvScheduling.GetHashCode();
- if (optimizerOptions_ != null) hash ^= OptimizerOptions.GetHashCode();
- if (BuildCostModel != 0L) hash ^= BuildCostModel.GetHashCode();
- if (BuildCostModelAfter != 0L) hash ^= BuildCostModelAfter.GetHashCode();
- if (InferShapes != false) hash ^= InferShapes.GetHashCode();
- if (PlacePrunedGraph != false) hash ^= PlacePrunedGraph.GetHashCode();
- if (EnableBfloat16Sendrecv != false) hash ^= EnableBfloat16Sendrecv.GetHashCode();
- if (TimelineStep != 0) hash ^= TimelineStep.GetHashCode();
- if (rewriteOptions_ != null) hash ^= RewriteOptions.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (EnableRecvScheduling != false) {
- output.WriteRawTag(16);
- output.WriteBool(EnableRecvScheduling);
- }
- if (optimizerOptions_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(OptimizerOptions);
- }
- if (BuildCostModel != 0L) {
- output.WriteRawTag(32);
- output.WriteInt64(BuildCostModel);
- }
- if (InferShapes != false) {
- output.WriteRawTag(40);
- output.WriteBool(InferShapes);
- }
- if (PlacePrunedGraph != false) {
- output.WriteRawTag(48);
- output.WriteBool(PlacePrunedGraph);
- }
- if (EnableBfloat16Sendrecv != false) {
- output.WriteRawTag(56);
- output.WriteBool(EnableBfloat16Sendrecv);
- }
- if (TimelineStep != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(TimelineStep);
- }
- if (BuildCostModelAfter != 0L) {
- output.WriteRawTag(72);
- output.WriteInt64(BuildCostModelAfter);
- }
- if (rewriteOptions_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(RewriteOptions);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (EnableRecvScheduling != false) {
- output.WriteRawTag(16);
- output.WriteBool(EnableRecvScheduling);
- }
- if (optimizerOptions_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(OptimizerOptions);
- }
- if (BuildCostModel != 0L) {
- output.WriteRawTag(32);
- output.WriteInt64(BuildCostModel);
- }
- if (InferShapes != false) {
- output.WriteRawTag(40);
- output.WriteBool(InferShapes);
- }
- if (PlacePrunedGraph != false) {
- output.WriteRawTag(48);
- output.WriteBool(PlacePrunedGraph);
- }
- if (EnableBfloat16Sendrecv != false) {
- output.WriteRawTag(56);
- output.WriteBool(EnableBfloat16Sendrecv);
- }
- if (TimelineStep != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(TimelineStep);
- }
- if (BuildCostModelAfter != 0L) {
- output.WriteRawTag(72);
- output.WriteInt64(BuildCostModelAfter);
- }
- if (rewriteOptions_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(RewriteOptions);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (EnableRecvScheduling != false) {
- size += 1 + 1;
- }
- if (optimizerOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptimizerOptions);
- }
- if (BuildCostModel != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(BuildCostModel);
- }
- if (BuildCostModelAfter != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(BuildCostModelAfter);
- }
- if (InferShapes != false) {
- size += 1 + 1;
- }
- if (PlacePrunedGraph != false) {
- size += 1 + 1;
- }
- if (EnableBfloat16Sendrecv != false) {
- size += 1 + 1;
- }
- if (TimelineStep != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimelineStep);
- }
- if (rewriteOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RewriteOptions);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(GraphOptions other) {
- if (other == null) {
- return;
- }
- if (other.EnableRecvScheduling != false) {
- EnableRecvScheduling = other.EnableRecvScheduling;
- }
- if (other.optimizerOptions_ != null) {
- if (optimizerOptions_ == null) {
- OptimizerOptions = new global::Tensorflow.OptimizerOptions();
- }
- OptimizerOptions.MergeFrom(other.OptimizerOptions);
- }
- if (other.BuildCostModel != 0L) {
- BuildCostModel = other.BuildCostModel;
- }
- if (other.BuildCostModelAfter != 0L) {
- BuildCostModelAfter = other.BuildCostModelAfter;
- }
- if (other.InferShapes != false) {
- InferShapes = other.InferShapes;
- }
- if (other.PlacePrunedGraph != false) {
- PlacePrunedGraph = other.PlacePrunedGraph;
- }
- if (other.EnableBfloat16Sendrecv != false) {
- EnableBfloat16Sendrecv = other.EnableBfloat16Sendrecv;
- }
- if (other.TimelineStep != 0) {
- TimelineStep = other.TimelineStep;
- }
- if (other.rewriteOptions_ != null) {
- if (rewriteOptions_ == null) {
- RewriteOptions = new global::Tensorflow.RewriterConfig();
- }
- RewriteOptions.MergeFrom(other.RewriteOptions);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 16: {
- EnableRecvScheduling = input.ReadBool();
- break;
- }
- case 26: {
- if (optimizerOptions_ == null) {
- OptimizerOptions = new global::Tensorflow.OptimizerOptions();
- }
- input.ReadMessage(OptimizerOptions);
- break;
- }
- case 32: {
- BuildCostModel = input.ReadInt64();
- break;
- }
- case 40: {
- InferShapes = input.ReadBool();
- break;
- }
- case 48: {
- PlacePrunedGraph = input.ReadBool();
- break;
- }
- case 56: {
- EnableBfloat16Sendrecv = input.ReadBool();
- break;
- }
- case 64: {
- TimelineStep = input.ReadInt32();
- break;
- }
- case 72: {
- BuildCostModelAfter = input.ReadInt64();
- break;
- }
- case 82: {
- if (rewriteOptions_ == null) {
- RewriteOptions = new global::Tensorflow.RewriterConfig();
- }
- input.ReadMessage(RewriteOptions);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 16: {
- EnableRecvScheduling = input.ReadBool();
- break;
- }
- case 26: {
- if (optimizerOptions_ == null) {
- OptimizerOptions = new global::Tensorflow.OptimizerOptions();
- }
- input.ReadMessage(OptimizerOptions);
- break;
- }
- case 32: {
- BuildCostModel = input.ReadInt64();
- break;
- }
- case 40: {
- InferShapes = input.ReadBool();
- break;
- }
- case 48: {
- PlacePrunedGraph = input.ReadBool();
- break;
- }
- case 56: {
- EnableBfloat16Sendrecv = input.ReadBool();
- break;
- }
- case 64: {
- TimelineStep = input.ReadInt32();
- break;
- }
- case 72: {
- BuildCostModelAfter = input.ReadInt64();
- break;
- }
- case 82: {
- if (rewriteOptions_ == null) {
- RewriteOptions = new global::Tensorflow.RewriterConfig();
- }
- input.ReadMessage(RewriteOptions);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- public sealed partial class ThreadPoolOptionProto : pb::IMessage<ThreadPoolOptionProto>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ThreadPoolOptionProto> _parser = new pb::MessageParser<ThreadPoolOptionProto>(() => new ThreadPoolOptionProto());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<ThreadPoolOptionProto> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ThreadPoolOptionProto() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ThreadPoolOptionProto(ThreadPoolOptionProto other) : this() {
- numThreads_ = other.numThreads_;
- globalName_ = other.globalName_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ThreadPoolOptionProto Clone() {
- return new ThreadPoolOptionProto(this);
- }
-
- /// <summary>Field number for the "num_threads" field.</summary>
- public const int NumThreadsFieldNumber = 1;
- private int numThreads_;
- /// <summary>
- /// The number of threads in the pool.
- ///
- /// 0 means the system picks a value based on where this option proto is used
- /// (see the declaration of the specific field for more info).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int NumThreads {
- get { return numThreads_; }
- set {
- numThreads_ = value;
- }
- }
-
- /// <summary>Field number for the "global_name" field.</summary>
- public const int GlobalNameFieldNumber = 2;
- private string globalName_ = "";
- /// <summary>
- /// The global name of the threadpool.
- ///
- /// If empty, then the threadpool is made and used according to the scope it's
- /// in - e.g., for a session threadpool, it is used by that session only.
- ///
- /// If non-empty, then:
- /// - a global threadpool associated with this name is looked
- /// up or created. This allows, for example, sharing one threadpool across
- /// many sessions (e.g., like the default behavior, if
- /// inter_op_parallelism_threads is not configured), but still partitioning
- /// into a large and small pool.
- /// - if the threadpool for this global_name already exists, then it is an
- /// error if the existing pool was created using a different num_threads
- /// value as is specified on this call.
- /// - threadpools created this way are never garbage collected.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string GlobalName {
- get { return globalName_; }
- set {
- globalName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as ThreadPoolOptionProto);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(ThreadPoolOptionProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (NumThreads != other.NumThreads) return false;
- if (GlobalName != other.GlobalName) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (NumThreads != 0) hash ^= NumThreads.GetHashCode();
- if (GlobalName.Length != 0) hash ^= GlobalName.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (NumThreads != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(NumThreads);
- }
- if (GlobalName.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(GlobalName);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (NumThreads != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(NumThreads);
- }
- if (GlobalName.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(GlobalName);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (NumThreads != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumThreads);
- }
- if (GlobalName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(GlobalName);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(ThreadPoolOptionProto other) {
- if (other == null) {
- return;
- }
- if (other.NumThreads != 0) {
- NumThreads = other.NumThreads;
- }
- if (other.GlobalName.Length != 0) {
- GlobalName = other.GlobalName;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- NumThreads = input.ReadInt32();
- break;
- }
- case 18: {
- GlobalName = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- NumThreads = input.ReadInt32();
- break;
- }
- case 18: {
- GlobalName = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- public sealed partial class RPCOptions : pb::IMessage<RPCOptions>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<RPCOptions> _parser = new pb::MessageParser<RPCOptions>(() => new RPCOptions());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<RPCOptions> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RPCOptions() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RPCOptions(RPCOptions other) : this() {
- useRpcForInprocessMaster_ = other.useRpcForInprocessMaster_;
- compressionAlgorithm_ = other.compressionAlgorithm_;
- compressionLevel_ = other.compressionLevel_;
- cacheRpcResponse_ = other.cacheRpcResponse_;
- disableSessionConnectionSharing_ = other.disableSessionConnectionSharing_;
- numChannelsPerTarget_ = other.numChannelsPerTarget_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RPCOptions Clone() {
- return new RPCOptions(this);
- }
-
- /// <summary>Field number for the "use_rpc_for_inprocess_master" field.</summary>
- public const int UseRpcForInprocessMasterFieldNumber = 1;
- private bool useRpcForInprocessMaster_;
- /// <summary>
- /// If true, always use RPC to contact the session target.
- ///
- /// If false (the default option), TensorFlow may use an optimized
- /// transport for client-master communication that avoids the RPC
- /// stack. This option is primarily for used testing the RPC stack.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool UseRpcForInprocessMaster {
- get { return useRpcForInprocessMaster_; }
- set {
- useRpcForInprocessMaster_ = value;
- }
- }
-
- /// <summary>Field number for the "compression_algorithm" field.</summary>
- public const int CompressionAlgorithmFieldNumber = 2;
- private string compressionAlgorithm_ = "";
- /// <summary>
- /// The compression algorithm to be used. One of "deflate", "gzip".
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string CompressionAlgorithm {
- get { return compressionAlgorithm_; }
- set {
- compressionAlgorithm_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "compression_level" field.</summary>
- public const int CompressionLevelFieldNumber = 3;
- private int compressionLevel_;
- /// <summary>
- /// If compression_algorithm is set, the compression level to be used.
- /// From 0 (no compression), up to 3.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CompressionLevel {
- get { return compressionLevel_; }
- set {
- compressionLevel_ = value;
- }
- }
-
- /// <summary>Field number for the "cache_rpc_response" field.</summary>
- public const int CacheRpcResponseFieldNumber = 4;
- private bool cacheRpcResponse_;
- /// <summary>
- /// Setting cache_rpc_response to true will enable sender side caching of
- /// response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
- /// requests . This is only necessary when the network fabric is experiencing a
- /// significant error rate. Without it we'll fail a step on an network error,
- /// while with it we'll be able to complete long steps (like complex
- /// initializations) in the face of some network errors during RecvTensor.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool CacheRpcResponse {
- get { return cacheRpcResponse_; }
- set {
- cacheRpcResponse_ = value;
- }
- }
-
- /// <summary>Field number for the "disable_session_connection_sharing" field.</summary>
- public const int DisableSessionConnectionSharingFieldNumber = 5;
- private bool disableSessionConnectionSharing_;
- /// <summary>
- /// Disables TCP connection sharing when opening a new RPC channel.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DisableSessionConnectionSharing {
- get { return disableSessionConnectionSharing_; }
- set {
- disableSessionConnectionSharing_ = value;
- }
- }
-
- /// <summary>Field number for the "num_channels_per_target" field.</summary>
- public const int NumChannelsPerTargetFieldNumber = 6;
- private int numChannelsPerTarget_;
- /// <summary>
- /// Setting num_channels_per_target > 0 allows uses of multiple channels to
- /// communicate to the same target. This can be used to improve the aggregate
- /// throughput on high speed links (e.g 100G) where single connection is not
- /// sufficient to maximize link utilization. Note that a single RPC only goes
- /// on a single channel, this only helps in situations where there are multiple
- /// transfers to the same target overlapping in time.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int NumChannelsPerTarget {
- get { return numChannelsPerTarget_; }
- set {
- numChannelsPerTarget_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as RPCOptions);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(RPCOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (UseRpcForInprocessMaster != other.UseRpcForInprocessMaster) return false;
- if (CompressionAlgorithm != other.CompressionAlgorithm) return false;
- if (CompressionLevel != other.CompressionLevel) return false;
- if (CacheRpcResponse != other.CacheRpcResponse) return false;
- if (DisableSessionConnectionSharing != other.DisableSessionConnectionSharing) return false;
- if (NumChannelsPerTarget != other.NumChannelsPerTarget) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (UseRpcForInprocessMaster != false) hash ^= UseRpcForInprocessMaster.GetHashCode();
- if (CompressionAlgorithm.Length != 0) hash ^= CompressionAlgorithm.GetHashCode();
- if (CompressionLevel != 0) hash ^= CompressionLevel.GetHashCode();
- if (CacheRpcResponse != false) hash ^= CacheRpcResponse.GetHashCode();
- if (DisableSessionConnectionSharing != false) hash ^= DisableSessionConnectionSharing.GetHashCode();
- if (NumChannelsPerTarget != 0) hash ^= NumChannelsPerTarget.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (UseRpcForInprocessMaster != false) {
- output.WriteRawTag(8);
- output.WriteBool(UseRpcForInprocessMaster);
- }
- if (CompressionAlgorithm.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(CompressionAlgorithm);
- }
- if (CompressionLevel != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(CompressionLevel);
- }
- if (CacheRpcResponse != false) {
- output.WriteRawTag(32);
- output.WriteBool(CacheRpcResponse);
- }
- if (DisableSessionConnectionSharing != false) {
- output.WriteRawTag(40);
- output.WriteBool(DisableSessionConnectionSharing);
- }
- if (NumChannelsPerTarget != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(NumChannelsPerTarget);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (UseRpcForInprocessMaster != false) {
- output.WriteRawTag(8);
- output.WriteBool(UseRpcForInprocessMaster);
- }
- if (CompressionAlgorithm.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(CompressionAlgorithm);
- }
- if (CompressionLevel != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(CompressionLevel);
- }
- if (CacheRpcResponse != false) {
- output.WriteRawTag(32);
- output.WriteBool(CacheRpcResponse);
- }
- if (DisableSessionConnectionSharing != false) {
- output.WriteRawTag(40);
- output.WriteBool(DisableSessionConnectionSharing);
- }
- if (NumChannelsPerTarget != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(NumChannelsPerTarget);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (UseRpcForInprocessMaster != false) {
- size += 1 + 1;
- }
- if (CompressionAlgorithm.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(CompressionAlgorithm);
- }
- if (CompressionLevel != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompressionLevel);
- }
- if (CacheRpcResponse != false) {
- size += 1 + 1;
- }
- if (DisableSessionConnectionSharing != false) {
- size += 1 + 1;
- }
- if (NumChannelsPerTarget != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumChannelsPerTarget);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(RPCOptions other) {
- if (other == null) {
- return;
- }
- if (other.UseRpcForInprocessMaster != false) {
- UseRpcForInprocessMaster = other.UseRpcForInprocessMaster;
- }
- if (other.CompressionAlgorithm.Length != 0) {
- CompressionAlgorithm = other.CompressionAlgorithm;
- }
- if (other.CompressionLevel != 0) {
- CompressionLevel = other.CompressionLevel;
- }
- if (other.CacheRpcResponse != false) {
- CacheRpcResponse = other.CacheRpcResponse;
- }
- if (other.DisableSessionConnectionSharing != false) {
- DisableSessionConnectionSharing = other.DisableSessionConnectionSharing;
- }
- if (other.NumChannelsPerTarget != 0) {
- NumChannelsPerTarget = other.NumChannelsPerTarget;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- UseRpcForInprocessMaster = input.ReadBool();
- break;
- }
- case 18: {
- CompressionAlgorithm = input.ReadString();
- break;
- }
- case 24: {
- CompressionLevel = input.ReadInt32();
- break;
- }
- case 32: {
- CacheRpcResponse = input.ReadBool();
- break;
- }
- case 40: {
- DisableSessionConnectionSharing = input.ReadBool();
- break;
- }
- case 48: {
- NumChannelsPerTarget = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- UseRpcForInprocessMaster = input.ReadBool();
- break;
- }
- case 18: {
- CompressionAlgorithm = input.ReadString();
- break;
- }
- case 24: {
- CompressionLevel = input.ReadInt32();
- break;
- }
- case 32: {
- CacheRpcResponse = input.ReadBool();
- break;
- }
- case 40: {
- DisableSessionConnectionSharing = input.ReadBool();
- break;
- }
- case 48: {
- NumChannelsPerTarget = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Metadata about the session.
- ///
- /// This can be used by the runtime and the Ops for debugging, monitoring, etc.
- ///
- /// The (name, version) tuple is expected to be a unique identifier for
- /// sessions within the same process.
- ///
- /// NOTE: This is currently used and propagated only by the direct session.
- /// </summary>
- public sealed partial class SessionMetadata : pb::IMessage<SessionMetadata>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<SessionMetadata> _parser = new pb::MessageParser<SessionMetadata>(() => new SessionMetadata());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<SessionMetadata> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[5]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SessionMetadata() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SessionMetadata(SessionMetadata other) : this() {
- name_ = other.name_;
- version_ = other.version_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SessionMetadata Clone() {
- return new SessionMetadata(this);
- }
-
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "version" field.</summary>
- public const int VersionFieldNumber = 2;
- private long version_;
- /// <summary>
- /// The version is optional. If set, needs to be >= 0.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long Version {
- get { return version_; }
- set {
- version_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as SessionMetadata);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SessionMetadata other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (Version != other.Version) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (Version != 0L) hash ^= Version.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Version != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(Version);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Version != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(Version);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (Version != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Version);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SessionMetadata other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.Version != 0L) {
- Version = other.Version;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 16: {
- Version = input.ReadInt64();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 16: {
- Version = input.ReadInt64();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Session configuration parameters.
- /// The system picks appropriate values for fields that are not set.
- /// </summary>
- public sealed partial class ConfigProto : pb::IMessage<ConfigProto>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ConfigProto> _parser = new pb::MessageParser<ConfigProto>(() => new ConfigProto());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<ConfigProto> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[6]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ConfigProto() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ConfigProto(ConfigProto other) : this() {
- deviceCount_ = other.deviceCount_.Clone();
- intraOpParallelismThreads_ = other.intraOpParallelismThreads_;
- interOpParallelismThreads_ = other.interOpParallelismThreads_;
- usePerSessionThreads_ = other.usePerSessionThreads_;
- sessionInterOpThreadPool_ = other.sessionInterOpThreadPool_.Clone();
- placementPeriod_ = other.placementPeriod_;
- deviceFilters_ = other.deviceFilters_.Clone();
- gpuOptions_ = other.gpuOptions_ != null ? other.gpuOptions_.Clone() : null;
- allowSoftPlacement_ = other.allowSoftPlacement_;
- logDevicePlacement_ = other.logDevicePlacement_;
- graphOptions_ = other.graphOptions_ != null ? other.graphOptions_.Clone() : null;
- operationTimeoutInMs_ = other.operationTimeoutInMs_;
- rpcOptions_ = other.rpcOptions_ != null ? other.rpcOptions_.Clone() : null;
- clusterDef_ = other.clusterDef_ != null ? other.clusterDef_.Clone() : null;
- isolateSessionState_ = other.isolateSessionState_;
- shareClusterDevicesInSession_ = other.shareClusterDevicesInSession_;
- experimental_ = other.experimental_ != null ? other.experimental_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ConfigProto Clone() {
- return new ConfigProto(this);
- }
-
- /// <summary>Field number for the "device_count" field.</summary>
- public const int DeviceCountFieldNumber = 1;
- private static readonly pbc::MapField<string, int>.Codec _map_deviceCount_codec
- = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10);
- private readonly pbc::MapField<string, int> deviceCount_ = new pbc::MapField<string, int>();
- /// <summary>
- /// Map from device type name (e.g., "CPU" or "GPU" ) to maximum
- /// number of devices of that type to use. If a particular device
- /// type is not found in the map, the system picks an appropriate
- /// number.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::MapField<string, int> DeviceCount {
- get { return deviceCount_; }
- }
-
- /// <summary>Field number for the "intra_op_parallelism_threads" field.</summary>
- public const int IntraOpParallelismThreadsFieldNumber = 2;
- private int intraOpParallelismThreads_;
- /// <summary>
- /// The execution of an individual op (for some op types) can be
- /// parallelized on a pool of intra_op_parallelism_threads.
- /// 0 means the system picks an appropriate number.
- ///
- /// If you create an ordinary session, e.g., from Python or C++,
- /// then there is exactly one intra op thread pool per process.
- /// The first session created determines the number of threads in this pool.
- /// All subsequent sessions reuse/share this one global pool.
- ///
- /// There are notable exceptions to the default behavior described above:
- /// 1. There is an environment variable for overriding this thread pool,
- /// named TF_OVERRIDE_GLOBAL_THREADPOOL.
- /// 2. When connecting to a server, such as a remote `tf.train.Server`
- /// instance, then this option will be ignored altogether.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int IntraOpParallelismThreads {
- get { return intraOpParallelismThreads_; }
- set {
- intraOpParallelismThreads_ = value;
- }
- }
-
- /// <summary>Field number for the "inter_op_parallelism_threads" field.</summary>
- public const int InterOpParallelismThreadsFieldNumber = 5;
- private int interOpParallelismThreads_;
- /// <summary>
- /// Nodes that perform blocking operations are enqueued on a pool of
- /// inter_op_parallelism_threads available in each process.
- ///
- /// 0 means the system picks an appropriate number.
- /// Negative means all operations are performed in caller's thread.
- ///
- /// Note that the first Session created in the process sets the
- /// number of threads for all future sessions unless use_per_session_threads is
- /// true or session_inter_op_thread_pool is configured.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int InterOpParallelismThreads {
- get { return interOpParallelismThreads_; }
- set {
- interOpParallelismThreads_ = value;
- }
- }
-
- /// <summary>Field number for the "use_per_session_threads" field.</summary>
- public const int UsePerSessionThreadsFieldNumber = 9;
- private bool usePerSessionThreads_;
- /// <summary>
- /// If true, use a new set of threads for this session rather than the global
- /// pool of threads. Only supported by direct sessions.
- ///
- /// If false, use the global threads created by the first session, or the
- /// per-session thread pools configured by session_inter_op_thread_pool.
- ///
- /// This option is deprecated. The same effect can be achieved by setting
- /// session_inter_op_thread_pool to have one element, whose num_threads equals
- /// inter_op_parallelism_threads.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool UsePerSessionThreads {
- get { return usePerSessionThreads_; }
- set {
- usePerSessionThreads_ = value;
- }
- }
-
- /// <summary>Field number for the "session_inter_op_thread_pool" field.</summary>
- public const int SessionInterOpThreadPoolFieldNumber = 12;
- private static readonly pb::FieldCodec<global::Tensorflow.ThreadPoolOptionProto> _repeated_sessionInterOpThreadPool_codec
- = pb::FieldCodec.ForMessage(98, global::Tensorflow.ThreadPoolOptionProto.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.ThreadPoolOptionProto> sessionInterOpThreadPool_ = new pbc::RepeatedField<global::Tensorflow.ThreadPoolOptionProto>();
- /// <summary>
- /// This option is experimental - it may be replaced with a different mechanism
- /// in the future.
- ///
- /// Configures session thread pools. If this is configured, then RunOptions for
- /// a Run call can select the thread pool to use.
- ///
- /// The intended use is for when some session invocations need to run in a
- /// background pool limited to a small number of threads:
- /// - For example, a session may be configured to have one large pool (for
- /// regular compute) and one small pool (for periodic, low priority work);
- /// using the small pool is currently the mechanism for limiting the inter-op
- /// parallelism of the low priority work. Note that it does not limit the
- /// parallelism of work spawned by a single op kernel implementation.
- /// - Using this setting is normally not needed in training, but may help some
- /// serving use cases.
- /// - It is also generally recommended to set the global_name field of this
- /// proto, to avoid creating multiple large pools. It is typically better to
- /// run the non-low-priority work, even across sessions, in a single large
- /// pool.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.ThreadPoolOptionProto> SessionInterOpThreadPool {
- get { return sessionInterOpThreadPool_; }
- }
-
- /// <summary>Field number for the "placement_period" field.</summary>
- public const int PlacementPeriodFieldNumber = 3;
- private int placementPeriod_;
- /// <summary>
- /// Assignment of Nodes to Devices is recomputed every placement_period
- /// steps until the system warms up (at which point the recomputation
- /// typically slows down automatically).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int PlacementPeriod {
- get { return placementPeriod_; }
- set {
- placementPeriod_ = value;
- }
- }
-
- /// <summary>Field number for the "device_filters" field.</summary>
- public const int DeviceFiltersFieldNumber = 4;
- private static readonly pb::FieldCodec<string> _repeated_deviceFilters_codec
- = pb::FieldCodec.ForString(34);
- private readonly pbc::RepeatedField<string> deviceFilters_ = new pbc::RepeatedField<string>();
- /// <summary>
- /// When any filters are present sessions will ignore all devices which do not
- /// match the filters. Each filter can be partially specified, e.g. "/job:ps"
- /// "/job:worker/replica:3", etc.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<string> DeviceFilters {
- get { return deviceFilters_; }
- }
-
- /// <summary>Field number for the "gpu_options" field.</summary>
- public const int GpuOptionsFieldNumber = 6;
- private global::Tensorflow.GPUOptions gpuOptions_;
- /// <summary>
- /// Options that apply to all GPUs.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.GPUOptions GpuOptions {
- get { return gpuOptions_; }
- set {
- gpuOptions_ = value;
- }
- }
-
- /// <summary>Field number for the "allow_soft_placement" field.</summary>
- public const int AllowSoftPlacementFieldNumber = 7;
- private bool allowSoftPlacement_;
- /// <summary>
- /// Whether soft placement is allowed. If allow_soft_placement is true,
- /// an op will be placed on CPU if
- /// 1. there's no GPU implementation for the OP
- /// or
- /// 2. no GPU devices are known or registered
- /// or
- /// 3. need to co-locate with reftype input(s) which are from CPU.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool AllowSoftPlacement {
- get { return allowSoftPlacement_; }
- set {
- allowSoftPlacement_ = value;
- }
- }
-
- /// <summary>Field number for the "log_device_placement" field.</summary>
- public const int LogDevicePlacementFieldNumber = 8;
- private bool logDevicePlacement_;
- /// <summary>
- /// Whether device placements should be logged.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool LogDevicePlacement {
- get { return logDevicePlacement_; }
- set {
- logDevicePlacement_ = value;
- }
- }
-
- /// <summary>Field number for the "graph_options" field.</summary>
- public const int GraphOptionsFieldNumber = 10;
- private global::Tensorflow.GraphOptions graphOptions_;
- /// <summary>
- /// Options that apply to all graphs.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.GraphOptions GraphOptions {
- get { return graphOptions_; }
- set {
- graphOptions_ = value;
- }
- }
-
- /// <summary>Field number for the "operation_timeout_in_ms" field.</summary>
- public const int OperationTimeoutInMsFieldNumber = 11;
- private long operationTimeoutInMs_;
- /// <summary>
- /// Global timeout for all blocking operations in this session. If non-zero,
- /// and not overridden on a per-operation basis, this value will be used as the
- /// deadline for all blocking operations.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long OperationTimeoutInMs {
- get { return operationTimeoutInMs_; }
- set {
- operationTimeoutInMs_ = value;
- }
- }
-
- /// <summary>Field number for the "rpc_options" field.</summary>
- public const int RpcOptionsFieldNumber = 13;
- private global::Tensorflow.RPCOptions rpcOptions_;
- /// <summary>
- /// Options that apply when this session uses the distributed runtime.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.RPCOptions RpcOptions {
- get { return rpcOptions_; }
- set {
- rpcOptions_ = value;
- }
- }
-
- /// <summary>Field number for the "cluster_def" field.</summary>
- public const int ClusterDefFieldNumber = 14;
- private global::Tensorflow.ClusterDef clusterDef_;
- /// <summary>
- /// Optional list of all workers to use in this session.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.ClusterDef ClusterDef {
- get { return clusterDef_; }
- set {
- clusterDef_ = value;
- }
- }
-
- /// <summary>Field number for the "isolate_session_state" field.</summary>
- public const int IsolateSessionStateFieldNumber = 15;
- private bool isolateSessionState_;
- /// <summary>
- /// If true, any resources such as Variables used in the session will not be
- /// shared with other sessions. However, when clusterspec propagation is
- /// enabled, this field is ignored and sessions are always isolated.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool IsolateSessionState {
- get { return isolateSessionState_; }
- set {
- isolateSessionState_ = value;
- }
- }
-
- /// <summary>Field number for the "share_cluster_devices_in_session" field.</summary>
- public const int ShareClusterDevicesInSessionFieldNumber = 17;
- private bool shareClusterDevicesInSession_;
- /// <summary>
- /// When true, WorkerSessions are created with device attributes from the
- /// full cluster.
- /// This is helpful when a worker wants to partition a graph
- /// (for example during a PartitionedCallOp).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool ShareClusterDevicesInSession {
- get { return shareClusterDevicesInSession_; }
- set {
- shareClusterDevicesInSession_ = value;
- }
- }
-
- /// <summary>Field number for the "experimental" field.</summary>
- public const int ExperimentalFieldNumber = 16;
- private global::Tensorflow.ConfigProto.Types.Experimental experimental_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.ConfigProto.Types.Experimental Experimental {
- get { return experimental_; }
- set {
- experimental_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as ConfigProto);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(ConfigProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!DeviceCount.Equals(other.DeviceCount)) return false;
- if (IntraOpParallelismThreads != other.IntraOpParallelismThreads) return false;
- if (InterOpParallelismThreads != other.InterOpParallelismThreads) return false;
- if (UsePerSessionThreads != other.UsePerSessionThreads) return false;
- if(!sessionInterOpThreadPool_.Equals(other.sessionInterOpThreadPool_)) return false;
- if (PlacementPeriod != other.PlacementPeriod) return false;
- if(!deviceFilters_.Equals(other.deviceFilters_)) return false;
- if (!object.Equals(GpuOptions, other.GpuOptions)) return false;
- if (AllowSoftPlacement != other.AllowSoftPlacement) return false;
- if (LogDevicePlacement != other.LogDevicePlacement) return false;
- if (!object.Equals(GraphOptions, other.GraphOptions)) return false;
- if (OperationTimeoutInMs != other.OperationTimeoutInMs) return false;
- if (!object.Equals(RpcOptions, other.RpcOptions)) return false;
- if (!object.Equals(ClusterDef, other.ClusterDef)) return false;
- if (IsolateSessionState != other.IsolateSessionState) return false;
- if (ShareClusterDevicesInSession != other.ShareClusterDevicesInSession) return false;
- if (!object.Equals(Experimental, other.Experimental)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= DeviceCount.GetHashCode();
- if (IntraOpParallelismThreads != 0) hash ^= IntraOpParallelismThreads.GetHashCode();
- if (InterOpParallelismThreads != 0) hash ^= InterOpParallelismThreads.GetHashCode();
- if (UsePerSessionThreads != false) hash ^= UsePerSessionThreads.GetHashCode();
- hash ^= sessionInterOpThreadPool_.GetHashCode();
- if (PlacementPeriod != 0) hash ^= PlacementPeriod.GetHashCode();
- hash ^= deviceFilters_.GetHashCode();
- if (gpuOptions_ != null) hash ^= GpuOptions.GetHashCode();
- if (AllowSoftPlacement != false) hash ^= AllowSoftPlacement.GetHashCode();
- if (LogDevicePlacement != false) hash ^= LogDevicePlacement.GetHashCode();
- if (graphOptions_ != null) hash ^= GraphOptions.GetHashCode();
- if (OperationTimeoutInMs != 0L) hash ^= OperationTimeoutInMs.GetHashCode();
- if (rpcOptions_ != null) hash ^= RpcOptions.GetHashCode();
- if (clusterDef_ != null) hash ^= ClusterDef.GetHashCode();
- if (IsolateSessionState != false) hash ^= IsolateSessionState.GetHashCode();
- if (ShareClusterDevicesInSession != false) hash ^= ShareClusterDevicesInSession.GetHashCode();
- if (experimental_ != null) hash ^= Experimental.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- deviceCount_.WriteTo(output, _map_deviceCount_codec);
- if (IntraOpParallelismThreads != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(IntraOpParallelismThreads);
- }
- if (PlacementPeriod != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(PlacementPeriod);
- }
- deviceFilters_.WriteTo(output, _repeated_deviceFilters_codec);
- if (InterOpParallelismThreads != 0) {
- output.WriteRawTag(40);
- output.WriteInt32(InterOpParallelismThreads);
- }
- if (gpuOptions_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(GpuOptions);
- }
- if (AllowSoftPlacement != false) {
- output.WriteRawTag(56);
- output.WriteBool(AllowSoftPlacement);
- }
- if (LogDevicePlacement != false) {
- output.WriteRawTag(64);
- output.WriteBool(LogDevicePlacement);
- }
- if (UsePerSessionThreads != false) {
- output.WriteRawTag(72);
- output.WriteBool(UsePerSessionThreads);
- }
- if (graphOptions_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(GraphOptions);
- }
- if (OperationTimeoutInMs != 0L) {
- output.WriteRawTag(88);
- output.WriteInt64(OperationTimeoutInMs);
- }
- sessionInterOpThreadPool_.WriteTo(output, _repeated_sessionInterOpThreadPool_codec);
- if (rpcOptions_ != null) {
- output.WriteRawTag(106);
- output.WriteMessage(RpcOptions);
- }
- if (clusterDef_ != null) {
- output.WriteRawTag(114);
- output.WriteMessage(ClusterDef);
- }
- if (IsolateSessionState != false) {
- output.WriteRawTag(120);
- output.WriteBool(IsolateSessionState);
- }
- if (experimental_ != null) {
- output.WriteRawTag(130, 1);
- output.WriteMessage(Experimental);
- }
- if (ShareClusterDevicesInSession != false) {
- output.WriteRawTag(136, 1);
- output.WriteBool(ShareClusterDevicesInSession);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- deviceCount_.WriteTo(ref output, _map_deviceCount_codec);
- if (IntraOpParallelismThreads != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(IntraOpParallelismThreads);
- }
- if (PlacementPeriod != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(PlacementPeriod);
- }
- deviceFilters_.WriteTo(ref output, _repeated_deviceFilters_codec);
- if (InterOpParallelismThreads != 0) {
- output.WriteRawTag(40);
- output.WriteInt32(InterOpParallelismThreads);
- }
- if (gpuOptions_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(GpuOptions);
- }
- if (AllowSoftPlacement != false) {
- output.WriteRawTag(56);
- output.WriteBool(AllowSoftPlacement);
- }
- if (LogDevicePlacement != false) {
- output.WriteRawTag(64);
- output.WriteBool(LogDevicePlacement);
- }
- if (UsePerSessionThreads != false) {
- output.WriteRawTag(72);
- output.WriteBool(UsePerSessionThreads);
- }
- if (graphOptions_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(GraphOptions);
- }
- if (OperationTimeoutInMs != 0L) {
- output.WriteRawTag(88);
- output.WriteInt64(OperationTimeoutInMs);
- }
- sessionInterOpThreadPool_.WriteTo(ref output, _repeated_sessionInterOpThreadPool_codec);
- if (rpcOptions_ != null) {
- output.WriteRawTag(106);
- output.WriteMessage(RpcOptions);
- }
- if (clusterDef_ != null) {
- output.WriteRawTag(114);
- output.WriteMessage(ClusterDef);
- }
- if (IsolateSessionState != false) {
- output.WriteRawTag(120);
- output.WriteBool(IsolateSessionState);
- }
- if (experimental_ != null) {
- output.WriteRawTag(130, 1);
- output.WriteMessage(Experimental);
- }
- if (ShareClusterDevicesInSession != false) {
- output.WriteRawTag(136, 1);
- output.WriteBool(ShareClusterDevicesInSession);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += deviceCount_.CalculateSize(_map_deviceCount_codec);
- if (IntraOpParallelismThreads != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntraOpParallelismThreads);
- }
- if (InterOpParallelismThreads != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(InterOpParallelismThreads);
- }
- if (UsePerSessionThreads != false) {
- size += 1 + 1;
- }
- size += sessionInterOpThreadPool_.CalculateSize(_repeated_sessionInterOpThreadPool_codec);
- if (PlacementPeriod != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlacementPeriod);
- }
- size += deviceFilters_.CalculateSize(_repeated_deviceFilters_codec);
- if (gpuOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(GpuOptions);
- }
- if (AllowSoftPlacement != false) {
- size += 1 + 1;
- }
- if (LogDevicePlacement != false) {
- size += 1 + 1;
- }
- if (graphOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(GraphOptions);
- }
- if (OperationTimeoutInMs != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(OperationTimeoutInMs);
- }
- if (rpcOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RpcOptions);
- }
- if (clusterDef_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClusterDef);
- }
- if (IsolateSessionState != false) {
- size += 1 + 1;
- }
- if (ShareClusterDevicesInSession != false) {
- size += 2 + 1;
- }
- if (experimental_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(Experimental);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(ConfigProto other) {
- if (other == null) {
- return;
- }
- deviceCount_.Add(other.deviceCount_);
- if (other.IntraOpParallelismThreads != 0) {
- IntraOpParallelismThreads = other.IntraOpParallelismThreads;
- }
- if (other.InterOpParallelismThreads != 0) {
- InterOpParallelismThreads = other.InterOpParallelismThreads;
- }
- if (other.UsePerSessionThreads != false) {
- UsePerSessionThreads = other.UsePerSessionThreads;
- }
- sessionInterOpThreadPool_.Add(other.sessionInterOpThreadPool_);
- if (other.PlacementPeriod != 0) {
- PlacementPeriod = other.PlacementPeriod;
- }
- deviceFilters_.Add(other.deviceFilters_);
- if (other.gpuOptions_ != null) {
- if (gpuOptions_ == null) {
- GpuOptions = new global::Tensorflow.GPUOptions();
- }
- GpuOptions.MergeFrom(other.GpuOptions);
- }
- if (other.AllowSoftPlacement != false) {
- AllowSoftPlacement = other.AllowSoftPlacement;
- }
- if (other.LogDevicePlacement != false) {
- LogDevicePlacement = other.LogDevicePlacement;
- }
- if (other.graphOptions_ != null) {
- if (graphOptions_ == null) {
- GraphOptions = new global::Tensorflow.GraphOptions();
- }
- GraphOptions.MergeFrom(other.GraphOptions);
- }
- if (other.OperationTimeoutInMs != 0L) {
- OperationTimeoutInMs = other.OperationTimeoutInMs;
- }
- if (other.rpcOptions_ != null) {
- if (rpcOptions_ == null) {
- RpcOptions = new global::Tensorflow.RPCOptions();
- }
- RpcOptions.MergeFrom(other.RpcOptions);
- }
- if (other.clusterDef_ != null) {
- if (clusterDef_ == null) {
- ClusterDef = new global::Tensorflow.ClusterDef();
- }
- ClusterDef.MergeFrom(other.ClusterDef);
- }
- if (other.IsolateSessionState != false) {
- IsolateSessionState = other.IsolateSessionState;
- }
- if (other.ShareClusterDevicesInSession != false) {
- ShareClusterDevicesInSession = other.ShareClusterDevicesInSession;
- }
- if (other.experimental_ != null) {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.ConfigProto.Types.Experimental();
- }
- Experimental.MergeFrom(other.Experimental);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- deviceCount_.AddEntriesFrom(input, _map_deviceCount_codec);
- break;
- }
- case 16: {
- IntraOpParallelismThreads = input.ReadInt32();
- break;
- }
- case 24: {
- PlacementPeriod = input.ReadInt32();
- break;
- }
- case 34: {
- deviceFilters_.AddEntriesFrom(input, _repeated_deviceFilters_codec);
- break;
- }
- case 40: {
- InterOpParallelismThreads = input.ReadInt32();
- break;
- }
- case 50: {
- if (gpuOptions_ == null) {
- GpuOptions = new global::Tensorflow.GPUOptions();
- }
- input.ReadMessage(GpuOptions);
- break;
- }
- case 56: {
- AllowSoftPlacement = input.ReadBool();
- break;
- }
- case 64: {
- LogDevicePlacement = input.ReadBool();
- break;
- }
- case 72: {
- UsePerSessionThreads = input.ReadBool();
- break;
- }
- case 82: {
- if (graphOptions_ == null) {
- GraphOptions = new global::Tensorflow.GraphOptions();
- }
- input.ReadMessage(GraphOptions);
- break;
- }
- case 88: {
- OperationTimeoutInMs = input.ReadInt64();
- break;
- }
- case 98: {
- sessionInterOpThreadPool_.AddEntriesFrom(input, _repeated_sessionInterOpThreadPool_codec);
- break;
- }
- case 106: {
- if (rpcOptions_ == null) {
- RpcOptions = new global::Tensorflow.RPCOptions();
- }
- input.ReadMessage(RpcOptions);
- break;
- }
- case 114: {
- if (clusterDef_ == null) {
- ClusterDef = new global::Tensorflow.ClusterDef();
- }
- input.ReadMessage(ClusterDef);
- break;
- }
- case 120: {
- IsolateSessionState = input.ReadBool();
- break;
- }
- case 130: {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.ConfigProto.Types.Experimental();
- }
- input.ReadMessage(Experimental);
- break;
- }
- case 136: {
- ShareClusterDevicesInSession = input.ReadBool();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- deviceCount_.AddEntriesFrom(ref input, _map_deviceCount_codec);
- break;
- }
- case 16: {
- IntraOpParallelismThreads = input.ReadInt32();
- break;
- }
- case 24: {
- PlacementPeriod = input.ReadInt32();
- break;
- }
- case 34: {
- deviceFilters_.AddEntriesFrom(ref input, _repeated_deviceFilters_codec);
- break;
- }
- case 40: {
- InterOpParallelismThreads = input.ReadInt32();
- break;
- }
- case 50: {
- if (gpuOptions_ == null) {
- GpuOptions = new global::Tensorflow.GPUOptions();
- }
- input.ReadMessage(GpuOptions);
- break;
- }
- case 56: {
- AllowSoftPlacement = input.ReadBool();
- break;
- }
- case 64: {
- LogDevicePlacement = input.ReadBool();
- break;
- }
- case 72: {
- UsePerSessionThreads = input.ReadBool();
- break;
- }
- case 82: {
- if (graphOptions_ == null) {
- GraphOptions = new global::Tensorflow.GraphOptions();
- }
- input.ReadMessage(GraphOptions);
- break;
- }
- case 88: {
- OperationTimeoutInMs = input.ReadInt64();
- break;
- }
- case 98: {
- sessionInterOpThreadPool_.AddEntriesFrom(ref input, _repeated_sessionInterOpThreadPool_codec);
- break;
- }
- case 106: {
- if (rpcOptions_ == null) {
- RpcOptions = new global::Tensorflow.RPCOptions();
- }
- input.ReadMessage(RpcOptions);
- break;
- }
- case 114: {
- if (clusterDef_ == null) {
- ClusterDef = new global::Tensorflow.ClusterDef();
- }
- input.ReadMessage(ClusterDef);
- break;
- }
- case 120: {
- IsolateSessionState = input.ReadBool();
- break;
- }
- case 130: {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.ConfigProto.Types.Experimental();
- }
- input.ReadMessage(Experimental);
- break;
- }
- case 136: {
- ShareClusterDevicesInSession = input.ReadBool();
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the ConfigProto message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- /// <summary>
- /// Everything inside Experimental is subject to change and is not subject
- /// to API stability guarantees in
- /// https://www.tensorflow.org/guide/version_compat.
- /// </summary>
- public sealed partial class Experimental : pb::IMessage<Experimental>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Experimental> _parser = new pb::MessageParser<Experimental>(() => new Experimental());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<Experimental> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigProto.Descriptor.NestedTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental(Experimental other) : this() {
- collectiveGroupLeader_ = other.collectiveGroupLeader_;
- executorType_ = other.executorType_;
- recvBufMaxChunk_ = other.recvBufMaxChunk_;
- useNumaAffinity_ = other.useNumaAffinity_;
- collectiveDeterministicSequentialExecution_ = other.collectiveDeterministicSequentialExecution_;
- collectiveNccl_ = other.collectiveNccl_;
- shareSessionStateInClusterspecPropagation_ = other.shareSessionStateInClusterspecPropagation_;
- disableThreadSpinning_ = other.disableThreadSpinning_;
- shareClusterDevicesInSession_ = other.shareClusterDevicesInSession_;
- sessionMetadata_ = other.sessionMetadata_ != null ? other.sessionMetadata_.Clone() : null;
- optimizeForStaticGraph_ = other.optimizeForStaticGraph_;
- enableMlirBridge_ = other.enableMlirBridge_;
- mlirBridgeRollout_ = other.mlirBridgeRollout_;
- enableMlirGraphOptimization_ = other.enableMlirGraphOptimization_;
- disableOutputPartitionGraphs_ = other.disableOutputPartitionGraphs_;
- xlaFusionAutotunerThresh_ = other.xlaFusionAutotunerThresh_;
- useTfrt_ = other.useTfrt_;
- disableFunctionalOpsLowering_ = other.disableFunctionalOpsLowering_;
- xlaPreferSingleGraphCluster_ = other.xlaPreferSingleGraphCluster_;
- coordinationConfig_ = other.coordinationConfig_ != null ? other.coordinationConfig_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental Clone() {
- return new Experimental(this);
- }
-
- /// <summary>Field number for the "collective_group_leader" field.</summary>
- public const int CollectiveGroupLeaderFieldNumber = 1;
- private string collectiveGroupLeader_ = "";
- /// <summary>
- /// Task name for group resolution.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string CollectiveGroupLeader {
- get { return collectiveGroupLeader_; }
- set {
- collectiveGroupLeader_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "executor_type" field.</summary>
- public const int ExecutorTypeFieldNumber = 3;
- private string executorType_ = "";
- /// <summary>
- /// Which executor to use, the default executor will be used
- /// if it is an empty string or "DEFAULT"
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string ExecutorType {
- get { return executorType_; }
- set {
- executorType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "recv_buf_max_chunk" field.</summary>
- public const int RecvBufMaxChunkFieldNumber = 4;
- private int recvBufMaxChunk_;
- /// <summary>
- /// Guidance to formatting of large RecvBuf fields for transfer.
- /// Any positive value sets the max chunk size. 0 defaults to 4096.
- /// Any negative value indicates no max, i.e. one chunk only.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int RecvBufMaxChunk {
- get { return recvBufMaxChunk_; }
- set {
- recvBufMaxChunk_ = value;
- }
- }
-
- /// <summary>Field number for the "use_numa_affinity" field.</summary>
- public const int UseNumaAffinityFieldNumber = 5;
- private bool useNumaAffinity_;
- /// <summary>
- /// If true, and supported by the platform, the runtime will attempt to
- /// use NUMA affinity where applicable. One consequence will be the
- /// existence of as many CPU devices as there are available NUMA nodes.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool UseNumaAffinity {
- get { return useNumaAffinity_; }
- set {
- useNumaAffinity_ = value;
- }
- }
-
- /// <summary>Field number for the "collective_deterministic_sequential_execution" field.</summary>
- public const int CollectiveDeterministicSequentialExecutionFieldNumber = 6;
- private bool collectiveDeterministicSequentialExecution_;
- /// <summary>
- /// If true, make collective op execution order sequential and deterministic
- /// for potentially concurrent collective instances.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool CollectiveDeterministicSequentialExecution {
- get { return collectiveDeterministicSequentialExecution_; }
- set {
- collectiveDeterministicSequentialExecution_ = value;
- }
- }
-
- /// <summary>Field number for the "collective_nccl" field.</summary>
- public const int CollectiveNcclFieldNumber = 7;
- private bool collectiveNccl_;
- /// <summary>
- /// If true, use NCCL for CollectiveOps. This feature is highly
- /// experimental.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool CollectiveNccl {
- get { return collectiveNccl_; }
- set {
- collectiveNccl_ = value;
- }
- }
-
- /// <summary>Field number for the "share_session_state_in_clusterspec_propagation" field.</summary>
- public const int ShareSessionStateInClusterspecPropagationFieldNumber = 8;
- private bool shareSessionStateInClusterspecPropagation_;
- /// <summary>
- /// In the following, session state means the value of a variable, elements
- /// in a hash table, or any other resource, accessible by worker sessions
- /// held by a TF server.
- ///
- /// When ClusterSpec propagation is enabled, the value of
- /// isolate_session_state is ignored when deciding whether to share session
- /// states in a TF server (for backwards compatibility reasons).
- /// - If share_session_state_in_clusterspec_propagation is true, the session
- /// states are shared.
- /// - If share_session_state_in_clusterspec_propagation is false, session
- /// states are isolated.
- ///
- /// When clusterspec propagation is not used, the value of
- /// share_session_state_in_clusterspec_propagation is ignored when deciding
- /// whether to share session states in a TF server.
- /// - If isolate_session_state is true, session states are isolated.
- /// - If isolate_session_state is false, session states are shared.
- ///
- /// TODO(b/129330037): Add a single API that consistently treats
- /// isolate_session_state and ClusterSpec propagation.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool ShareSessionStateInClusterspecPropagation {
- get { return shareSessionStateInClusterspecPropagation_; }
- set {
- shareSessionStateInClusterspecPropagation_ = value;
- }
- }
-
- /// <summary>Field number for the "disable_thread_spinning" field.</summary>
- public const int DisableThreadSpinningFieldNumber = 9;
- private bool disableThreadSpinning_;
- /// <summary>
- /// If using a direct session, disable spinning while waiting for work in
- /// the thread pool. This may result in higher latency for completing ops,
- /// but in the case where there is a lot of spinning may result in lower
- /// CPU usage.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DisableThreadSpinning {
- get { return disableThreadSpinning_; }
- set {
- disableThreadSpinning_ = value;
- }
- }
-
- /// <summary>Field number for the "share_cluster_devices_in_session" field.</summary>
- public const int ShareClusterDevicesInSessionFieldNumber = 10;
- private bool shareClusterDevicesInSession_;
- /// <summary>
- /// This was promoted to a non-experimental API. Please use
- /// ConfigProto.share_cluster_devices_in_session instead.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool ShareClusterDevicesInSession {
- get { return shareClusterDevicesInSession_; }
- set {
- shareClusterDevicesInSession_ = value;
- }
- }
-
- /// <summary>Field number for the "session_metadata" field.</summary>
- public const int SessionMetadataFieldNumber = 11;
- private global::Tensorflow.SessionMetadata sessionMetadata_;
- /// <summary>
- /// Metadata about the session.
- ///
- /// If set, this can be used by the runtime and the Ops for debugging,
- /// monitoring, etc.
- ///
- /// NOTE: This is currently used and propagated only by the direct session.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.SessionMetadata SessionMetadata {
- get { return sessionMetadata_; }
- set {
- sessionMetadata_ = value;
- }
- }
-
- /// <summary>Field number for the "optimize_for_static_graph" field.</summary>
- public const int OptimizeForStaticGraphFieldNumber = 12;
- private bool optimizeForStaticGraph_;
- /// <summary>
- /// If true, the session may treat the graph as being static for optimization
- /// purposes.
- ///
- /// If this option is set to true when a session is created, the full
- /// GraphDef must be passed in a single call to Session::Create(), and
- /// Session::Extend() may not be supported.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool OptimizeForStaticGraph {
- get { return optimizeForStaticGraph_; }
- set {
- optimizeForStaticGraph_ = value;
- }
- }
-
- /// <summary>Field number for the "enable_mlir_bridge" field.</summary>
- public const int EnableMlirBridgeFieldNumber = 13;
- private bool enableMlirBridge_;
- /// <summary>
- /// This field will eventually be deprecated and replaced by
- /// mlir_bridge_rollout (b/166038521).
- ///
- /// Whether to enable the MLIR-based TF->XLA bridge.
- ///
- /// This is a replacement to the existing bridge, and not ready for
- /// production usage yet.
- /// If this option is set to true when a session is created, MLIR is used to
- /// perform the set of graph transformations to put the graph in a form that
- /// can be executed with delegation of some computations to an accelerator.
- /// This builds on the model of XLA where a subset of the graph is
- /// encapsulated and attached to a "compile" operation, whose result is fed
- /// to an "execute" operation. The kernel for these operations is responsible
- /// to lower the encapsulated graph to a particular device.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool EnableMlirBridge {
- get { return enableMlirBridge_; }
- set {
- enableMlirBridge_ = value;
- }
- }
-
- /// <summary>Field number for the "mlir_bridge_rollout" field.</summary>
- public const int MlirBridgeRolloutFieldNumber = 17;
- private global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout mlirBridgeRollout_ = global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout.Unspecified;
- /// <summary>
- /// This field is underdevelopment, for now use enable_mlir_bridge
- /// (b/166038521).
- ///
- /// Whether to enable the MLIR-based TF->XLA bridge.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout MlirBridgeRollout {
- get { return mlirBridgeRollout_; }
- set {
- mlirBridgeRollout_ = value;
- }
- }
-
- /// <summary>Field number for the "enable_mlir_graph_optimization" field.</summary>
- public const int EnableMlirGraphOptimizationFieldNumber = 16;
- private bool enableMlirGraphOptimization_;
- /// <summary>
- /// Whether to enable the MLIR-based Graph optimizations.
- ///
- /// This will become a part of standard Tensorflow graph optimization
- /// pipeline, currently this is only used for gradual migration and testing
- /// new passes that are replacing existing optimizations in Grappler.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool EnableMlirGraphOptimization {
- get { return enableMlirGraphOptimization_; }
- set {
- enableMlirGraphOptimization_ = value;
- }
- }
-
- /// <summary>Field number for the "disable_output_partition_graphs" field.</summary>
- public const int DisableOutputPartitionGraphsFieldNumber = 14;
- private bool disableOutputPartitionGraphs_;
- /// <summary>
- /// If true, the session will not store an additional copy of the graph for
- /// each subgraph.
- ///
- /// If this option is set to true when a session is created, the
- /// `RunOptions.output_partition_graphs` options must not be set.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DisableOutputPartitionGraphs {
- get { return disableOutputPartitionGraphs_; }
- set {
- disableOutputPartitionGraphs_ = value;
- }
- }
-
- /// <summary>Field number for the "xla_fusion_autotuner_thresh" field.</summary>
- public const int XlaFusionAutotunerThreshFieldNumber = 15;
- private long xlaFusionAutotunerThresh_;
- /// <summary>
- /// Minimum number of batches run through the XLA graph before XLA fusion
- /// autotuner is enabled. Default value of zero disables the autotuner.
- ///
- /// The XLA fusion autotuner can improve performance by executing a heuristic
- /// search on the compiler parameters.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long XlaFusionAutotunerThresh {
- get { return xlaFusionAutotunerThresh_; }
- set {
- xlaFusionAutotunerThresh_ = value;
- }
- }
-
- /// <summary>Field number for the "use_tfrt" field.</summary>
- public const int UseTfrtFieldNumber = 18;
- private bool useTfrt_;
- /// <summary>
- /// Whether runtime execution uses TFRT.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool UseTfrt {
- get { return useTfrt_; }
- set {
- useTfrt_ = value;
- }
- }
-
- /// <summary>Field number for the "disable_functional_ops_lowering" field.</summary>
- public const int DisableFunctionalOpsLoweringFieldNumber = 21;
- private bool disableFunctionalOpsLowering_;
- /// <summary>
- /// Whether functional control flow op lowering should be disabled. This is
- /// useful when executing within a portable runtime where control flow op
- /// kernels may not be loaded due to selective registration.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool DisableFunctionalOpsLowering {
- get { return disableFunctionalOpsLowering_; }
- set {
- disableFunctionalOpsLowering_ = value;
- }
- }
-
- /// <summary>Field number for the "xla_prefer_single_graph_cluster" field.</summary>
- public const int XlaPreferSingleGraphClusterFieldNumber = 22;
- private bool xlaPreferSingleGraphCluster_;
- /// <summary>
- /// Provides a hint to XLA auto clustering to prefer forming a single large
- /// cluster that encompases most of the graph.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool XlaPreferSingleGraphCluster {
- get { return xlaPreferSingleGraphCluster_; }
- set {
- xlaPreferSingleGraphCluster_ = value;
- }
- }
-
- /// <summary>Field number for the "coordination_config" field.</summary>
- public const int CoordinationConfigFieldNumber = 23;
- private global::Tensorflow.CoordinationServiceConfig coordinationConfig_;
- /// <summary>
- /// Distributed coordination service configurations.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.CoordinationServiceConfig CoordinationConfig {
- get { return coordinationConfig_; }
- set {
- coordinationConfig_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as Experimental);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(Experimental other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (CollectiveGroupLeader != other.CollectiveGroupLeader) return false;
- if (ExecutorType != other.ExecutorType) return false;
- if (RecvBufMaxChunk != other.RecvBufMaxChunk) return false;
- if (UseNumaAffinity != other.UseNumaAffinity) return false;
- if (CollectiveDeterministicSequentialExecution != other.CollectiveDeterministicSequentialExecution) return false;
- if (CollectiveNccl != other.CollectiveNccl) return false;
- if (ShareSessionStateInClusterspecPropagation != other.ShareSessionStateInClusterspecPropagation) return false;
- if (DisableThreadSpinning != other.DisableThreadSpinning) return false;
- if (ShareClusterDevicesInSession != other.ShareClusterDevicesInSession) return false;
- if (!object.Equals(SessionMetadata, other.SessionMetadata)) return false;
- if (OptimizeForStaticGraph != other.OptimizeForStaticGraph) return false;
- if (EnableMlirBridge != other.EnableMlirBridge) return false;
- if (MlirBridgeRollout != other.MlirBridgeRollout) return false;
- if (EnableMlirGraphOptimization != other.EnableMlirGraphOptimization) return false;
- if (DisableOutputPartitionGraphs != other.DisableOutputPartitionGraphs) return false;
- if (XlaFusionAutotunerThresh != other.XlaFusionAutotunerThresh) return false;
- if (UseTfrt != other.UseTfrt) return false;
- if (DisableFunctionalOpsLowering != other.DisableFunctionalOpsLowering) return false;
- if (XlaPreferSingleGraphCluster != other.XlaPreferSingleGraphCluster) return false;
- if (!object.Equals(CoordinationConfig, other.CoordinationConfig)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (CollectiveGroupLeader.Length != 0) hash ^= CollectiveGroupLeader.GetHashCode();
- if (ExecutorType.Length != 0) hash ^= ExecutorType.GetHashCode();
- if (RecvBufMaxChunk != 0) hash ^= RecvBufMaxChunk.GetHashCode();
- if (UseNumaAffinity != false) hash ^= UseNumaAffinity.GetHashCode();
- if (CollectiveDeterministicSequentialExecution != false) hash ^= CollectiveDeterministicSequentialExecution.GetHashCode();
- if (CollectiveNccl != false) hash ^= CollectiveNccl.GetHashCode();
- if (ShareSessionStateInClusterspecPropagation != false) hash ^= ShareSessionStateInClusterspecPropagation.GetHashCode();
- if (DisableThreadSpinning != false) hash ^= DisableThreadSpinning.GetHashCode();
- if (ShareClusterDevicesInSession != false) hash ^= ShareClusterDevicesInSession.GetHashCode();
- if (sessionMetadata_ != null) hash ^= SessionMetadata.GetHashCode();
- if (OptimizeForStaticGraph != false) hash ^= OptimizeForStaticGraph.GetHashCode();
- if (EnableMlirBridge != false) hash ^= EnableMlirBridge.GetHashCode();
- if (MlirBridgeRollout != global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout.Unspecified) hash ^= MlirBridgeRollout.GetHashCode();
- if (EnableMlirGraphOptimization != false) hash ^= EnableMlirGraphOptimization.GetHashCode();
- if (DisableOutputPartitionGraphs != false) hash ^= DisableOutputPartitionGraphs.GetHashCode();
- if (XlaFusionAutotunerThresh != 0L) hash ^= XlaFusionAutotunerThresh.GetHashCode();
- if (UseTfrt != false) hash ^= UseTfrt.GetHashCode();
- if (DisableFunctionalOpsLowering != false) hash ^= DisableFunctionalOpsLowering.GetHashCode();
- if (XlaPreferSingleGraphCluster != false) hash ^= XlaPreferSingleGraphCluster.GetHashCode();
- if (coordinationConfig_ != null) hash ^= CoordinationConfig.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (CollectiveGroupLeader.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(CollectiveGroupLeader);
- }
- if (ExecutorType.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(ExecutorType);
- }
- if (RecvBufMaxChunk != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(RecvBufMaxChunk);
- }
- if (UseNumaAffinity != false) {
- output.WriteRawTag(40);
- output.WriteBool(UseNumaAffinity);
- }
- if (CollectiveDeterministicSequentialExecution != false) {
- output.WriteRawTag(48);
- output.WriteBool(CollectiveDeterministicSequentialExecution);
- }
- if (CollectiveNccl != false) {
- output.WriteRawTag(56);
- output.WriteBool(CollectiveNccl);
- }
- if (ShareSessionStateInClusterspecPropagation != false) {
- output.WriteRawTag(64);
- output.WriteBool(ShareSessionStateInClusterspecPropagation);
- }
- if (DisableThreadSpinning != false) {
- output.WriteRawTag(72);
- output.WriteBool(DisableThreadSpinning);
- }
- if (ShareClusterDevicesInSession != false) {
- output.WriteRawTag(80);
- output.WriteBool(ShareClusterDevicesInSession);
- }
- if (sessionMetadata_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(SessionMetadata);
- }
- if (OptimizeForStaticGraph != false) {
- output.WriteRawTag(96);
- output.WriteBool(OptimizeForStaticGraph);
- }
- if (EnableMlirBridge != false) {
- output.WriteRawTag(104);
- output.WriteBool(EnableMlirBridge);
- }
- if (DisableOutputPartitionGraphs != false) {
- output.WriteRawTag(112);
- output.WriteBool(DisableOutputPartitionGraphs);
- }
- if (XlaFusionAutotunerThresh != 0L) {
- output.WriteRawTag(120);
- output.WriteInt64(XlaFusionAutotunerThresh);
- }
- if (EnableMlirGraphOptimization != false) {
- output.WriteRawTag(128, 1);
- output.WriteBool(EnableMlirGraphOptimization);
- }
- if (MlirBridgeRollout != global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout.Unspecified) {
- output.WriteRawTag(136, 1);
- output.WriteEnum((int) MlirBridgeRollout);
- }
- if (UseTfrt != false) {
- output.WriteRawTag(144, 1);
- output.WriteBool(UseTfrt);
- }
- if (DisableFunctionalOpsLowering != false) {
- output.WriteRawTag(168, 1);
- output.WriteBool(DisableFunctionalOpsLowering);
- }
- if (XlaPreferSingleGraphCluster != false) {
- output.WriteRawTag(176, 1);
- output.WriteBool(XlaPreferSingleGraphCluster);
- }
- if (coordinationConfig_ != null) {
- output.WriteRawTag(186, 1);
- output.WriteMessage(CoordinationConfig);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (CollectiveGroupLeader.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(CollectiveGroupLeader);
- }
- if (ExecutorType.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(ExecutorType);
- }
- if (RecvBufMaxChunk != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(RecvBufMaxChunk);
- }
- if (UseNumaAffinity != false) {
- output.WriteRawTag(40);
- output.WriteBool(UseNumaAffinity);
- }
- if (CollectiveDeterministicSequentialExecution != false) {
- output.WriteRawTag(48);
- output.WriteBool(CollectiveDeterministicSequentialExecution);
- }
- if (CollectiveNccl != false) {
- output.WriteRawTag(56);
- output.WriteBool(CollectiveNccl);
- }
- if (ShareSessionStateInClusterspecPropagation != false) {
- output.WriteRawTag(64);
- output.WriteBool(ShareSessionStateInClusterspecPropagation);
- }
- if (DisableThreadSpinning != false) {
- output.WriteRawTag(72);
- output.WriteBool(DisableThreadSpinning);
- }
- if (ShareClusterDevicesInSession != false) {
- output.WriteRawTag(80);
- output.WriteBool(ShareClusterDevicesInSession);
- }
- if (sessionMetadata_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(SessionMetadata);
- }
- if (OptimizeForStaticGraph != false) {
- output.WriteRawTag(96);
- output.WriteBool(OptimizeForStaticGraph);
- }
- if (EnableMlirBridge != false) {
- output.WriteRawTag(104);
- output.WriteBool(EnableMlirBridge);
- }
- if (DisableOutputPartitionGraphs != false) {
- output.WriteRawTag(112);
- output.WriteBool(DisableOutputPartitionGraphs);
- }
- if (XlaFusionAutotunerThresh != 0L) {
- output.WriteRawTag(120);
- output.WriteInt64(XlaFusionAutotunerThresh);
- }
- if (EnableMlirGraphOptimization != false) {
- output.WriteRawTag(128, 1);
- output.WriteBool(EnableMlirGraphOptimization);
- }
- if (MlirBridgeRollout != global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout.Unspecified) {
- output.WriteRawTag(136, 1);
- output.WriteEnum((int) MlirBridgeRollout);
- }
- if (UseTfrt != false) {
- output.WriteRawTag(144, 1);
- output.WriteBool(UseTfrt);
- }
- if (DisableFunctionalOpsLowering != false) {
- output.WriteRawTag(168, 1);
- output.WriteBool(DisableFunctionalOpsLowering);
- }
- if (XlaPreferSingleGraphCluster != false) {
- output.WriteRawTag(176, 1);
- output.WriteBool(XlaPreferSingleGraphCluster);
- }
- if (coordinationConfig_ != null) {
- output.WriteRawTag(186, 1);
- output.WriteMessage(CoordinationConfig);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (CollectiveGroupLeader.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(CollectiveGroupLeader);
- }
- if (ExecutorType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(ExecutorType);
- }
- if (RecvBufMaxChunk != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecvBufMaxChunk);
- }
- if (UseNumaAffinity != false) {
- size += 1 + 1;
- }
- if (CollectiveDeterministicSequentialExecution != false) {
- size += 1 + 1;
- }
- if (CollectiveNccl != false) {
- size += 1 + 1;
- }
- if (ShareSessionStateInClusterspecPropagation != false) {
- size += 1 + 1;
- }
- if (DisableThreadSpinning != false) {
- size += 1 + 1;
- }
- if (ShareClusterDevicesInSession != false) {
- size += 1 + 1;
- }
- if (sessionMetadata_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SessionMetadata);
- }
- if (OptimizeForStaticGraph != false) {
- size += 1 + 1;
- }
- if (EnableMlirBridge != false) {
- size += 1 + 1;
- }
- if (MlirBridgeRollout != global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout.Unspecified) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) MlirBridgeRollout);
- }
- if (EnableMlirGraphOptimization != false) {
- size += 2 + 1;
- }
- if (DisableOutputPartitionGraphs != false) {
- size += 1 + 1;
- }
- if (XlaFusionAutotunerThresh != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(XlaFusionAutotunerThresh);
- }
- if (UseTfrt != false) {
- size += 2 + 1;
- }
- if (DisableFunctionalOpsLowering != false) {
- size += 2 + 1;
- }
- if (XlaPreferSingleGraphCluster != false) {
- size += 2 + 1;
- }
- if (coordinationConfig_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(CoordinationConfig);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(Experimental other) {
- if (other == null) {
- return;
- }
- if (other.CollectiveGroupLeader.Length != 0) {
- CollectiveGroupLeader = other.CollectiveGroupLeader;
- }
- if (other.ExecutorType.Length != 0) {
- ExecutorType = other.ExecutorType;
- }
- if (other.RecvBufMaxChunk != 0) {
- RecvBufMaxChunk = other.RecvBufMaxChunk;
- }
- if (other.UseNumaAffinity != false) {
- UseNumaAffinity = other.UseNumaAffinity;
- }
- if (other.CollectiveDeterministicSequentialExecution != false) {
- CollectiveDeterministicSequentialExecution = other.CollectiveDeterministicSequentialExecution;
- }
- if (other.CollectiveNccl != false) {
- CollectiveNccl = other.CollectiveNccl;
- }
- if (other.ShareSessionStateInClusterspecPropagation != false) {
- ShareSessionStateInClusterspecPropagation = other.ShareSessionStateInClusterspecPropagation;
- }
- if (other.DisableThreadSpinning != false) {
- DisableThreadSpinning = other.DisableThreadSpinning;
- }
- if (other.ShareClusterDevicesInSession != false) {
- ShareClusterDevicesInSession = other.ShareClusterDevicesInSession;
- }
- if (other.sessionMetadata_ != null) {
- if (sessionMetadata_ == null) {
- SessionMetadata = new global::Tensorflow.SessionMetadata();
- }
- SessionMetadata.MergeFrom(other.SessionMetadata);
- }
- if (other.OptimizeForStaticGraph != false) {
- OptimizeForStaticGraph = other.OptimizeForStaticGraph;
- }
- if (other.EnableMlirBridge != false) {
- EnableMlirBridge = other.EnableMlirBridge;
- }
- if (other.MlirBridgeRollout != global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout.Unspecified) {
- MlirBridgeRollout = other.MlirBridgeRollout;
- }
- if (other.EnableMlirGraphOptimization != false) {
- EnableMlirGraphOptimization = other.EnableMlirGraphOptimization;
- }
- if (other.DisableOutputPartitionGraphs != false) {
- DisableOutputPartitionGraphs = other.DisableOutputPartitionGraphs;
- }
- if (other.XlaFusionAutotunerThresh != 0L) {
- XlaFusionAutotunerThresh = other.XlaFusionAutotunerThresh;
- }
- if (other.UseTfrt != false) {
- UseTfrt = other.UseTfrt;
- }
- if (other.DisableFunctionalOpsLowering != false) {
- DisableFunctionalOpsLowering = other.DisableFunctionalOpsLowering;
- }
- if (other.XlaPreferSingleGraphCluster != false) {
- XlaPreferSingleGraphCluster = other.XlaPreferSingleGraphCluster;
- }
- if (other.coordinationConfig_ != null) {
- if (coordinationConfig_ == null) {
- CoordinationConfig = new global::Tensorflow.CoordinationServiceConfig();
- }
- CoordinationConfig.MergeFrom(other.CoordinationConfig);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- CollectiveGroupLeader = input.ReadString();
- break;
- }
- case 26: {
- ExecutorType = input.ReadString();
- break;
- }
- case 32: {
- RecvBufMaxChunk = input.ReadInt32();
- break;
- }
- case 40: {
- UseNumaAffinity = input.ReadBool();
- break;
- }
- case 48: {
- CollectiveDeterministicSequentialExecution = input.ReadBool();
- break;
- }
- case 56: {
- CollectiveNccl = input.ReadBool();
- break;
- }
- case 64: {
- ShareSessionStateInClusterspecPropagation = input.ReadBool();
- break;
- }
- case 72: {
- DisableThreadSpinning = input.ReadBool();
- break;
- }
- case 80: {
- ShareClusterDevicesInSession = input.ReadBool();
- break;
- }
- case 90: {
- if (sessionMetadata_ == null) {
- SessionMetadata = new global::Tensorflow.SessionMetadata();
- }
- input.ReadMessage(SessionMetadata);
- break;
- }
- case 96: {
- OptimizeForStaticGraph = input.ReadBool();
- break;
- }
- case 104: {
- EnableMlirBridge = input.ReadBool();
- break;
- }
- case 112: {
- DisableOutputPartitionGraphs = input.ReadBool();
- break;
- }
- case 120: {
- XlaFusionAutotunerThresh = input.ReadInt64();
- break;
- }
- case 128: {
- EnableMlirGraphOptimization = input.ReadBool();
- break;
- }
- case 136: {
- MlirBridgeRollout = (global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout) input.ReadEnum();
- break;
- }
- case 144: {
- UseTfrt = input.ReadBool();
- break;
- }
- case 168: {
- DisableFunctionalOpsLowering = input.ReadBool();
- break;
- }
- case 176: {
- XlaPreferSingleGraphCluster = input.ReadBool();
- break;
- }
- case 186: {
- if (coordinationConfig_ == null) {
- CoordinationConfig = new global::Tensorflow.CoordinationServiceConfig();
- }
- input.ReadMessage(CoordinationConfig);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- CollectiveGroupLeader = input.ReadString();
- break;
- }
- case 26: {
- ExecutorType = input.ReadString();
- break;
- }
- case 32: {
- RecvBufMaxChunk = input.ReadInt32();
- break;
- }
- case 40: {
- UseNumaAffinity = input.ReadBool();
- break;
- }
- case 48: {
- CollectiveDeterministicSequentialExecution = input.ReadBool();
- break;
- }
- case 56: {
- CollectiveNccl = input.ReadBool();
- break;
- }
- case 64: {
- ShareSessionStateInClusterspecPropagation = input.ReadBool();
- break;
- }
- case 72: {
- DisableThreadSpinning = input.ReadBool();
- break;
- }
- case 80: {
- ShareClusterDevicesInSession = input.ReadBool();
- break;
- }
- case 90: {
- if (sessionMetadata_ == null) {
- SessionMetadata = new global::Tensorflow.SessionMetadata();
- }
- input.ReadMessage(SessionMetadata);
- break;
- }
- case 96: {
- OptimizeForStaticGraph = input.ReadBool();
- break;
- }
- case 104: {
- EnableMlirBridge = input.ReadBool();
- break;
- }
- case 112: {
- DisableOutputPartitionGraphs = input.ReadBool();
- break;
- }
- case 120: {
- XlaFusionAutotunerThresh = input.ReadInt64();
- break;
- }
- case 128: {
- EnableMlirGraphOptimization = input.ReadBool();
- break;
- }
- case 136: {
- MlirBridgeRollout = (global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout) input.ReadEnum();
- break;
- }
- case 144: {
- UseTfrt = input.ReadBool();
- break;
- }
- case 168: {
- DisableFunctionalOpsLowering = input.ReadBool();
- break;
- }
- case 176: {
- XlaPreferSingleGraphCluster = input.ReadBool();
- break;
- }
- case 186: {
- if (coordinationConfig_ == null) {
- CoordinationConfig = new global::Tensorflow.CoordinationServiceConfig();
- }
- input.ReadMessage(CoordinationConfig);
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the Experimental message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- /// <summary>
- /// An enum that describes the state of the MLIR bridge rollout.
- /// </summary>
- public enum MlirBridgeRollout {
- /// <summary>
- /// If this field is left unspecified, the MLIR bridge may be selectively
- /// enabled on a per graph basis.
- /// </summary>
- [pbr::OriginalName("MLIR_BRIDGE_ROLLOUT_UNSPECIFIED")] Unspecified = 0,
- /// <summary>
- /// Enabling the MLIR bridge enables it for all graphs in this session.
- /// </summary>
- [pbr::OriginalName("MLIR_BRIDGE_ROLLOUT_ENABLED")] Enabled = 1,
- /// <summary>
- /// Disabling the MLIR bridge disables it for all graphs in this session.
- /// </summary>
- [pbr::OriginalName("MLIR_BRIDGE_ROLLOUT_DISABLED")] Disabled = 2,
- /// <summary>
- /// Enable the MLIR bridge on a per graph basis based on an analysis of
- /// the features used in the graph. If the features used by the graph are
- /// supported by the MLIR bridge, the MLIR bridge will be used to run the
- /// graph.
- /// </summary>
- [pbr::OriginalName("MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED")] SafeModeEnabled = 3,
- /// <summary>
- /// Enable the MLIR bridge in a fallback mode on a per graph basis based
- /// on an analysis of the features used in the graph.
- /// Running the MLIR bridge in the fallback mode means that it is
- /// executed and it commits all the changes to the TF graph in case
- /// of success. And it does not in case of failures and let the old bridge
- /// to process the TF graph.
- /// </summary>
- [pbr::OriginalName("MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED")] SafeModeFallbackEnabled = 4,
- }
-
- }
- #endregion
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// Options for a single Run() call.
- /// </summary>
- public sealed partial class RunOptions : pb::IMessage<RunOptions>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<RunOptions> _parser = new pb::MessageParser<RunOptions>(() => new RunOptions());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<RunOptions> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[7]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunOptions() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunOptions(RunOptions other) : this() {
- traceLevel_ = other.traceLevel_;
- timeoutInMs_ = other.timeoutInMs_;
- interOpThreadPool_ = other.interOpThreadPool_;
- outputPartitionGraphs_ = other.outputPartitionGraphs_;
- debugOptions_ = other.debugOptions_ != null ? other.debugOptions_.Clone() : null;
- reportTensorAllocationsUponOom_ = other.reportTensorAllocationsUponOom_;
- experimental_ = other.experimental_ != null ? other.experimental_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunOptions Clone() {
- return new RunOptions(this);
- }
-
- /// <summary>Field number for the "trace_level" field.</summary>
- public const int TraceLevelFieldNumber = 1;
- private global::Tensorflow.RunOptions.Types.TraceLevel traceLevel_ = global::Tensorflow.RunOptions.Types.TraceLevel.NoTrace;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.RunOptions.Types.TraceLevel TraceLevel {
- get { return traceLevel_; }
- set {
- traceLevel_ = value;
- }
- }
-
- /// <summary>Field number for the "timeout_in_ms" field.</summary>
- public const int TimeoutInMsFieldNumber = 2;
- private long timeoutInMs_;
- /// <summary>
- /// Time to wait for operation to complete in milliseconds.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long TimeoutInMs {
- get { return timeoutInMs_; }
- set {
- timeoutInMs_ = value;
- }
- }
-
- /// <summary>Field number for the "inter_op_thread_pool" field.</summary>
- public const int InterOpThreadPoolFieldNumber = 3;
- private int interOpThreadPool_;
- /// <summary>
- /// The thread pool to use, if session_inter_op_thread_pool is configured.
- /// To use the caller thread set this to -1 - this uses the caller thread
- /// to execute Session::Run() and thus avoids a context switch. Using the
- /// caller thread to execute Session::Run() should be done ONLY for simple
- /// graphs, where the overhead of an additional context switch is
- /// comparable with the overhead of Session::Run().
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int InterOpThreadPool {
- get { return interOpThreadPool_; }
- set {
- interOpThreadPool_ = value;
- }
- }
-
- /// <summary>Field number for the "output_partition_graphs" field.</summary>
- public const int OutputPartitionGraphsFieldNumber = 5;
- private bool outputPartitionGraphs_;
- /// <summary>
- /// Whether the partition graph(s) executed by the executor(s) should be
- /// outputted via RunMetadata.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool OutputPartitionGraphs {
- get { return outputPartitionGraphs_; }
- set {
- outputPartitionGraphs_ = value;
- }
- }
-
- /// <summary>Field number for the "debug_options" field.</summary>
- public const int DebugOptionsFieldNumber = 6;
- private global::Tensorflow.DebugOptions debugOptions_;
- /// <summary>
- /// EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.DebugOptions DebugOptions {
- get { return debugOptions_; }
- set {
- debugOptions_ = value;
- }
- }
-
- /// <summary>Field number for the "report_tensor_allocations_upon_oom" field.</summary>
- public const int ReportTensorAllocationsUponOomFieldNumber = 7;
- private bool reportTensorAllocationsUponOom_;
- /// <summary>
- /// When enabled, causes tensor allocation information to be included in
- /// the error message when the Run() call fails because the allocator ran
- /// out of memory (OOM).
- ///
- /// Enabling this option can slow down the Run() call.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool ReportTensorAllocationsUponOom {
- get { return reportTensorAllocationsUponOom_; }
- set {
- reportTensorAllocationsUponOom_ = value;
- }
- }
-
- /// <summary>Field number for the "experimental" field.</summary>
- public const int ExperimentalFieldNumber = 8;
- private global::Tensorflow.RunOptions.Types.Experimental experimental_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.RunOptions.Types.Experimental Experimental {
- get { return experimental_; }
- set {
- experimental_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as RunOptions);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(RunOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (TraceLevel != other.TraceLevel) return false;
- if (TimeoutInMs != other.TimeoutInMs) return false;
- if (InterOpThreadPool != other.InterOpThreadPool) return false;
- if (OutputPartitionGraphs != other.OutputPartitionGraphs) return false;
- if (!object.Equals(DebugOptions, other.DebugOptions)) return false;
- if (ReportTensorAllocationsUponOom != other.ReportTensorAllocationsUponOom) return false;
- if (!object.Equals(Experimental, other.Experimental)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (TraceLevel != global::Tensorflow.RunOptions.Types.TraceLevel.NoTrace) hash ^= TraceLevel.GetHashCode();
- if (TimeoutInMs != 0L) hash ^= TimeoutInMs.GetHashCode();
- if (InterOpThreadPool != 0) hash ^= InterOpThreadPool.GetHashCode();
- if (OutputPartitionGraphs != false) hash ^= OutputPartitionGraphs.GetHashCode();
- if (debugOptions_ != null) hash ^= DebugOptions.GetHashCode();
- if (ReportTensorAllocationsUponOom != false) hash ^= ReportTensorAllocationsUponOom.GetHashCode();
- if (experimental_ != null) hash ^= Experimental.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (TraceLevel != global::Tensorflow.RunOptions.Types.TraceLevel.NoTrace) {
- output.WriteRawTag(8);
- output.WriteEnum((int) TraceLevel);
- }
- if (TimeoutInMs != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(TimeoutInMs);
- }
- if (InterOpThreadPool != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(InterOpThreadPool);
- }
- if (OutputPartitionGraphs != false) {
- output.WriteRawTag(40);
- output.WriteBool(OutputPartitionGraphs);
- }
- if (debugOptions_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(DebugOptions);
- }
- if (ReportTensorAllocationsUponOom != false) {
- output.WriteRawTag(56);
- output.WriteBool(ReportTensorAllocationsUponOom);
- }
- if (experimental_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(Experimental);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (TraceLevel != global::Tensorflow.RunOptions.Types.TraceLevel.NoTrace) {
- output.WriteRawTag(8);
- output.WriteEnum((int) TraceLevel);
- }
- if (TimeoutInMs != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(TimeoutInMs);
- }
- if (InterOpThreadPool != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(InterOpThreadPool);
- }
- if (OutputPartitionGraphs != false) {
- output.WriteRawTag(40);
- output.WriteBool(OutputPartitionGraphs);
- }
- if (debugOptions_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(DebugOptions);
- }
- if (ReportTensorAllocationsUponOom != false) {
- output.WriteRawTag(56);
- output.WriteBool(ReportTensorAllocationsUponOom);
- }
- if (experimental_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(Experimental);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (TraceLevel != global::Tensorflow.RunOptions.Types.TraceLevel.NoTrace) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TraceLevel);
- }
- if (TimeoutInMs != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeoutInMs);
- }
- if (InterOpThreadPool != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(InterOpThreadPool);
- }
- if (OutputPartitionGraphs != false) {
- size += 1 + 1;
- }
- if (debugOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DebugOptions);
- }
- if (ReportTensorAllocationsUponOom != false) {
- size += 1 + 1;
- }
- if (experimental_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Experimental);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(RunOptions other) {
- if (other == null) {
- return;
- }
- if (other.TraceLevel != global::Tensorflow.RunOptions.Types.TraceLevel.NoTrace) {
- TraceLevel = other.TraceLevel;
- }
- if (other.TimeoutInMs != 0L) {
- TimeoutInMs = other.TimeoutInMs;
- }
- if (other.InterOpThreadPool != 0) {
- InterOpThreadPool = other.InterOpThreadPool;
- }
- if (other.OutputPartitionGraphs != false) {
- OutputPartitionGraphs = other.OutputPartitionGraphs;
- }
- if (other.debugOptions_ != null) {
- if (debugOptions_ == null) {
- DebugOptions = new global::Tensorflow.DebugOptions();
- }
- DebugOptions.MergeFrom(other.DebugOptions);
- }
- if (other.ReportTensorAllocationsUponOom != false) {
- ReportTensorAllocationsUponOom = other.ReportTensorAllocationsUponOom;
- }
- if (other.experimental_ != null) {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.RunOptions.Types.Experimental();
- }
- Experimental.MergeFrom(other.Experimental);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- TraceLevel = (global::Tensorflow.RunOptions.Types.TraceLevel) input.ReadEnum();
- break;
- }
- case 16: {
- TimeoutInMs = input.ReadInt64();
- break;
- }
- case 24: {
- InterOpThreadPool = input.ReadInt32();
- break;
- }
- case 40: {
- OutputPartitionGraphs = input.ReadBool();
- break;
- }
- case 50: {
- if (debugOptions_ == null) {
- DebugOptions = new global::Tensorflow.DebugOptions();
- }
- input.ReadMessage(DebugOptions);
- break;
- }
- case 56: {
- ReportTensorAllocationsUponOom = input.ReadBool();
- break;
- }
- case 66: {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.RunOptions.Types.Experimental();
- }
- input.ReadMessage(Experimental);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- TraceLevel = (global::Tensorflow.RunOptions.Types.TraceLevel) input.ReadEnum();
- break;
- }
- case 16: {
- TimeoutInMs = input.ReadInt64();
- break;
- }
- case 24: {
- InterOpThreadPool = input.ReadInt32();
- break;
- }
- case 40: {
- OutputPartitionGraphs = input.ReadBool();
- break;
- }
- case 50: {
- if (debugOptions_ == null) {
- DebugOptions = new global::Tensorflow.DebugOptions();
- }
- input.ReadMessage(DebugOptions);
- break;
- }
- case 56: {
- ReportTensorAllocationsUponOom = input.ReadBool();
- break;
- }
- case 66: {
- if (experimental_ == null) {
- Experimental = new global::Tensorflow.RunOptions.Types.Experimental();
- }
- input.ReadMessage(Experimental);
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the RunOptions message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- /// <summary>
- /// TODO(pbar) Turn this into a TraceOptions proto which allows
- /// tracing to be controlled in a more orthogonal manner?
- /// </summary>
- public enum TraceLevel {
- [pbr::OriginalName("NO_TRACE")] NoTrace = 0,
- [pbr::OriginalName("SOFTWARE_TRACE")] SoftwareTrace = 1,
- [pbr::OriginalName("HARDWARE_TRACE")] HardwareTrace = 2,
- [pbr::OriginalName("FULL_TRACE")] FullTrace = 3,
- }
-
- /// <summary>
- /// Everything inside Experimental is subject to change and is not subject
- /// to API stability guarantees in
- /// https://www.tensorflow.org/guide/version_compat.
- /// </summary>
- public sealed partial class Experimental : pb::IMessage<Experimental>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Experimental> _parser = new pb::MessageParser<Experimental>(() => new Experimental());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<Experimental> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.RunOptions.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental(Experimental other) : this() {
- collectiveGraphKey_ = other.collectiveGraphKey_;
- useRunHandlerPool_ = other.useRunHandlerPool_;
- runHandlerPoolOptions_ = other.runHandlerPoolOptions_ != null ? other.runHandlerPoolOptions_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Experimental Clone() {
- return new Experimental(this);
- }
-
- /// <summary>Field number for the "collective_graph_key" field.</summary>
- public const int CollectiveGraphKeyFieldNumber = 1;
- private long collectiveGraphKey_;
- /// <summary>
- /// If non-zero, declares that this graph is going to use collective
- /// ops and must synchronize step_ids with any other graph with this
- /// same group_key value (in a distributed computation where tasks
- /// run disjoint graphs).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long CollectiveGraphKey {
- get { return collectiveGraphKey_; }
- set {
- collectiveGraphKey_ = value;
- }
- }
-
- /// <summary>Field number for the "use_run_handler_pool" field.</summary>
- public const int UseRunHandlerPoolFieldNumber = 2;
- private bool useRunHandlerPool_;
- /// <summary>
- /// If true, then operations (using the inter-op pool) across all
- /// session::run() calls will be centrally scheduled, optimizing for (median
- /// and tail) latency.
- /// Consider using this option for CPU-bound workloads like inference.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool UseRunHandlerPool {
- get { return useRunHandlerPool_; }
- set {
- useRunHandlerPool_ = value;
- }
- }
-
- /// <summary>Field number for the "run_handler_pool_options" field.</summary>
- public const int RunHandlerPoolOptionsFieldNumber = 3;
- private global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions runHandlerPoolOptions_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions RunHandlerPoolOptions {
- get { return runHandlerPoolOptions_; }
- set {
- runHandlerPoolOptions_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as Experimental);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(Experimental other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (CollectiveGraphKey != other.CollectiveGraphKey) return false;
- if (UseRunHandlerPool != other.UseRunHandlerPool) return false;
- if (!object.Equals(RunHandlerPoolOptions, other.RunHandlerPoolOptions)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (CollectiveGraphKey != 0L) hash ^= CollectiveGraphKey.GetHashCode();
- if (UseRunHandlerPool != false) hash ^= UseRunHandlerPool.GetHashCode();
- if (runHandlerPoolOptions_ != null) hash ^= RunHandlerPoolOptions.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (CollectiveGraphKey != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(CollectiveGraphKey);
- }
- if (UseRunHandlerPool != false) {
- output.WriteRawTag(16);
- output.WriteBool(UseRunHandlerPool);
- }
- if (runHandlerPoolOptions_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(RunHandlerPoolOptions);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (CollectiveGraphKey != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(CollectiveGraphKey);
- }
- if (UseRunHandlerPool != false) {
- output.WriteRawTag(16);
- output.WriteBool(UseRunHandlerPool);
- }
- if (runHandlerPoolOptions_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(RunHandlerPoolOptions);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (CollectiveGraphKey != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(CollectiveGraphKey);
- }
- if (UseRunHandlerPool != false) {
- size += 1 + 1;
- }
- if (runHandlerPoolOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RunHandlerPoolOptions);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(Experimental other) {
- if (other == null) {
- return;
- }
- if (other.CollectiveGraphKey != 0L) {
- CollectiveGraphKey = other.CollectiveGraphKey;
- }
- if (other.UseRunHandlerPool != false) {
- UseRunHandlerPool = other.UseRunHandlerPool;
- }
- if (other.runHandlerPoolOptions_ != null) {
- if (runHandlerPoolOptions_ == null) {
- RunHandlerPoolOptions = new global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions();
- }
- RunHandlerPoolOptions.MergeFrom(other.RunHandlerPoolOptions);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- CollectiveGraphKey = input.ReadInt64();
- break;
- }
- case 16: {
- UseRunHandlerPool = input.ReadBool();
- break;
- }
- case 26: {
- if (runHandlerPoolOptions_ == null) {
- RunHandlerPoolOptions = new global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions();
- }
- input.ReadMessage(RunHandlerPoolOptions);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- CollectiveGraphKey = input.ReadInt64();
- break;
- }
- case 16: {
- UseRunHandlerPool = input.ReadBool();
- break;
- }
- case 26: {
- if (runHandlerPoolOptions_ == null) {
- RunHandlerPoolOptions = new global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions();
- }
- input.ReadMessage(RunHandlerPoolOptions);
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the Experimental message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- /// <summary>
- /// Options for run handler thread pool.
- /// </summary>
- public sealed partial class RunHandlerPoolOptions : pb::IMessage<RunHandlerPoolOptions>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<RunHandlerPoolOptions> _parser = new pb::MessageParser<RunHandlerPoolOptions>(() => new RunHandlerPoolOptions());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<RunHandlerPoolOptions> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.RunOptions.Types.Experimental.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunHandlerPoolOptions() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunHandlerPoolOptions(RunHandlerPoolOptions other) : this() {
- priority_ = other.priority_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunHandlerPoolOptions Clone() {
- return new RunHandlerPoolOptions(this);
- }
-
- /// <summary>Field number for the "priority" field.</summary>
- public const int PriorityFieldNumber = 1;
- private long priority_;
- /// <summary>
- /// Priority of the request. The run handler thread pool will schedule ops
- /// based on the priority number. The larger number means higher priority.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public long Priority {
- get { return priority_; }
- set {
- priority_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as RunHandlerPoolOptions);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(RunHandlerPoolOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Priority != other.Priority) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Priority != 0L) hash ^= Priority.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Priority != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Priority);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Priority != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Priority);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Priority != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Priority);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(RunHandlerPoolOptions other) {
- if (other == null) {
- return;
- }
- if (other.Priority != 0L) {
- Priority = other.Priority;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Priority = input.ReadInt64();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- Priority = input.ReadInt64();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- }
- #endregion
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// Metadata output (i.e., non-Tensor) for a single Run() call.
- /// </summary>
- public sealed partial class RunMetadata : pb::IMessage<RunMetadata>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<RunMetadata> _parser = new pb::MessageParser<RunMetadata>(() => new RunMetadata());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<RunMetadata> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[8]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunMetadata() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunMetadata(RunMetadata other) : this() {
- stepStats_ = other.stepStats_ != null ? other.stepStats_.Clone() : null;
- costGraph_ = other.costGraph_ != null ? other.costGraph_.Clone() : null;
- partitionGraphs_ = other.partitionGraphs_.Clone();
- functionGraphs_ = other.functionGraphs_.Clone();
- sessionMetadata_ = other.sessionMetadata_ != null ? other.sessionMetadata_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public RunMetadata Clone() {
- return new RunMetadata(this);
- }
-
- /// <summary>Field number for the "step_stats" field.</summary>
- public const int StepStatsFieldNumber = 1;
- private global::Tensorflow.StepStats stepStats_;
- /// <summary>
- /// Statistics traced for this step. Populated if tracing is turned on via the
- /// "RunOptions" proto.
- /// EXPERIMENTAL: The format and set of events may change in future versions.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.StepStats StepStats {
- get { return stepStats_; }
- set {
- stepStats_ = value;
- }
- }
-
- /// <summary>Field number for the "cost_graph" field.</summary>
- public const int CostGraphFieldNumber = 2;
- private global::Tensorflow.CostGraphDef costGraph_;
- /// <summary>
- /// The cost graph for the computation defined by the run call.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.CostGraphDef CostGraph {
- get { return costGraph_; }
- set {
- costGraph_ = value;
- }
- }
-
- /// <summary>Field number for the "partition_graphs" field.</summary>
- public const int PartitionGraphsFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Tensorflow.GraphDef> _repeated_partitionGraphs_codec
- = pb::FieldCodec.ForMessage(26, global::Tensorflow.GraphDef.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.GraphDef> partitionGraphs_ = new pbc::RepeatedField<global::Tensorflow.GraphDef>();
- /// <summary>
- /// Graphs of the partitions executed by executors.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.GraphDef> PartitionGraphs {
- get { return partitionGraphs_; }
- }
-
- /// <summary>Field number for the "function_graphs" field.</summary>
- public const int FunctionGraphsFieldNumber = 4;
- private static readonly pb::FieldCodec<global::Tensorflow.RunMetadata.Types.FunctionGraphs> _repeated_functionGraphs_codec
- = pb::FieldCodec.ForMessage(34, global::Tensorflow.RunMetadata.Types.FunctionGraphs.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.RunMetadata.Types.FunctionGraphs> functionGraphs_ = new pbc::RepeatedField<global::Tensorflow.RunMetadata.Types.FunctionGraphs>();
- /// <summary>
- /// This is only populated for graphs that are run as functions in TensorFlow
- /// V2. There will be an entry below for each function that is traced.
- /// The main use cases of the post_optimization_graph and the partition_graphs
- /// is to give the caller insight into the graphs that were actually run by the
- /// runtime. Additional information (such as those in step_stats) will match
- /// these graphs.
- /// We also include the pre_optimization_graph since it is usually easier to
- /// read, and is helpful in situations where the caller wants to get a high
- /// level idea of what the built graph looks like (since the various graph
- /// optimization passes might change the structure of the graph significantly).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.RunMetadata.Types.FunctionGraphs> FunctionGraphs {
- get { return functionGraphs_; }
- }
-
- /// <summary>Field number for the "session_metadata" field.</summary>
- public const int SessionMetadataFieldNumber = 5;
- private global::Tensorflow.SessionMetadata sessionMetadata_;
- /// <summary>
- /// Metadata about the session.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.SessionMetadata SessionMetadata {
- get { return sessionMetadata_; }
- set {
- sessionMetadata_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as RunMetadata);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(RunMetadata other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(StepStats, other.StepStats)) return false;
- if (!object.Equals(CostGraph, other.CostGraph)) return false;
- if(!partitionGraphs_.Equals(other.partitionGraphs_)) return false;
- if(!functionGraphs_.Equals(other.functionGraphs_)) return false;
- if (!object.Equals(SessionMetadata, other.SessionMetadata)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (stepStats_ != null) hash ^= StepStats.GetHashCode();
- if (costGraph_ != null) hash ^= CostGraph.GetHashCode();
- hash ^= partitionGraphs_.GetHashCode();
- hash ^= functionGraphs_.GetHashCode();
- if (sessionMetadata_ != null) hash ^= SessionMetadata.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (stepStats_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(StepStats);
- }
- if (costGraph_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(CostGraph);
- }
- partitionGraphs_.WriteTo(output, _repeated_partitionGraphs_codec);
- functionGraphs_.WriteTo(output, _repeated_functionGraphs_codec);
- if (sessionMetadata_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(SessionMetadata);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (stepStats_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(StepStats);
- }
- if (costGraph_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(CostGraph);
- }
- partitionGraphs_.WriteTo(ref output, _repeated_partitionGraphs_codec);
- functionGraphs_.WriteTo(ref output, _repeated_functionGraphs_codec);
- if (sessionMetadata_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(SessionMetadata);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (stepStats_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepStats);
- }
- if (costGraph_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostGraph);
- }
- size += partitionGraphs_.CalculateSize(_repeated_partitionGraphs_codec);
- size += functionGraphs_.CalculateSize(_repeated_functionGraphs_codec);
- if (sessionMetadata_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SessionMetadata);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(RunMetadata other) {
- if (other == null) {
- return;
- }
- if (other.stepStats_ != null) {
- if (stepStats_ == null) {
- StepStats = new global::Tensorflow.StepStats();
- }
- StepStats.MergeFrom(other.StepStats);
- }
- if (other.costGraph_ != null) {
- if (costGraph_ == null) {
- CostGraph = new global::Tensorflow.CostGraphDef();
- }
- CostGraph.MergeFrom(other.CostGraph);
- }
- partitionGraphs_.Add(other.partitionGraphs_);
- functionGraphs_.Add(other.functionGraphs_);
- if (other.sessionMetadata_ != null) {
- if (sessionMetadata_ == null) {
- SessionMetadata = new global::Tensorflow.SessionMetadata();
- }
- SessionMetadata.MergeFrom(other.SessionMetadata);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (stepStats_ == null) {
- StepStats = new global::Tensorflow.StepStats();
- }
- input.ReadMessage(StepStats);
- break;
- }
- case 18: {
- if (costGraph_ == null) {
- CostGraph = new global::Tensorflow.CostGraphDef();
- }
- input.ReadMessage(CostGraph);
- break;
- }
- case 26: {
- partitionGraphs_.AddEntriesFrom(input, _repeated_partitionGraphs_codec);
- break;
- }
- case 34: {
- functionGraphs_.AddEntriesFrom(input, _repeated_functionGraphs_codec);
- break;
- }
- case 42: {
- if (sessionMetadata_ == null) {
- SessionMetadata = new global::Tensorflow.SessionMetadata();
- }
- input.ReadMessage(SessionMetadata);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- if (stepStats_ == null) {
- StepStats = new global::Tensorflow.StepStats();
- }
- input.ReadMessage(StepStats);
- break;
- }
- case 18: {
- if (costGraph_ == null) {
- CostGraph = new global::Tensorflow.CostGraphDef();
- }
- input.ReadMessage(CostGraph);
- break;
- }
- case 26: {
- partitionGraphs_.AddEntriesFrom(ref input, _repeated_partitionGraphs_codec);
- break;
- }
- case 34: {
- functionGraphs_.AddEntriesFrom(ref input, _repeated_functionGraphs_codec);
- break;
- }
- case 42: {
- if (sessionMetadata_ == null) {
- SessionMetadata = new global::Tensorflow.SessionMetadata();
- }
- input.ReadMessage(SessionMetadata);
- break;
- }
- }
- }
- }
- #endif
-
- #region Nested types
- /// <summary>Container for nested types declared in the RunMetadata message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- public sealed partial class FunctionGraphs : pb::IMessage<FunctionGraphs>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<FunctionGraphs> _parser = new pb::MessageParser<FunctionGraphs>(() => new FunctionGraphs());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<FunctionGraphs> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.RunMetadata.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public FunctionGraphs() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public FunctionGraphs(FunctionGraphs other) : this() {
- partitionGraphs_ = other.partitionGraphs_.Clone();
- preOptimizationGraph_ = other.preOptimizationGraph_ != null ? other.preOptimizationGraph_.Clone() : null;
- postOptimizationGraph_ = other.postOptimizationGraph_ != null ? other.postOptimizationGraph_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public FunctionGraphs Clone() {
- return new FunctionGraphs(this);
- }
-
- /// <summary>Field number for the "partition_graphs" field.</summary>
- public const int PartitionGraphsFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.GraphDef> _repeated_partitionGraphs_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.GraphDef.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.GraphDef> partitionGraphs_ = new pbc::RepeatedField<global::Tensorflow.GraphDef>();
- /// <summary>
- /// TODO(nareshmodi): Include some sort of function/cache-key identifier?
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.GraphDef> PartitionGraphs {
- get { return partitionGraphs_; }
- }
-
- /// <summary>Field number for the "pre_optimization_graph" field.</summary>
- public const int PreOptimizationGraphFieldNumber = 2;
- private global::Tensorflow.GraphDef preOptimizationGraph_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.GraphDef PreOptimizationGraph {
- get { return preOptimizationGraph_; }
- set {
- preOptimizationGraph_ = value;
- }
- }
-
- /// <summary>Field number for the "post_optimization_graph" field.</summary>
- public const int PostOptimizationGraphFieldNumber = 3;
- private global::Tensorflow.GraphDef postOptimizationGraph_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.GraphDef PostOptimizationGraph {
- get { return postOptimizationGraph_; }
- set {
- postOptimizationGraph_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as FunctionGraphs);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(FunctionGraphs other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!partitionGraphs_.Equals(other.partitionGraphs_)) return false;
- if (!object.Equals(PreOptimizationGraph, other.PreOptimizationGraph)) return false;
- if (!object.Equals(PostOptimizationGraph, other.PostOptimizationGraph)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= partitionGraphs_.GetHashCode();
- if (preOptimizationGraph_ != null) hash ^= PreOptimizationGraph.GetHashCode();
- if (postOptimizationGraph_ != null) hash ^= PostOptimizationGraph.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- partitionGraphs_.WriteTo(output, _repeated_partitionGraphs_codec);
- if (preOptimizationGraph_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(PreOptimizationGraph);
- }
- if (postOptimizationGraph_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(PostOptimizationGraph);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- partitionGraphs_.WriteTo(ref output, _repeated_partitionGraphs_codec);
- if (preOptimizationGraph_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(PreOptimizationGraph);
- }
- if (postOptimizationGraph_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(PostOptimizationGraph);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += partitionGraphs_.CalculateSize(_repeated_partitionGraphs_codec);
- if (preOptimizationGraph_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreOptimizationGraph);
- }
- if (postOptimizationGraph_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostOptimizationGraph);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(FunctionGraphs other) {
- if (other == null) {
- return;
- }
- partitionGraphs_.Add(other.partitionGraphs_);
- if (other.preOptimizationGraph_ != null) {
- if (preOptimizationGraph_ == null) {
- PreOptimizationGraph = new global::Tensorflow.GraphDef();
- }
- PreOptimizationGraph.MergeFrom(other.PreOptimizationGraph);
- }
- if (other.postOptimizationGraph_ != null) {
- if (postOptimizationGraph_ == null) {
- PostOptimizationGraph = new global::Tensorflow.GraphDef();
- }
- PostOptimizationGraph.MergeFrom(other.PostOptimizationGraph);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- partitionGraphs_.AddEntriesFrom(input, _repeated_partitionGraphs_codec);
- break;
- }
- case 18: {
- if (preOptimizationGraph_ == null) {
- PreOptimizationGraph = new global::Tensorflow.GraphDef();
- }
- input.ReadMessage(PreOptimizationGraph);
- break;
- }
- case 26: {
- if (postOptimizationGraph_ == null) {
- PostOptimizationGraph = new global::Tensorflow.GraphDef();
- }
- input.ReadMessage(PostOptimizationGraph);
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- partitionGraphs_.AddEntriesFrom(ref input, _repeated_partitionGraphs_codec);
- break;
- }
- case 18: {
- if (preOptimizationGraph_ == null) {
- PreOptimizationGraph = new global::Tensorflow.GraphDef();
- }
- input.ReadMessage(PreOptimizationGraph);
- break;
- }
- case 26: {
- if (postOptimizationGraph_ == null) {
- PostOptimizationGraph = new global::Tensorflow.GraphDef();
- }
- input.ReadMessage(PostOptimizationGraph);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// Defines a connection between two tensors in a `GraphDef`.
- /// </summary>
- public sealed partial class TensorConnection : pb::IMessage<TensorConnection>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<TensorConnection> _parser = new pb::MessageParser<TensorConnection>(() => new TensorConnection());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<TensorConnection> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[9]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TensorConnection() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TensorConnection(TensorConnection other) : this() {
- fromTensor_ = other.fromTensor_;
- toTensor_ = other.toTensor_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public TensorConnection Clone() {
- return new TensorConnection(this);
- }
-
- /// <summary>Field number for the "from_tensor" field.</summary>
- public const int FromTensorFieldNumber = 1;
- private string fromTensor_ = "";
- /// <summary>
- /// A tensor name. The value of this tensor will be substituted for
- /// the tensor named in `to_tensor`.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string FromTensor {
- get { return fromTensor_; }
- set {
- fromTensor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "to_tensor" field.</summary>
- public const int ToTensorFieldNumber = 2;
- private string toTensor_ = "";
- /// <summary>
- /// A tensor name. The value of this tensor will be bound to the
- /// value of the tensor named in `from_tensor`.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string ToTensor {
- get { return toTensor_; }
- set {
- toTensor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as TensorConnection);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(TensorConnection other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FromTensor != other.FromTensor) return false;
- if (ToTensor != other.ToTensor) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (FromTensor.Length != 0) hash ^= FromTensor.GetHashCode();
- if (ToTensor.Length != 0) hash ^= ToTensor.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (FromTensor.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(FromTensor);
- }
- if (ToTensor.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(ToTensor);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (FromTensor.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(FromTensor);
- }
- if (ToTensor.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(ToTensor);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (FromTensor.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FromTensor);
- }
- if (ToTensor.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(ToTensor);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(TensorConnection other) {
- if (other == null) {
- return;
- }
- if (other.FromTensor.Length != 0) {
- FromTensor = other.FromTensor;
- }
- if (other.ToTensor.Length != 0) {
- ToTensor = other.ToTensor;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- FromTensor = input.ReadString();
- break;
- }
- case 18: {
- ToTensor = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- FromTensor = input.ReadString();
- break;
- }
- case 18: {
- ToTensor = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- /// <summary>
- /// Defines a subgraph in another `GraphDef` as a set of feed points and nodes
- /// to be fetched or executed.
- ///
- /// Compare with the arguments to `Session::Run()`.
- /// </summary>
- public sealed partial class CallableOptions : pb::IMessage<CallableOptions>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<CallableOptions> _parser = new pb::MessageParser<CallableOptions>(() => new CallableOptions());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<CallableOptions> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.ConfigReflection.Descriptor.MessageTypes[10]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CallableOptions() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CallableOptions(CallableOptions other) : this() {
- feed_ = other.feed_.Clone();
- fetch_ = other.fetch_.Clone();
- target_ = other.target_.Clone();
- runOptions_ = other.runOptions_ != null ? other.runOptions_.Clone() : null;
- tensorConnection_ = other.tensorConnection_.Clone();
- feedDevices_ = other.feedDevices_.Clone();
- fetchDevices_ = other.fetchDevices_.Clone();
- fetchSkipSync_ = other.fetchSkipSync_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public CallableOptions Clone() {
- return new CallableOptions(this);
- }
-
- /// <summary>Field number for the "feed" field.</summary>
- public const int FeedFieldNumber = 1;
- private static readonly pb::FieldCodec<string> _repeated_feed_codec
- = pb::FieldCodec.ForString(10);
- private readonly pbc::RepeatedField<string> feed_ = new pbc::RepeatedField<string>();
- /// <summary>
- /// Tensors to be fed in the callable. Each feed is the name of a tensor.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<string> Feed {
- get { return feed_; }
- }
-
- /// <summary>Field number for the "fetch" field.</summary>
- public const int FetchFieldNumber = 2;
- private static readonly pb::FieldCodec<string> _repeated_fetch_codec
- = pb::FieldCodec.ForString(18);
- private readonly pbc::RepeatedField<string> fetch_ = new pbc::RepeatedField<string>();
- /// <summary>
- /// Fetches. A list of tensor names. The caller of the callable expects a
- /// tensor to be returned for each fetch[i] (see RunStepResponse.tensor). The
- /// order of specified fetches does not change the execution order.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<string> Fetch {
- get { return fetch_; }
- }
-
- /// <summary>Field number for the "target" field.</summary>
- public const int TargetFieldNumber = 3;
- private static readonly pb::FieldCodec<string> _repeated_target_codec
- = pb::FieldCodec.ForString(26);
- private readonly pbc::RepeatedField<string> target_ = new pbc::RepeatedField<string>();
- /// <summary>
- /// Target Nodes. A list of node names. The named nodes will be run by the
- /// callable but their outputs will not be returned.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<string> Target {
- get { return target_; }
- }
-
- /// <summary>Field number for the "run_options" field.</summary>
- public const int RunOptionsFieldNumber = 4;
- private global::Tensorflow.RunOptions runOptions_;
- /// <summary>
- /// Options that will be applied to each run.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Tensorflow.RunOptions RunOptions {
- get { return runOptions_; }
- set {
- runOptions_ = value;
- }
- }
-
- /// <summary>Field number for the "tensor_connection" field.</summary>
- public const int TensorConnectionFieldNumber = 5;
- private static readonly pb::FieldCodec<global::Tensorflow.TensorConnection> _repeated_tensorConnection_codec
- = pb::FieldCodec.ForMessage(42, global::Tensorflow.TensorConnection.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.TensorConnection> tensorConnection_ = new pbc::RepeatedField<global::Tensorflow.TensorConnection>();
- /// <summary>
- /// Tensors to be connected in the callable. Each TensorConnection denotes
- /// a pair of tensors in the graph, between which an edge will be created
- /// in the callable.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Tensorflow.TensorConnection> TensorConnection {
- get { return tensorConnection_; }
- }
-
- /// <summary>Field number for the "feed_devices" field.</summary>
- public const int FeedDevicesFieldNumber = 6;
- private static readonly pbc::MapField<string, string>.Codec _map_feedDevices_codec
- = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50);
- private readonly pbc::MapField<string, string> feedDevices_ = new pbc::MapField<string, string>();
- /// <summary>
- /// The Tensor objects fed in the callable and fetched from the callable
- /// are expected to be backed by host (CPU) memory by default.
- ///
- /// The options below allow changing that - feeding tensors backed by
- /// device memory, or returning tensors that are backed by device memory.
- ///
- /// The maps below map the name of a feed/fetch tensor (which appears in
- /// 'feed' or 'fetch' fields above), to the fully qualified name of the device
- /// owning the memory backing the contents of the tensor.
- ///
- /// For example, creating a callable with the following options:
- ///
- /// CallableOptions {
- /// feed: "a:0"
- /// feed: "b:0"
- ///
- /// fetch: "x:0"
- /// fetch: "y:0"
- ///
- /// feed_devices: {
- /// "a:0": "/job:localhost/replica:0/task:0/device:GPU:0"
- /// }
- ///
- /// fetch_devices: {
- /// "y:0": "/job:localhost/replica:0/task:0/device:GPU:0"
- /// }
- /// }
- ///
- /// means that the Callable expects:
- /// - The first argument ("a:0") is a Tensor backed by GPU memory.
- /// - The second argument ("b:0") is a Tensor backed by host memory.
- /// and of its return values:
- /// - The first output ("x:0") will be backed by host memory.
- /// - The second output ("y:0") will be backed by GPU memory.
- ///
- /// FEEDS:
- /// It is the responsibility of the caller to ensure that the memory of the fed
- /// tensors will be correctly initialized and synchronized before it is
- /// accessed by operations executed during the call to Session::RunCallable().
- ///
- /// This is typically ensured by using the TensorFlow memory allocators
- /// (Device::GetAllocator()) to create the Tensor to be fed.
- ///
- /// Alternatively, for CUDA-enabled GPU devices, this typically means that the
- /// operation that produced the contents of the tensor has completed, i.e., the
- /// CUDA stream has been synchronized (e.g., via cuCtxSynchronize() or
- /// cuStreamSynchronize()).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::MapField<string, string> FeedDevices {
- get { return feedDevices_; }
- }
-
- /// <summary>Field number for the "fetch_devices" field.</summary>
- public const int FetchDevicesFieldNumber = 7;
- private static readonly pbc::MapField<string, string>.Codec _map_fetchDevices_codec
- = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58);
- private readonly pbc::MapField<string, string> fetchDevices_ = new pbc::MapField<string, string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::MapField<string, string> FetchDevices {
- get { return fetchDevices_; }
- }
-
- /// <summary>Field number for the "fetch_skip_sync" field.</summary>
- public const int FetchSkipSyncFieldNumber = 8;
- private bool fetchSkipSync_;
- /// <summary>
- /// By default, RunCallable() will synchronize the GPU stream before returning
- /// fetched tensors on a GPU device, to ensure that the values in those tensors
- /// have been produced. This simplifies interacting with the tensors, but
- /// potentially incurs a performance hit.
- ///
- /// If this options is set to true, the caller is responsible for ensuring
- /// that the values in the fetched tensors have been produced before they are
- /// used. The caller can do this by invoking `Device::Sync()` on the underlying
- /// device(s), or by feeding the tensors back to the same Session using
- /// `feed_devices` with the same corresponding device name.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool FetchSkipSync {
- get { return fetchSkipSync_; }
- set {
- fetchSkipSync_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as CallableOptions);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(CallableOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!feed_.Equals(other.feed_)) return false;
- if(!fetch_.Equals(other.fetch_)) return false;
- if(!target_.Equals(other.target_)) return false;
- if (!object.Equals(RunOptions, other.RunOptions)) return false;
- if(!tensorConnection_.Equals(other.tensorConnection_)) return false;
- if (!FeedDevices.Equals(other.FeedDevices)) return false;
- if (!FetchDevices.Equals(other.FetchDevices)) return false;
- if (FetchSkipSync != other.FetchSkipSync) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= feed_.GetHashCode();
- hash ^= fetch_.GetHashCode();
- hash ^= target_.GetHashCode();
- if (runOptions_ != null) hash ^= RunOptions.GetHashCode();
- hash ^= tensorConnection_.GetHashCode();
- hash ^= FeedDevices.GetHashCode();
- hash ^= FetchDevices.GetHashCode();
- if (FetchSkipSync != false) hash ^= FetchSkipSync.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- feed_.WriteTo(output, _repeated_feed_codec);
- fetch_.WriteTo(output, _repeated_fetch_codec);
- target_.WriteTo(output, _repeated_target_codec);
- if (runOptions_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(RunOptions);
- }
- tensorConnection_.WriteTo(output, _repeated_tensorConnection_codec);
- feedDevices_.WriteTo(output, _map_feedDevices_codec);
- fetchDevices_.WriteTo(output, _map_fetchDevices_codec);
- if (FetchSkipSync != false) {
- output.WriteRawTag(64);
- output.WriteBool(FetchSkipSync);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- feed_.WriteTo(ref output, _repeated_feed_codec);
- fetch_.WriteTo(ref output, _repeated_fetch_codec);
- target_.WriteTo(ref output, _repeated_target_codec);
- if (runOptions_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(RunOptions);
- }
- tensorConnection_.WriteTo(ref output, _repeated_tensorConnection_codec);
- feedDevices_.WriteTo(ref output, _map_feedDevices_codec);
- fetchDevices_.WriteTo(ref output, _map_fetchDevices_codec);
- if (FetchSkipSync != false) {
- output.WriteRawTag(64);
- output.WriteBool(FetchSkipSync);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += feed_.CalculateSize(_repeated_feed_codec);
- size += fetch_.CalculateSize(_repeated_fetch_codec);
- size += target_.CalculateSize(_repeated_target_codec);
- if (runOptions_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RunOptions);
- }
- size += tensorConnection_.CalculateSize(_repeated_tensorConnection_codec);
- size += feedDevices_.CalculateSize(_map_feedDevices_codec);
- size += fetchDevices_.CalculateSize(_map_fetchDevices_codec);
- if (FetchSkipSync != false) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(CallableOptions other) {
- if (other == null) {
- return;
- }
- feed_.Add(other.feed_);
- fetch_.Add(other.fetch_);
- target_.Add(other.target_);
- if (other.runOptions_ != null) {
- if (runOptions_ == null) {
- RunOptions = new global::Tensorflow.RunOptions();
- }
- RunOptions.MergeFrom(other.RunOptions);
- }
- tensorConnection_.Add(other.tensorConnection_);
- feedDevices_.Add(other.feedDevices_);
- fetchDevices_.Add(other.fetchDevices_);
- if (other.FetchSkipSync != false) {
- FetchSkipSync = other.FetchSkipSync;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- feed_.AddEntriesFrom(input, _repeated_feed_codec);
- break;
- }
- case 18: {
- fetch_.AddEntriesFrom(input, _repeated_fetch_codec);
- break;
- }
- case 26: {
- target_.AddEntriesFrom(input, _repeated_target_codec);
- break;
- }
- case 34: {
- if (runOptions_ == null) {
- RunOptions = new global::Tensorflow.RunOptions();
- }
- input.ReadMessage(RunOptions);
- break;
- }
- case 42: {
- tensorConnection_.AddEntriesFrom(input, _repeated_tensorConnection_codec);
- break;
- }
- case 50: {
- feedDevices_.AddEntriesFrom(input, _map_feedDevices_codec);
- break;
- }
- case 58: {
- fetchDevices_.AddEntriesFrom(input, _map_fetchDevices_codec);
- break;
- }
- case 64: {
- FetchSkipSync = input.ReadBool();
- break;
- }
- }
- }
- #endif
- }
-
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- feed_.AddEntriesFrom(ref input, _repeated_feed_codec);
- break;
- }
- case 18: {
- fetch_.AddEntriesFrom(ref input, _repeated_fetch_codec);
- break;
- }
- case 26: {
- target_.AddEntriesFrom(ref input, _repeated_target_codec);
- break;
- }
- case 34: {
- if (runOptions_ == null) {
- RunOptions = new global::Tensorflow.RunOptions();
- }
- input.ReadMessage(RunOptions);
- break;
- }
- case 42: {
- tensorConnection_.AddEntriesFrom(ref input, _repeated_tensorConnection_codec);
- break;
- }
- case 50: {
- feedDevices_.AddEntriesFrom(ref input, _map_feedDevices_codec);
- break;
- }
- case 58: {
- fetchDevices_.AddEntriesFrom(ref input, _map_fetchDevices_codec);
- break;
- }
- case 64: {
- FetchSkipSync = input.ReadBool();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
- }
-
- #endregion Designer generated code
|