| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694 |
- var $root = protobuf.get('tf');
- $root.tensorflow = {};
- $root.tensorflow.SavedModel = class SavedModel {
- constructor() {
- this.meta_graphs = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedModel();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.saved_model_schema_version = reader.int64();
- break;
- case 2:
- message.meta_graphs.push($root.tensorflow.MetaGraphDef.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedModel();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "saved_model_schema_version":
- message.saved_model_schema_version = reader.int64();
- break;
- case "meta_graphs":
- message.meta_graphs.push($root.tensorflow.MetaGraphDef.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedModel.prototype.saved_model_schema_version = protobuf.Int64.create(0);
- $root.tensorflow.MetaGraphDef = class MetaGraphDef {
- constructor() {
- this.collection_def = {};
- this.signature_def = {};
- this.asset_file_def = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.MetaGraphDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.meta_info_def = $root.tensorflow.MetaGraphDef.MetaInfoDef.decode(reader, reader.uint32());
- break;
- case 2:
- message.graph_def = $root.tensorflow.GraphDef.decode(reader, reader.uint32());
- break;
- case 3:
- message.saver_def = $root.tensorflow.SaverDef.decode(reader, reader.uint32());
- break;
- case 4:
- reader.entry(message.collection_def, () => reader.string(), () => $root.tensorflow.CollectionDef.decode(reader, reader.uint32()));
- break;
- case 5:
- reader.entry(message.signature_def, () => reader.string(), () => $root.tensorflow.SignatureDef.decode(reader, reader.uint32()));
- break;
- case 6:
- message.asset_file_def.push($root.tensorflow.AssetFileDef.decode(reader, reader.uint32()));
- break;
- case 7:
- message.object_graph_def = $root.tensorflow.SavedObjectGraph.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.MetaGraphDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "meta_info_def":
- message.meta_info_def = $root.tensorflow.MetaGraphDef.MetaInfoDef.decodeText(reader);
- break;
- case "graph_def":
- message.graph_def = $root.tensorflow.GraphDef.decodeText(reader);
- break;
- case "saver_def":
- message.saver_def = $root.tensorflow.SaverDef.decodeText(reader);
- break;
- case "collection_def":
- reader.entry(message.collection_def, () => reader.string(), () => $root.tensorflow.CollectionDef.decodeText(reader));
- break;
- case "signature_def":
- reader.entry(message.signature_def, () => reader.string(), () => $root.tensorflow.SignatureDef.decodeText(reader));
- break;
- case "asset_file_def":
- message.asset_file_def.push($root.tensorflow.AssetFileDef.decodeText(reader));
- break;
- case "object_graph_def":
- message.object_graph_def = $root.tensorflow.SavedObjectGraph.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.MetaGraphDef.prototype.meta_info_def = null;
- $root.tensorflow.MetaGraphDef.prototype.graph_def = null;
- $root.tensorflow.MetaGraphDef.prototype.saver_def = null;
- $root.tensorflow.MetaGraphDef.prototype.object_graph_def = null;
- $root.tensorflow.MetaGraphDef.MetaInfoDef = class MetaInfoDef {
- constructor() {
- this.tags = [];
- this.function_aliases = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.MetaGraphDef.MetaInfoDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.meta_graph_version = reader.string();
- break;
- case 2:
- message.stripped_op_list = $root.tensorflow.OpList.decode(reader, reader.uint32());
- break;
- case 3:
- message.any_info = $root.google.protobuf.Any.decode(reader, reader.uint32());
- break;
- case 4:
- message.tags.push(reader.string());
- break;
- case 5:
- message.tensorflow_version = reader.string();
- break;
- case 6:
- message.tensorflow_git_version = reader.string();
- break;
- case 7:
- message.stripped_default_attrs = reader.bool();
- break;
- case 8:
- reader.entry(message.function_aliases, () => reader.string(), () => reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.MetaGraphDef.MetaInfoDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "meta_graph_version":
- message.meta_graph_version = reader.string();
- break;
- case "stripped_op_list":
- message.stripped_op_list = $root.tensorflow.OpList.decodeText(reader);
- break;
- case "any_info":
- message.any_info = $root.google.protobuf.Any.decodeText(reader);
- break;
- case "tags":
- reader.array(message.tags, () => reader.string());
- break;
- case "tensorflow_version":
- message.tensorflow_version = reader.string();
- break;
- case "tensorflow_git_version":
- message.tensorflow_git_version = reader.string();
- break;
- case "stripped_default_attrs":
- message.stripped_default_attrs = reader.bool();
- break;
- case "function_aliases":
- reader.entry(message.function_aliases, () => reader.string(), () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.MetaGraphDef.MetaInfoDef.prototype.meta_graph_version = "";
- $root.tensorflow.MetaGraphDef.MetaInfoDef.prototype.stripped_op_list = null;
- $root.tensorflow.MetaGraphDef.MetaInfoDef.prototype.any_info = null;
- $root.tensorflow.MetaGraphDef.MetaInfoDef.prototype.tensorflow_version = "";
- $root.tensorflow.MetaGraphDef.MetaInfoDef.prototype.tensorflow_git_version = "";
- $root.tensorflow.MetaGraphDef.MetaInfoDef.prototype.stripped_default_attrs = false;
- $root.tensorflow.CollectionDef = class CollectionDef {
- constructor() {
- }
- get kind() {
- $root.tensorflow.CollectionDef.kindSet = $root.tensorflow.CollectionDef.kindSet || new Set([ "node_list", "bytes_list", "int64_list", "float_list", "any_list"]);
- return Object.keys(this).find((key) => $root.tensorflow.CollectionDef.kindSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CollectionDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.node_list = $root.tensorflow.CollectionDef.NodeList.decode(reader, reader.uint32());
- break;
- case 2:
- message.bytes_list = $root.tensorflow.CollectionDef.BytesList.decode(reader, reader.uint32());
- break;
- case 3:
- message.int64_list = $root.tensorflow.CollectionDef.Int64List.decode(reader, reader.uint32());
- break;
- case 4:
- message.float_list = $root.tensorflow.CollectionDef.FloatList.decode(reader, reader.uint32());
- break;
- case 5:
- message.any_list = $root.tensorflow.CollectionDef.AnyList.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CollectionDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node_list":
- message.node_list = $root.tensorflow.CollectionDef.NodeList.decodeText(reader);
- break;
- case "bytes_list":
- message.bytes_list = $root.tensorflow.CollectionDef.BytesList.decodeText(reader);
- break;
- case "int64_list":
- message.int64_list = $root.tensorflow.CollectionDef.Int64List.decodeText(reader);
- break;
- case "float_list":
- message.float_list = $root.tensorflow.CollectionDef.FloatList.decodeText(reader);
- break;
- case "any_list":
- message.any_list = $root.tensorflow.CollectionDef.AnyList.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CollectionDef.NodeList = class NodeList {
- constructor() {
- this.value = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CollectionDef.NodeList();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.value.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CollectionDef.NodeList();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "value":
- reader.array(message.value, () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CollectionDef.BytesList = class BytesList {
- constructor() {
- this.value = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CollectionDef.BytesList();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.value.push(reader.bytes());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CollectionDef.BytesList();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "value":
- reader.array(message.value, () => reader.bytes());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CollectionDef.Int64List = class Int64List {
- constructor() {
- this.value = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CollectionDef.Int64List();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.value = reader.array(message.value, () => reader.int64(), tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CollectionDef.Int64List();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "value":
- reader.array(message.value, () => reader.int64());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CollectionDef.FloatList = class FloatList {
- constructor() {
- this.value = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CollectionDef.FloatList();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.value = reader.floats(message.value, tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CollectionDef.FloatList();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "value":
- reader.array(message.value, () => reader.float());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CollectionDef.AnyList = class AnyList {
- constructor() {
- this.value = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CollectionDef.AnyList();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.value.push($root.google.protobuf.Any.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CollectionDef.AnyList();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "value":
- reader.anyarray(message.value, () => new $root.google.protobuf.Any());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorInfo = class TensorInfo {
- constructor() {
- }
- get encoding() {
- $root.tensorflow.TensorInfo.encodingSet = $root.tensorflow.TensorInfo.encodingSet || new Set([ "name", "coo_sparse", "composite_tensor"]);
- return Object.keys(this).find((key) => $root.tensorflow.TensorInfo.encodingSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorInfo();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 4:
- message.coo_sparse = $root.tensorflow.TensorInfo.CooSparse.decode(reader, reader.uint32());
- break;
- case 5:
- message.composite_tensor = $root.tensorflow.TensorInfo.CompositeTensor.decode(reader, reader.uint32());
- break;
- case 2:
- message.dtype = reader.int32();
- break;
- case 3:
- message.tensor_shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorInfo();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "coo_sparse":
- message.coo_sparse = $root.tensorflow.TensorInfo.CooSparse.decodeText(reader);
- break;
- case "composite_tensor":
- message.composite_tensor = $root.tensorflow.TensorInfo.CompositeTensor.decodeText(reader);
- break;
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- case "tensor_shape":
- message.tensor_shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorInfo.prototype.dtype = 0;
- $root.tensorflow.TensorInfo.prototype.tensor_shape = null;
- $root.tensorflow.TensorInfo.CooSparse = class CooSparse {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorInfo.CooSparse();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.values_tensor_name = reader.string();
- break;
- case 2:
- message.indices_tensor_name = reader.string();
- break;
- case 3:
- message.dense_shape_tensor_name = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorInfo.CooSparse();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "values_tensor_name":
- message.values_tensor_name = reader.string();
- break;
- case "indices_tensor_name":
- message.indices_tensor_name = reader.string();
- break;
- case "dense_shape_tensor_name":
- message.dense_shape_tensor_name = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorInfo.CooSparse.prototype.values_tensor_name = "";
- $root.tensorflow.TensorInfo.CooSparse.prototype.indices_tensor_name = "";
- $root.tensorflow.TensorInfo.CooSparse.prototype.dense_shape_tensor_name = "";
- $root.tensorflow.TensorInfo.CompositeTensor = class CompositeTensor {
- constructor() {
- this.components = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorInfo.CompositeTensor();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type_spec = $root.tensorflow.TypeSpecProto.decode(reader, reader.uint32());
- break;
- case 2:
- message.components.push($root.tensorflow.TensorInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorInfo.CompositeTensor();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "type_spec":
- message.type_spec = $root.tensorflow.TypeSpecProto.decodeText(reader);
- break;
- case "components":
- message.components.push($root.tensorflow.TensorInfo.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorInfo.CompositeTensor.prototype.type_spec = null;
- $root.tensorflow.SignatureDef = class SignatureDef {
- constructor() {
- this.inputs = {};
- this.outputs = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SignatureDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- reader.entry(message.inputs, () => reader.string(), () => $root.tensorflow.TensorInfo.decode(reader, reader.uint32()));
- break;
- case 2:
- reader.entry(message.outputs, () => reader.string(), () => $root.tensorflow.TensorInfo.decode(reader, reader.uint32()));
- break;
- case 3:
- message.method_name = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SignatureDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "inputs":
- reader.entry(message.inputs, () => reader.string(), () => $root.tensorflow.TensorInfo.decodeText(reader));
- break;
- case "outputs":
- reader.entry(message.outputs, () => reader.string(), () => $root.tensorflow.TensorInfo.decodeText(reader));
- break;
- case "method_name":
- message.method_name = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SignatureDef.prototype.method_name = "";
- $root.tensorflow.AssetFileDef = class AssetFileDef {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.AssetFileDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.tensor_info = $root.tensorflow.TensorInfo.decode(reader, reader.uint32());
- break;
- case 2:
- message.filename = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.AssetFileDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "tensor_info":
- message.tensor_info = $root.tensorflow.TensorInfo.decodeText(reader);
- break;
- case "filename":
- message.filename = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AssetFileDef.prototype.tensor_info = null;
- $root.tensorflow.AssetFileDef.prototype.filename = "";
- $root.tensorflow.GraphDef = class GraphDef {
- constructor() {
- this.node = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.GraphDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.node.push($root.tensorflow.NodeDef.decode(reader, reader.uint32()));
- break;
- case 4:
- message.versions = $root.tensorflow.VersionDef.decode(reader, reader.uint32());
- break;
- case 3:
- message.version = reader.int32();
- break;
- case 2:
- message.library = $root.tensorflow.FunctionDefLibrary.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.GraphDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node":
- message.node.push($root.tensorflow.NodeDef.decodeText(reader));
- break;
- case "versions":
- message.versions = $root.tensorflow.VersionDef.decodeText(reader);
- break;
- case "version":
- message.version = reader.int32();
- break;
- case "library":
- message.library = $root.tensorflow.FunctionDefLibrary.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.GraphDef.prototype.versions = null;
- $root.tensorflow.GraphDef.prototype.version = 0;
- $root.tensorflow.GraphDef.prototype.library = null;
- $root.tensorflow.FunctionDefLibrary = class FunctionDefLibrary {
- constructor() {
- this["function"] = [];
- this.gradient = [];
- this.registered_gradients = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.FunctionDefLibrary();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message["function"].push($root.tensorflow.FunctionDef.decode(reader, reader.uint32()));
- break;
- case 2:
- message.gradient.push($root.tensorflow.GradientDef.decode(reader, reader.uint32()));
- break;
- case 3:
- message.registered_gradients.push($root.tensorflow.RegisteredGradient.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.FunctionDefLibrary();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "function":
- message["function"].push($root.tensorflow.FunctionDef.decodeText(reader));
- break;
- case "gradient":
- message.gradient.push($root.tensorflow.GradientDef.decodeText(reader));
- break;
- case "registered_gradients":
- message.registered_gradients.push($root.tensorflow.RegisteredGradient.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.FunctionDef = class FunctionDef {
- constructor() {
- this.attr = {};
- this.arg_attr = {};
- this.resource_arg_unique_id = {};
- this.node_def = [];
- this.ret = {};
- this.control_ret = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.FunctionDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.signature = $root.tensorflow.OpDef.decode(reader, reader.uint32());
- break;
- case 5:
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decode(reader, reader.uint32()));
- break;
- case 7:
- reader.entry(message.arg_attr, () => reader.uint32(), () => $root.tensorflow.FunctionDef.ArgAttrs.decode(reader, reader.uint32()));
- break;
- case 8:
- reader.entry(message.resource_arg_unique_id, () => reader.uint32(), () => reader.uint32());
- break;
- case 3:
- message.node_def.push($root.tensorflow.NodeDef.decode(reader, reader.uint32()));
- break;
- case 4:
- reader.entry(message.ret, () => reader.string(), () => reader.string());
- break;
- case 6:
- reader.entry(message.control_ret, () => reader.string(), () => reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.FunctionDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "signature":
- message.signature = $root.tensorflow.OpDef.decodeText(reader);
- break;
- case "attr":
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decodeText(reader));
- break;
- case "arg_attr":
- reader.entry(message.arg_attr, () => reader.uint32(), () => $root.tensorflow.FunctionDef.ArgAttrs.decodeText(reader));
- break;
- case "resource_arg_unique_id":
- reader.entry(message.resource_arg_unique_id, () => reader.uint32(), () => reader.uint32());
- break;
- case "node_def":
- message.node_def.push($root.tensorflow.NodeDef.decodeText(reader));
- break;
- case "ret":
- reader.entry(message.ret, () => reader.string(), () => reader.string());
- break;
- case "control_ret":
- reader.entry(message.control_ret, () => reader.string(), () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.FunctionDef.prototype.signature = null;
- $root.tensorflow.FunctionDef.ArgAttrs = class ArgAttrs {
- constructor() {
- this.attr = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.FunctionDef.ArgAttrs();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.FunctionDef.ArgAttrs();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "attr":
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.GradientDef = class GradientDef {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.GradientDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.function_name = reader.string();
- break;
- case 2:
- message.gradient_func = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.GradientDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "function_name":
- message.function_name = reader.string();
- break;
- case "gradient_func":
- message.gradient_func = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.GradientDef.prototype.function_name = "";
- $root.tensorflow.GradientDef.prototype.gradient_func = "";
- $root.tensorflow.RegisteredGradient = class RegisteredGradient {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RegisteredGradient();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.gradient_func = reader.string();
- break;
- case 2:
- message.registered_op_type = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RegisteredGradient();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "gradient_func":
- message.gradient_func = reader.string();
- break;
- case "registered_op_type":
- message.registered_op_type = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RegisteredGradient.prototype.gradient_func = "";
- $root.tensorflow.RegisteredGradient.prototype.registered_op_type = "";
- $root.tensorflow.AttrValue = class AttrValue {
- constructor() {
- }
- get value() {
- $root.tensorflow.AttrValue.valueSet = $root.tensorflow.AttrValue.valueSet || new Set([ "s", "i", "f", "b", "type", "shape", "tensor", "list", "func", "placeholder"]);
- return Object.keys(this).find((key) => $root.tensorflow.AttrValue.valueSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.AttrValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.s = reader.bytes();
- break;
- case 3:
- message.i = reader.int64();
- break;
- case 4:
- message.f = reader.float();
- break;
- case 5:
- message.b = reader.bool();
- break;
- case 6:
- message.type = reader.int32();
- break;
- case 7:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 8:
- message.tensor = $root.tensorflow.TensorProto.decode(reader, reader.uint32());
- break;
- case 1:
- message.list = $root.tensorflow.AttrValue.ListValue.decode(reader, reader.uint32());
- break;
- case 10:
- message.func = $root.tensorflow.NameAttrList.decode(reader, reader.uint32());
- break;
- case 9:
- message.placeholder = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.AttrValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "s":
- message.s = reader.bytes();
- break;
- case "i":
- message.i = reader.int64();
- break;
- case "f":
- message.f = reader.float();
- break;
- case "b":
- message.b = reader.bool();
- break;
- case "type":
- message.type = reader.enum($root.tensorflow.DataType);
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "tensor":
- message.tensor = $root.tensorflow.TensorProto.decodeText(reader);
- break;
- case "list":
- message.list = $root.tensorflow.AttrValue.ListValue.decodeText(reader);
- break;
- case "func":
- message.func = $root.tensorflow.NameAttrList.decodeText(reader);
- break;
- case "placeholder":
- message.placeholder = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AttrValue.ListValue = class ListValue {
- constructor() {
- this.s = [];
- this.i = [];
- this.f = [];
- this.b = [];
- this.type = [];
- this.shape = [];
- this.tensor = [];
- this.func = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.AttrValue.ListValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.s.push(reader.bytes());
- break;
- case 3:
- message.i = reader.array(message.i, () => reader.int64(), tag);
- break;
- case 4:
- message.f = reader.floats(message.f, tag);
- break;
- case 5:
- message.b = reader.array(message.b, () => reader.bool(), tag);
- break;
- case 6:
- message.type = reader.array(message.type, () => reader.int32(), tag);
- break;
- case 7:
- message.shape.push($root.tensorflow.TensorShapeProto.decode(reader, reader.uint32()));
- break;
- case 8:
- message.tensor.push($root.tensorflow.TensorProto.decode(reader, reader.uint32()));
- break;
- case 9:
- message.func.push($root.tensorflow.NameAttrList.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.AttrValue.ListValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "s":
- reader.array(message.s, () => reader.bytes());
- break;
- case "i":
- reader.array(message.i, () => reader.int64());
- break;
- case "f":
- reader.array(message.f, () => reader.float());
- break;
- case "b":
- reader.array(message.b, () => reader.bool());
- break;
- case "type":
- reader.array(message.type, () => reader.enum($root.tensorflow.DataType));
- break;
- case "shape":
- message.shape.push($root.tensorflow.TensorShapeProto.decodeText(reader));
- break;
- case "tensor":
- message.tensor.push($root.tensorflow.TensorProto.decodeText(reader));
- break;
- case "func":
- message.func.push($root.tensorflow.NameAttrList.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.NameAttrList = class NameAttrList {
- constructor() {
- this.attr = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.NameAttrList();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.NameAttrList();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "attr":
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.NameAttrList.prototype.name = "";
- $root.tensorflow.TensorProto = class TensorProto {
- constructor() {
- this.half_val = [];
- this.float_val = [];
- this.double_val = [];
- this.int_val = [];
- this.string_val = [];
- this.scomplex_val = [];
- this.int64_val = [];
- this.bool_val = [];
- this.dcomplex_val = [];
- this.resource_handle_val = [];
- this.variant_val = [];
- this.uint32_val = [];
- this.uint64_val = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.dtype = reader.int32();
- break;
- case 2:
- message.tensor_shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 3:
- message.version_number = reader.int32();
- break;
- case 4:
- message.tensor_content = reader.bytes();
- break;
- case 13:
- message.half_val = reader.array(message.half_val, () => reader.int32(), tag);
- break;
- case 5:
- message.float_val = reader.floats(message.float_val, tag);
- break;
- case 6:
- message.double_val = reader.doubles(message.double_val, tag);
- break;
- case 7:
- message.int_val = reader.array(message.int_val, () => reader.int32(), tag);
- break;
- case 8:
- message.string_val.push(reader.bytes());
- break;
- case 9:
- message.scomplex_val = reader.floats(message.scomplex_val, tag);
- break;
- case 10:
- message.int64_val = reader.array(message.int64_val, () => reader.int64(), tag);
- break;
- case 11:
- message.bool_val = reader.array(message.bool_val, () => reader.bool(), tag);
- break;
- case 12:
- message.dcomplex_val = reader.doubles(message.dcomplex_val, tag);
- break;
- case 14:
- message.resource_handle_val.push($root.tensorflow.ResourceHandleProto.decode(reader, reader.uint32()));
- break;
- case 15:
- message.variant_val.push($root.tensorflow.VariantTensorDataProto.decode(reader, reader.uint32()));
- break;
- case 16:
- message.uint32_val = reader.array(message.uint32_val, () => reader.uint32(), tag);
- break;
- case 17:
- message.uint64_val = reader.array(message.uint64_val, () => reader.uint64(), tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- case "tensor_shape":
- message.tensor_shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "version_number":
- message.version_number = reader.int32();
- break;
- case "tensor_content":
- message.tensor_content = reader.bytes();
- break;
- case "half_val":
- reader.array(message.half_val, () => reader.int32());
- break;
- case "float_val":
- reader.array(message.float_val, () => reader.float());
- break;
- case "double_val":
- reader.array(message.double_val, () => reader.double());
- break;
- case "int_val":
- reader.array(message.int_val, () => reader.int32());
- break;
- case "string_val":
- reader.array(message.string_val, () => reader.bytes());
- break;
- case "scomplex_val":
- reader.array(message.scomplex_val, () => reader.float());
- break;
- case "int64_val":
- reader.array(message.int64_val, () => reader.int64());
- break;
- case "bool_val":
- reader.array(message.bool_val, () => reader.bool());
- break;
- case "dcomplex_val":
- reader.array(message.dcomplex_val, () => reader.double());
- break;
- case "resource_handle_val":
- message.resource_handle_val.push($root.tensorflow.ResourceHandleProto.decodeText(reader));
- break;
- case "variant_val":
- message.variant_val.push($root.tensorflow.VariantTensorDataProto.decodeText(reader));
- break;
- case "uint32_val":
- reader.array(message.uint32_val, () => reader.uint32());
- break;
- case "uint64_val":
- reader.array(message.uint64_val, () => reader.uint64());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorProto.prototype.dtype = 0;
- $root.tensorflow.TensorProto.prototype.tensor_shape = null;
- $root.tensorflow.TensorProto.prototype.version_number = 0;
- $root.tensorflow.TensorProto.prototype.tensor_content = new Uint8Array([]);
- $root.tensorflow.VariantTensorDataProto = class VariantTensorDataProto {
- constructor() {
- this.tensors = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.VariantTensorDataProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type_name = reader.string();
- break;
- case 2:
- message.metadata = reader.bytes();
- break;
- case 3:
- message.tensors.push($root.tensorflow.TensorProto.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.VariantTensorDataProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "type_name":
- message.type_name = reader.string();
- break;
- case "metadata":
- message.metadata = reader.bytes();
- break;
- case "tensors":
- message.tensors.push($root.tensorflow.TensorProto.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.VariantTensorDataProto.prototype.type_name = "";
- $root.tensorflow.VariantTensorDataProto.prototype.metadata = new Uint8Array([]);
- $root.tensorflow.ResourceHandleProto = class ResourceHandleProto {
- constructor() {
- this.dtypes_and_shapes = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ResourceHandleProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.device = reader.string();
- break;
- case 2:
- message.container = reader.string();
- break;
- case 3:
- message.name = reader.string();
- break;
- case 4:
- message.hash_code = reader.uint64();
- break;
- case 5:
- message.maybe_type_name = reader.string();
- break;
- case 6:
- message.dtypes_and_shapes.push($root.tensorflow.ResourceHandleProto.DtypeAndShape.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ResourceHandleProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "device":
- message.device = reader.string();
- break;
- case "container":
- message.container = reader.string();
- break;
- case "name":
- message.name = reader.string();
- break;
- case "hash_code":
- message.hash_code = reader.uint64();
- break;
- case "maybe_type_name":
- message.maybe_type_name = reader.string();
- break;
- case "dtypes_and_shapes":
- message.dtypes_and_shapes.push($root.tensorflow.ResourceHandleProto.DtypeAndShape.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.ResourceHandleProto.prototype.device = "";
- $root.tensorflow.ResourceHandleProto.prototype.container = "";
- $root.tensorflow.ResourceHandleProto.prototype.name = "";
- $root.tensorflow.ResourceHandleProto.prototype.hash_code = protobuf.Uint64.create(0);
- $root.tensorflow.ResourceHandleProto.prototype.maybe_type_name = "";
- $root.tensorflow.ResourceHandleProto.DtypeAndShape = class DtypeAndShape {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ResourceHandleProto.DtypeAndShape();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.dtype = reader.int32();
- break;
- case 2:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ResourceHandleProto.DtypeAndShape();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.ResourceHandleProto.DtypeAndShape.prototype.dtype = 0;
- $root.tensorflow.ResourceHandleProto.DtypeAndShape.prototype.shape = null;
- $root.tensorflow.TensorShapeProto = class TensorShapeProto {
- constructor() {
- this.dim = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorShapeProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.dim.push($root.tensorflow.TensorShapeProto.Dim.decode(reader, reader.uint32()));
- break;
- case 3:
- message.unknown_rank = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorShapeProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "dim":
- message.dim.push($root.tensorflow.TensorShapeProto.Dim.decodeText(reader));
- break;
- case "unknown_rank":
- message.unknown_rank = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorShapeProto.prototype.unknown_rank = false;
- $root.tensorflow.TensorShapeProto.Dim = class Dim {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorShapeProto.Dim();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.size = reader.int64();
- break;
- case 2:
- message.name = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorShapeProto.Dim();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "size":
- message.size = reader.int64();
- break;
- case "name":
- message.name = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorShapeProto.Dim.prototype.size = protobuf.Int64.create(0);
- $root.tensorflow.TensorShapeProto.Dim.prototype.name = "";
- $root.tensorflow.DataType = {
- "DT_INVALID": 0,
- "DT_FLOAT": 1,
- "DT_DOUBLE": 2,
- "DT_INT32": 3,
- "DT_UINT8": 4,
- "DT_INT16": 5,
- "DT_INT8": 6,
- "DT_STRING": 7,
- "DT_COMPLEX64": 8,
- "DT_INT64": 9,
- "DT_BOOL": 10,
- "DT_QINT8": 11,
- "DT_QUINT8": 12,
- "DT_QINT32": 13,
- "DT_BFLOAT16": 14,
- "DT_QINT16": 15,
- "DT_QUINT16": 16,
- "DT_UINT16": 17,
- "DT_COMPLEX128": 18,
- "DT_HALF": 19,
- "DT_RESOURCE": 20,
- "DT_VARIANT": 21,
- "DT_UINT32": 22,
- "DT_UINT64": 23,
- "DT_FLOAT_REF": 101,
- "DT_DOUBLE_REF": 102,
- "DT_INT32_REF": 103,
- "DT_UINT8_REF": 104,
- "DT_INT16_REF": 105,
- "DT_INT8_REF": 106,
- "DT_STRING_REF": 107,
- "DT_COMPLEX64_REF": 108,
- "DT_INT64_REF": 109,
- "DT_BOOL_REF": 110,
- "DT_QINT8_REF": 111,
- "DT_QUINT8_REF": 112,
- "DT_QINT32_REF": 113,
- "DT_BFLOAT16_REF": 114,
- "DT_QINT16_REF": 115,
- "DT_QUINT16_REF": 116,
- "DT_UINT16_REF": 117,
- "DT_COMPLEX128_REF": 118,
- "DT_HALF_REF": 119,
- "DT_RESOURCE_REF": 120,
- "DT_VARIANT_REF": 121,
- "DT_UINT32_REF": 122,
- "DT_UINT64_REF": 123
- };
- $root.tensorflow.SerializedDType = class SerializedDType {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SerializedDType();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.datatype = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SerializedDType();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "datatype":
- message.datatype = reader.enum($root.tensorflow.DataType);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SerializedDType.prototype.datatype = 0;
- $root.tensorflow.NodeDef = class NodeDef {
- constructor() {
- this.input = [];
- this.attr = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.NodeDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.op = reader.string();
- break;
- case 3:
- message.input.push(reader.string());
- break;
- case 4:
- message.device = reader.string();
- break;
- case 5:
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decode(reader, reader.uint32()));
- break;
- case 6:
- message.experimental_debug_info = $root.tensorflow.NodeDef.ExperimentalDebugInfo.decode(reader, reader.uint32());
- break;
- case 7:
- message.experimental_type = $root.tensorflow.FullTypeDef.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.NodeDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "op":
- message.op = reader.string();
- break;
- case "input":
- reader.array(message.input, () => reader.string());
- break;
- case "device":
- message.device = reader.string();
- break;
- case "attr":
- reader.entry(message.attr, () => reader.string(), () => $root.tensorflow.AttrValue.decodeText(reader));
- break;
- case "experimental_debug_info":
- message.experimental_debug_info = $root.tensorflow.NodeDef.ExperimentalDebugInfo.decodeText(reader);
- break;
- case "experimental_type":
- message.experimental_type = $root.tensorflow.FullTypeDef.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.NodeDef.prototype.name = "";
- $root.tensorflow.NodeDef.prototype.op = "";
- $root.tensorflow.NodeDef.prototype.device = "";
- $root.tensorflow.NodeDef.prototype.experimental_debug_info = null;
- $root.tensorflow.NodeDef.prototype.experimental_type = null;
- $root.tensorflow.NodeDef.ExperimentalDebugInfo = class ExperimentalDebugInfo {
- constructor() {
- this.original_node_names = [];
- this.original_func_names = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.NodeDef.ExperimentalDebugInfo();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.original_node_names.push(reader.string());
- break;
- case 2:
- message.original_func_names.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.NodeDef.ExperimentalDebugInfo();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "original_node_names":
- reader.array(message.original_node_names, () => reader.string());
- break;
- case "original_func_names":
- reader.array(message.original_func_names, () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.FullTypeId = {
- "TFT_UNSET": 0,
- "TFT_VAR": 1,
- "TFT_ANY": 2,
- "TFT_PRODUCT": 3,
- "TFT_NAMED": 4,
- "TFT_FOR_EACH": 20,
- "TFT_CALLABLE": 100,
- "TFT_TENSOR": 1000,
- "TFT_ARRAY": 1001,
- "TFT_OPTIONAL": 1002,
- "TFT_LITERAL": 1003,
- "TFT_ENCODED": 1004,
- "TFT_BOOL": 200,
- "TFT_UINT8": 201,
- "TFT_UINT16": 202,
- "TFT_UINT32": 203,
- "TFT_UINT64": 204,
- "TFT_INT8": 205,
- "TFT_INT16": 206,
- "TFT_INT32": 207,
- "TFT_INT64": 208,
- "TFT_HALF": 209,
- "TFT_FLOAT": 210,
- "TFT_DOUBLE": 211,
- "TFT_BFLOAT16": 215,
- "TFT_COMPLEX64": 212,
- "TFT_COMPLEX128": 213,
- "TFT_STRING": 214,
- "TFT_DATASET": 10102,
- "TFT_RAGGED": 10103,
- "TFT_ITERATOR": 10104,
- "TFT_MUTEX_LOCK": 10202,
- "TFT_LEGACY_VARIANT": 10203
- };
- $root.tensorflow.FullTypeDef = class FullTypeDef {
- constructor() {
- this.args = [];
- }
- get attr() {
- $root.tensorflow.FullTypeDef.attrSet = $root.tensorflow.FullTypeDef.attrSet || new Set([ "s", "i"]);
- return Object.keys(this).find((key) => $root.tensorflow.FullTypeDef.attrSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.FullTypeDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type_id = reader.int32();
- break;
- case 2:
- message.args.push($root.tensorflow.FullTypeDef.decode(reader, reader.uint32()));
- break;
- case 3:
- message.s = reader.string();
- break;
- case 4:
- message.i = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.FullTypeDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "type_id":
- message.type_id = reader.enum($root.tensorflow.FullTypeId);
- break;
- case "args":
- message.args.push($root.tensorflow.FullTypeDef.decodeText(reader));
- break;
- case "s":
- message.s = reader.string();
- break;
- case "i":
- message.i = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.FullTypeDef.prototype.type_id = 0;
- $root.tensorflow.OpDef = class OpDef {
- constructor() {
- this.input_arg = [];
- this.output_arg = [];
- this.control_output = [];
- this.attr = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.OpDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.input_arg.push($root.tensorflow.OpDef.ArgDef.decode(reader, reader.uint32()));
- break;
- case 3:
- message.output_arg.push($root.tensorflow.OpDef.ArgDef.decode(reader, reader.uint32()));
- break;
- case 20:
- message.control_output.push(reader.string());
- break;
- case 4:
- message.attr.push($root.tensorflow.OpDef.AttrDef.decode(reader, reader.uint32()));
- break;
- case 8:
- message.deprecation = $root.tensorflow.OpDeprecation.decode(reader, reader.uint32());
- break;
- case 5:
- message.summary = reader.string();
- break;
- case 6:
- message.description = reader.string();
- break;
- case 18:
- message.is_commutative = reader.bool();
- break;
- case 16:
- message.is_aggregate = reader.bool();
- break;
- case 17:
- message.is_stateful = reader.bool();
- break;
- case 19:
- message.allows_uninitialized_input = reader.bool();
- break;
- case 21:
- message.is_distributed_communication = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.OpDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "input_arg":
- message.input_arg.push($root.tensorflow.OpDef.ArgDef.decodeText(reader));
- break;
- case "output_arg":
- message.output_arg.push($root.tensorflow.OpDef.ArgDef.decodeText(reader));
- break;
- case "control_output":
- reader.array(message.control_output, () => reader.string());
- break;
- case "attr":
- message.attr.push($root.tensorflow.OpDef.AttrDef.decodeText(reader));
- break;
- case "deprecation":
- message.deprecation = $root.tensorflow.OpDeprecation.decodeText(reader);
- break;
- case "summary":
- message.summary = reader.string();
- break;
- case "description":
- message.description = reader.string();
- break;
- case "is_commutative":
- message.is_commutative = reader.bool();
- break;
- case "is_aggregate":
- message.is_aggregate = reader.bool();
- break;
- case "is_stateful":
- message.is_stateful = reader.bool();
- break;
- case "allows_uninitialized_input":
- message.allows_uninitialized_input = reader.bool();
- break;
- case "is_distributed_communication":
- message.is_distributed_communication = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.OpDef.prototype.name = "";
- $root.tensorflow.OpDef.prototype.deprecation = null;
- $root.tensorflow.OpDef.prototype.summary = "";
- $root.tensorflow.OpDef.prototype.description = "";
- $root.tensorflow.OpDef.prototype.is_commutative = false;
- $root.tensorflow.OpDef.prototype.is_aggregate = false;
- $root.tensorflow.OpDef.prototype.is_stateful = false;
- $root.tensorflow.OpDef.prototype.allows_uninitialized_input = false;
- $root.tensorflow.OpDef.prototype.is_distributed_communication = false;
- $root.tensorflow.OpDef.ArgDef = class ArgDef {
- constructor() {
- this.handle_data = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.OpDef.ArgDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.description = reader.string();
- break;
- case 3:
- message.type = reader.int32();
- break;
- case 4:
- message.type_attr = reader.string();
- break;
- case 5:
- message.number_attr = reader.string();
- break;
- case 6:
- message.type_list_attr = reader.string();
- break;
- case 7:
- message.handle_data.push($root.tensorflow.ResourceHandleProto.DtypeAndShape.decode(reader, reader.uint32()));
- break;
- case 16:
- message.is_ref = reader.bool();
- break;
- case 17:
- message.experimental_full_type = $root.tensorflow.FullTypeDef.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.OpDef.ArgDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "description":
- message.description = reader.string();
- break;
- case "type":
- message.type = reader.enum($root.tensorflow.DataType);
- break;
- case "type_attr":
- message.type_attr = reader.string();
- break;
- case "number_attr":
- message.number_attr = reader.string();
- break;
- case "type_list_attr":
- message.type_list_attr = reader.string();
- break;
- case "handle_data":
- message.handle_data.push($root.tensorflow.ResourceHandleProto.DtypeAndShape.decodeText(reader));
- break;
- case "is_ref":
- message.is_ref = reader.bool();
- break;
- case "experimental_full_type":
- message.experimental_full_type = $root.tensorflow.FullTypeDef.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.OpDef.ArgDef.prototype.name = "";
- $root.tensorflow.OpDef.ArgDef.prototype.description = "";
- $root.tensorflow.OpDef.ArgDef.prototype.type = 0;
- $root.tensorflow.OpDef.ArgDef.prototype.type_attr = "";
- $root.tensorflow.OpDef.ArgDef.prototype.number_attr = "";
- $root.tensorflow.OpDef.ArgDef.prototype.type_list_attr = "";
- $root.tensorflow.OpDef.ArgDef.prototype.is_ref = false;
- $root.tensorflow.OpDef.ArgDef.prototype.experimental_full_type = null;
- $root.tensorflow.OpDef.AttrDef = class AttrDef {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.OpDef.AttrDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.type = reader.string();
- break;
- case 3:
- message.default_value = $root.tensorflow.AttrValue.decode(reader, reader.uint32());
- break;
- case 4:
- message.description = reader.string();
- break;
- case 5:
- message.has_minimum = reader.bool();
- break;
- case 6:
- message.minimum = reader.int64();
- break;
- case 7:
- message.allowed_values = $root.tensorflow.AttrValue.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.OpDef.AttrDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "type":
- message.type = reader.string();
- break;
- case "default_value":
- message.default_value = $root.tensorflow.AttrValue.decodeText(reader);
- break;
- case "description":
- message.description = reader.string();
- break;
- case "has_minimum":
- message.has_minimum = reader.bool();
- break;
- case "minimum":
- message.minimum = reader.int64();
- break;
- case "allowed_values":
- message.allowed_values = $root.tensorflow.AttrValue.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.OpDef.AttrDef.prototype.name = "";
- $root.tensorflow.OpDef.AttrDef.prototype.type = "";
- $root.tensorflow.OpDef.AttrDef.prototype.default_value = null;
- $root.tensorflow.OpDef.AttrDef.prototype.description = "";
- $root.tensorflow.OpDef.AttrDef.prototype.has_minimum = false;
- $root.tensorflow.OpDef.AttrDef.prototype.minimum = protobuf.Int64.create(0);
- $root.tensorflow.OpDef.AttrDef.prototype.allowed_values = null;
- $root.tensorflow.OpDeprecation = class OpDeprecation {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.OpDeprecation();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.version = reader.int32();
- break;
- case 2:
- message.explanation = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.OpDeprecation();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "version":
- message.version = reader.int32();
- break;
- case "explanation":
- message.explanation = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.OpDeprecation.prototype.version = 0;
- $root.tensorflow.OpDeprecation.prototype.explanation = "";
- $root.tensorflow.OpList = class OpList {
- constructor() {
- this.op = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.OpList();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.op.push($root.tensorflow.OpDef.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.OpList();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "op":
- message.op.push($root.tensorflow.OpDef.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.VersionDef = class VersionDef {
- constructor() {
- this.bad_consumers = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.VersionDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.producer = reader.int32();
- break;
- case 2:
- message.min_consumer = reader.int32();
- break;
- case 3:
- message.bad_consumers = reader.array(message.bad_consumers, () => reader.int32(), tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.VersionDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "producer":
- message.producer = reader.int32();
- break;
- case "min_consumer":
- message.min_consumer = reader.int32();
- break;
- case "bad_consumers":
- reader.array(message.bad_consumers, () => reader.int32());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.VersionDef.prototype.producer = 0;
- $root.tensorflow.VersionDef.prototype.min_consumer = 0;
- $root.tensorflow.SavedObjectGraph = class SavedObjectGraph {
- constructor() {
- this.nodes = [];
- this.concrete_functions = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedObjectGraph();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.nodes.push($root.tensorflow.SavedObject.decode(reader, reader.uint32()));
- break;
- case 2:
- reader.entry(message.concrete_functions, () => reader.string(), () => $root.tensorflow.SavedConcreteFunction.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedObjectGraph();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "nodes":
- message.nodes.push($root.tensorflow.SavedObject.decodeText(reader));
- break;
- case "concrete_functions":
- reader.entry(message.concrete_functions, () => reader.string(), () => $root.tensorflow.SavedConcreteFunction.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedObject = class SavedObject {
- constructor() {
- this.children = [];
- this.dependencies = [];
- this.slot_variables = [];
- this.saveable_objects = {};
- }
- get kind() {
- $root.tensorflow.SavedObject.kindSet = $root.tensorflow.SavedObject.kindSet || new Set([ "user_object", "asset", "function", "variable", "bare_concrete_function", "constant", "resource", "captured_tensor"]);
- return Object.keys(this).find((key) => $root.tensorflow.SavedObject.kindSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedObject();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.children.push($root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.decode(reader, reader.uint32()));
- break;
- case 15:
- message.dependencies.push($root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.decode(reader, reader.uint32()));
- break;
- case 3:
- message.slot_variables.push($root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.decode(reader, reader.uint32()));
- break;
- case 4:
- message.user_object = $root.tensorflow.SavedUserObject.decode(reader, reader.uint32());
- break;
- case 5:
- message.asset = $root.tensorflow.SavedAsset.decode(reader, reader.uint32());
- break;
- case 6:
- message["function"] = $root.tensorflow.SavedFunction.decode(reader, reader.uint32());
- break;
- case 7:
- message.variable = $root.tensorflow.SavedVariable.decode(reader, reader.uint32());
- break;
- case 8:
- message.bare_concrete_function = $root.tensorflow.SavedBareConcreteFunction.decode(reader, reader.uint32());
- break;
- case 9:
- message.constant = $root.tensorflow.SavedConstant.decode(reader, reader.uint32());
- break;
- case 10:
- message.resource = $root.tensorflow.SavedResource.decode(reader, reader.uint32());
- break;
- case 12:
- message.captured_tensor = $root.tensorflow.CapturedTensor.decode(reader, reader.uint32());
- break;
- case 11:
- reader.entry(message.saveable_objects, () => reader.string(), () => $root.tensorflow.SaveableObject.decode(reader, reader.uint32()));
- break;
- case 13:
- message.registered_name = reader.string();
- break;
- case 14:
- message.serialized_user_proto = $root.google.protobuf.Any.decode(reader, reader.uint32());
- break;
- case 16:
- message.registered_saver = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedObject();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "children":
- message.children.push($root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.decodeText(reader));
- break;
- case "dependencies":
- message.dependencies.push($root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.decodeText(reader));
- break;
- case "slot_variables":
- message.slot_variables.push($root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.decodeText(reader));
- break;
- case "user_object":
- message.user_object = $root.tensorflow.SavedUserObject.decodeText(reader);
- break;
- case "asset":
- message.asset = $root.tensorflow.SavedAsset.decodeText(reader);
- break;
- case "function":
- message["function"] = $root.tensorflow.SavedFunction.decodeText(reader);
- break;
- case "variable":
- message.variable = $root.tensorflow.SavedVariable.decodeText(reader);
- break;
- case "bare_concrete_function":
- message.bare_concrete_function = $root.tensorflow.SavedBareConcreteFunction.decodeText(reader);
- break;
- case "constant":
- message.constant = $root.tensorflow.SavedConstant.decodeText(reader);
- break;
- case "resource":
- message.resource = $root.tensorflow.SavedResource.decodeText(reader);
- break;
- case "captured_tensor":
- message.captured_tensor = $root.tensorflow.CapturedTensor.decodeText(reader);
- break;
- case "saveable_objects":
- reader.entry(message.saveable_objects, () => reader.string(), () => $root.tensorflow.SaveableObject.decodeText(reader));
- break;
- case "registered_name":
- message.registered_name = reader.string();
- break;
- case "serialized_user_proto":
- message.serialized_user_proto = $root.google.protobuf.Any.decodeText(reader);
- break;
- case "registered_saver":
- message.registered_saver = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedObject.prototype.registered_name = "";
- $root.tensorflow.SavedObject.prototype.serialized_user_proto = null;
- $root.tensorflow.SavedObject.prototype.registered_saver = "";
- $root.tensorflow.SavedUserObject = class SavedUserObject {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedUserObject();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.identifier = reader.string();
- break;
- case 2:
- message.version = $root.tensorflow.VersionDef.decode(reader, reader.uint32());
- break;
- case 3:
- message.metadata = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedUserObject();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "identifier":
- message.identifier = reader.string();
- break;
- case "version":
- message.version = $root.tensorflow.VersionDef.decodeText(reader);
- break;
- case "metadata":
- message.metadata = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedUserObject.prototype.identifier = "";
- $root.tensorflow.SavedUserObject.prototype.version = null;
- $root.tensorflow.SavedUserObject.prototype.metadata = "";
- $root.tensorflow.SavedAsset = class SavedAsset {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedAsset();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.asset_file_def_index = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedAsset();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "asset_file_def_index":
- message.asset_file_def_index = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedAsset.prototype.asset_file_def_index = 0;
- $root.tensorflow.SavedFunction = class SavedFunction {
- constructor() {
- this.concrete_functions = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedFunction();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.concrete_functions.push(reader.string());
- break;
- case 2:
- message.function_spec = $root.tensorflow.FunctionSpec.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedFunction();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "concrete_functions":
- reader.array(message.concrete_functions, () => reader.string());
- break;
- case "function_spec":
- message.function_spec = $root.tensorflow.FunctionSpec.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedFunction.prototype.function_spec = null;
- $root.tensorflow.CapturedTensor = class CapturedTensor {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CapturedTensor();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.concrete_function = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CapturedTensor();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "concrete_function":
- message.concrete_function = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CapturedTensor.prototype.name = "";
- $root.tensorflow.CapturedTensor.prototype.concrete_function = "";
- $root.tensorflow.SavedConcreteFunction = class SavedConcreteFunction {
- constructor() {
- this.bound_inputs = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedConcreteFunction();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.bound_inputs = reader.array(message.bound_inputs, () => reader.int32(), tag);
- break;
- case 3:
- message.canonicalized_input_signature = $root.tensorflow.StructuredValue.decode(reader, reader.uint32());
- break;
- case 4:
- message.output_signature = $root.tensorflow.StructuredValue.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedConcreteFunction();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "bound_inputs":
- reader.array(message.bound_inputs, () => reader.int32());
- break;
- case "canonicalized_input_signature":
- message.canonicalized_input_signature = $root.tensorflow.StructuredValue.decodeText(reader);
- break;
- case "output_signature":
- message.output_signature = $root.tensorflow.StructuredValue.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedConcreteFunction.prototype.canonicalized_input_signature = null;
- $root.tensorflow.SavedConcreteFunction.prototype.output_signature = null;
- $root.tensorflow.SavedBareConcreteFunction = class SavedBareConcreteFunction {
- constructor() {
- this.argument_keywords = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedBareConcreteFunction();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.concrete_function_name = reader.string();
- break;
- case 2:
- message.argument_keywords.push(reader.string());
- break;
- case 3:
- message.allowed_positional_arguments = reader.int64();
- break;
- case 4:
- message.function_spec = $root.tensorflow.FunctionSpec.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedBareConcreteFunction();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "concrete_function_name":
- message.concrete_function_name = reader.string();
- break;
- case "argument_keywords":
- reader.array(message.argument_keywords, () => reader.string());
- break;
- case "allowed_positional_arguments":
- message.allowed_positional_arguments = reader.int64();
- break;
- case "function_spec":
- message.function_spec = $root.tensorflow.FunctionSpec.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedBareConcreteFunction.prototype.concrete_function_name = "";
- $root.tensorflow.SavedBareConcreteFunction.prototype.allowed_positional_arguments = protobuf.Int64.create(0);
- $root.tensorflow.SavedBareConcreteFunction.prototype.function_spec = null;
- $root.tensorflow.SavedConstant = class SavedConstant {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedConstant();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.operation = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedConstant();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "operation":
- message.operation = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedConstant.prototype.operation = "";
- $root.tensorflow.SavedVariable = class SavedVariable {
- constructor() {
- this.experimental_distributed_variable_components = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedVariable();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.dtype = reader.int32();
- break;
- case 2:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 3:
- message.trainable = reader.bool();
- break;
- case 4:
- message.synchronization = reader.int32();
- break;
- case 5:
- message.aggregation = reader.int32();
- break;
- case 6:
- message.name = reader.string();
- break;
- case 7:
- message.device = reader.string();
- break;
- case 8:
- message.experimental_distributed_variable_components.push($root.tensorflow.SavedVariable.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedVariable();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "trainable":
- message.trainable = reader.bool();
- break;
- case "synchronization":
- message.synchronization = reader.enum($root.tensorflow.VariableSynchronization);
- break;
- case "aggregation":
- message.aggregation = reader.enum($root.tensorflow.VariableAggregation);
- break;
- case "name":
- message.name = reader.string();
- break;
- case "device":
- message.device = reader.string();
- break;
- case "experimental_distributed_variable_components":
- message.experimental_distributed_variable_components.push($root.tensorflow.SavedVariable.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedVariable.prototype.dtype = 0;
- $root.tensorflow.SavedVariable.prototype.shape = null;
- $root.tensorflow.SavedVariable.prototype.trainable = false;
- $root.tensorflow.SavedVariable.prototype.synchronization = 0;
- $root.tensorflow.SavedVariable.prototype.aggregation = 0;
- $root.tensorflow.SavedVariable.prototype.name = "";
- $root.tensorflow.SavedVariable.prototype.device = "";
- $root.tensorflow.FunctionSpec = class FunctionSpec {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.FunctionSpec();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.fullargspec = $root.tensorflow.StructuredValue.decode(reader, reader.uint32());
- break;
- case 2:
- message.is_method = reader.bool();
- break;
- case 5:
- message.input_signature = $root.tensorflow.StructuredValue.decode(reader, reader.uint32());
- break;
- case 6:
- message.jit_compile = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.FunctionSpec();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "fullargspec":
- message.fullargspec = $root.tensorflow.StructuredValue.decodeText(reader);
- break;
- case "is_method":
- message.is_method = reader.bool();
- break;
- case "input_signature":
- message.input_signature = $root.tensorflow.StructuredValue.decodeText(reader);
- break;
- case "jit_compile":
- message.jit_compile = reader.enum($root.tensorflow.FunctionSpec.JitCompile);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.FunctionSpec.prototype.fullargspec = null;
- $root.tensorflow.FunctionSpec.prototype.is_method = false;
- $root.tensorflow.FunctionSpec.prototype.input_signature = null;
- $root.tensorflow.FunctionSpec.prototype.jit_compile = 0;
- $root.tensorflow.FunctionSpec.JitCompile = {
- "DEFAULT": 0,
- "ON": 1,
- "OFF": 2
- };
- $root.tensorflow.SavedResource = class SavedResource {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedResource();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.device = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedResource();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "device":
- message.device = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedResource.prototype.device = "";
- $root.tensorflow.SaveableObject = class SaveableObject {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SaveableObject();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.save_function = reader.int32();
- break;
- case 3:
- message.restore_function = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SaveableObject();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "save_function":
- message.save_function = reader.int32();
- break;
- case "restore_function":
- message.restore_function = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SaveableObject.prototype.save_function = 0;
- $root.tensorflow.SaveableObject.prototype.restore_function = 0;
- $root.tensorflow.VariableSynchronization = {
- "VARIABLE_SYNCHRONIZATION_AUTO": 0,
- "VARIABLE_SYNCHRONIZATION_NONE": 1,
- "VARIABLE_SYNCHRONIZATION_ON_WRITE": 2,
- "VARIABLE_SYNCHRONIZATION_ON_READ": 3
- };
- $root.tensorflow.VariableAggregation = {
- "VARIABLE_AGGREGATION_NONE": 0,
- "VARIABLE_AGGREGATION_SUM": 1,
- "VARIABLE_AGGREGATION_MEAN": 2,
- "VARIABLE_AGGREGATION_ONLY_FIRST_REPLICA": 3
- };
- $root.tensorflow.VariableDef = class VariableDef {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.VariableDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.variable_name = reader.string();
- break;
- case 6:
- message.initial_value_name = reader.string();
- break;
- case 2:
- message.initializer_name = reader.string();
- break;
- case 3:
- message.snapshot_name = reader.string();
- break;
- case 4:
- message.save_slice_info_def = $root.tensorflow.SaveSliceInfoDef.decode(reader, reader.uint32());
- break;
- case 5:
- message.is_resource = reader.bool();
- break;
- case 7:
- message.trainable = reader.bool();
- break;
- case 8:
- message.synchronization = reader.int32();
- break;
- case 9:
- message.aggregation = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.VariableDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "variable_name":
- message.variable_name = reader.string();
- break;
- case "initial_value_name":
- message.initial_value_name = reader.string();
- break;
- case "initializer_name":
- message.initializer_name = reader.string();
- break;
- case "snapshot_name":
- message.snapshot_name = reader.string();
- break;
- case "save_slice_info_def":
- message.save_slice_info_def = $root.tensorflow.SaveSliceInfoDef.decodeText(reader);
- break;
- case "is_resource":
- message.is_resource = reader.bool();
- break;
- case "trainable":
- message.trainable = reader.bool();
- break;
- case "synchronization":
- message.synchronization = reader.enum($root.tensorflow.VariableSynchronization);
- break;
- case "aggregation":
- message.aggregation = reader.enum($root.tensorflow.VariableAggregation);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.VariableDef.prototype.variable_name = "";
- $root.tensorflow.VariableDef.prototype.initial_value_name = "";
- $root.tensorflow.VariableDef.prototype.initializer_name = "";
- $root.tensorflow.VariableDef.prototype.snapshot_name = "";
- $root.tensorflow.VariableDef.prototype.save_slice_info_def = null;
- $root.tensorflow.VariableDef.prototype.is_resource = false;
- $root.tensorflow.VariableDef.prototype.trainable = false;
- $root.tensorflow.VariableDef.prototype.synchronization = 0;
- $root.tensorflow.VariableDef.prototype.aggregation = 0;
- $root.tensorflow.SaveSliceInfoDef = class SaveSliceInfoDef {
- constructor() {
- this.full_shape = [];
- this.var_offset = [];
- this.var_shape = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SaveSliceInfoDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.full_name = reader.string();
- break;
- case 2:
- message.full_shape = reader.array(message.full_shape, () => reader.int64(), tag);
- break;
- case 3:
- message.var_offset = reader.array(message.var_offset, () => reader.int64(), tag);
- break;
- case 4:
- message.var_shape = reader.array(message.var_shape, () => reader.int64(), tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SaveSliceInfoDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "full_name":
- message.full_name = reader.string();
- break;
- case "full_shape":
- reader.array(message.full_shape, () => reader.int64());
- break;
- case "var_offset":
- reader.array(message.var_offset, () => reader.int64());
- break;
- case "var_shape":
- reader.array(message.var_shape, () => reader.int64());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SaveSliceInfoDef.prototype.full_name = "";
- $root.tensorflow.StructuredValue = class StructuredValue {
- constructor() {
- }
- get kind() {
- $root.tensorflow.StructuredValue.kindSet = $root.tensorflow.StructuredValue.kindSet || new Set([ "none_value", "float64_value", "int64_value", "string_value", "bool_value", "tensor_shape_value", "tensor_dtype_value", "tensor_spec_value", "type_spec_value", "bounded_tensor_spec_value", "list_value", "tuple_value", "dict_value", "named_tuple_value"]);
- return Object.keys(this).find((key) => $root.tensorflow.StructuredValue.kindSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.StructuredValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.none_value = $root.tensorflow.NoneValue.decode(reader, reader.uint32());
- break;
- case 11:
- message.float64_value = reader.double();
- break;
- case 12:
- message.int64_value = reader.sint64();
- break;
- case 13:
- message.string_value = reader.string();
- break;
- case 14:
- message.bool_value = reader.bool();
- break;
- case 31:
- message.tensor_shape_value = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 32:
- message.tensor_dtype_value = reader.int32();
- break;
- case 33:
- message.tensor_spec_value = $root.tensorflow.TensorSpecProto.decode(reader, reader.uint32());
- break;
- case 34:
- message.type_spec_value = $root.tensorflow.TypeSpecProto.decode(reader, reader.uint32());
- break;
- case 35:
- message.bounded_tensor_spec_value = $root.tensorflow.BoundedTensorSpecProto.decode(reader, reader.uint32());
- break;
- case 51:
- message.list_value = $root.tensorflow.ListValue.decode(reader, reader.uint32());
- break;
- case 52:
- message.tuple_value = $root.tensorflow.TupleValue.decode(reader, reader.uint32());
- break;
- case 53:
- message.dict_value = $root.tensorflow.DictValue.decode(reader, reader.uint32());
- break;
- case 54:
- message.named_tuple_value = $root.tensorflow.NamedTupleValue.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.StructuredValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "none_value":
- message.none_value = $root.tensorflow.NoneValue.decodeText(reader);
- break;
- case "float64_value":
- message.float64_value = reader.double();
- break;
- case "int64_value":
- message.int64_value = reader.sint64();
- break;
- case "string_value":
- message.string_value = reader.string();
- break;
- case "bool_value":
- message.bool_value = reader.bool();
- break;
- case "tensor_shape_value":
- message.tensor_shape_value = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "tensor_dtype_value":
- message.tensor_dtype_value = reader.enum($root.tensorflow.DataType);
- break;
- case "tensor_spec_value":
- message.tensor_spec_value = $root.tensorflow.TensorSpecProto.decodeText(reader);
- break;
- case "type_spec_value":
- message.type_spec_value = $root.tensorflow.TypeSpecProto.decodeText(reader);
- break;
- case "bounded_tensor_spec_value":
- message.bounded_tensor_spec_value = $root.tensorflow.BoundedTensorSpecProto.decodeText(reader);
- break;
- case "list_value":
- message.list_value = $root.tensorflow.ListValue.decodeText(reader);
- break;
- case "tuple_value":
- message.tuple_value = $root.tensorflow.TupleValue.decodeText(reader);
- break;
- case "dict_value":
- message.dict_value = $root.tensorflow.DictValue.decodeText(reader);
- break;
- case "named_tuple_value":
- message.named_tuple_value = $root.tensorflow.NamedTupleValue.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.NoneValue = class NoneValue {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.NoneValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.NoneValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.ListValue = class ListValue {
- constructor() {
- this.values = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ListValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.values.push($root.tensorflow.StructuredValue.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ListValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "values":
- message.values.push($root.tensorflow.StructuredValue.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TupleValue = class TupleValue {
- constructor() {
- this.values = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TupleValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.values.push($root.tensorflow.StructuredValue.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TupleValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "values":
- message.values.push($root.tensorflow.StructuredValue.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.DictValue = class DictValue {
- constructor() {
- this.fields = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.DictValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- reader.entry(message.fields, () => reader.string(), () => $root.tensorflow.StructuredValue.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.DictValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "fields":
- reader.entry(message.fields, () => reader.string(), () => $root.tensorflow.StructuredValue.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.PairValue = class PairValue {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.PairValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.key = reader.string();
- break;
- case 2:
- message.value = $root.tensorflow.StructuredValue.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.PairValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "key":
- message.key = reader.string();
- break;
- case "value":
- message.value = $root.tensorflow.StructuredValue.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.PairValue.prototype.key = "";
- $root.tensorflow.PairValue.prototype.value = null;
- $root.tensorflow.NamedTupleValue = class NamedTupleValue {
- constructor() {
- this.values = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.NamedTupleValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.values.push($root.tensorflow.PairValue.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.NamedTupleValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "values":
- message.values.push($root.tensorflow.PairValue.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.NamedTupleValue.prototype.name = "";
- $root.tensorflow.TensorSpecProto = class TensorSpecProto {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorSpecProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 3:
- message.dtype = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorSpecProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorSpecProto.prototype.name = "";
- $root.tensorflow.TensorSpecProto.prototype.shape = null;
- $root.tensorflow.TensorSpecProto.prototype.dtype = 0;
- $root.tensorflow.BoundedTensorSpecProto = class BoundedTensorSpecProto {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.BoundedTensorSpecProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 3:
- message.dtype = reader.int32();
- break;
- case 4:
- message.minimum = $root.tensorflow.TensorProto.decode(reader, reader.uint32());
- break;
- case 5:
- message.maximum = $root.tensorflow.TensorProto.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.BoundedTensorSpecProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- case "minimum":
- message.minimum = $root.tensorflow.TensorProto.decodeText(reader);
- break;
- case "maximum":
- message.maximum = $root.tensorflow.TensorProto.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.BoundedTensorSpecProto.prototype.name = "";
- $root.tensorflow.BoundedTensorSpecProto.prototype.shape = null;
- $root.tensorflow.BoundedTensorSpecProto.prototype.dtype = 0;
- $root.tensorflow.BoundedTensorSpecProto.prototype.minimum = null;
- $root.tensorflow.BoundedTensorSpecProto.prototype.maximum = null;
- $root.tensorflow.TypeSpecProto = class TypeSpecProto {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TypeSpecProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type_spec_class = reader.int32();
- break;
- case 2:
- message.type_state = $root.tensorflow.StructuredValue.decode(reader, reader.uint32());
- break;
- case 3:
- message.type_spec_class_name = reader.string();
- break;
- case 4:
- message.num_flat_components = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TypeSpecProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "type_spec_class":
- message.type_spec_class = reader.enum($root.tensorflow.TypeSpecProto.TypeSpecClass);
- break;
- case "type_state":
- message.type_state = $root.tensorflow.StructuredValue.decodeText(reader);
- break;
- case "type_spec_class_name":
- message.type_spec_class_name = reader.string();
- break;
- case "num_flat_components":
- message.num_flat_components = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TypeSpecProto.prototype.type_spec_class = 0;
- $root.tensorflow.TypeSpecProto.prototype.type_state = null;
- $root.tensorflow.TypeSpecProto.prototype.type_spec_class_name = "";
- $root.tensorflow.TypeSpecProto.prototype.num_flat_components = 0;
- $root.tensorflow.TypeSpecProto.TypeSpecClass = {
- "UNKNOWN": 0,
- "SPARSE_TENSOR_SPEC": 1,
- "INDEXED_SLICES_SPEC": 2,
- "RAGGED_TENSOR_SPEC": 3,
- "TENSOR_ARRAY_SPEC": 4,
- "DATA_DATASET_SPEC": 5,
- "DATA_ITERATOR_SPEC": 6,
- "OPTIONAL_SPEC": 7,
- "PER_REPLICA_SPEC": 8,
- "VARIABLE_SPEC": 9,
- "ROW_PARTITION_SPEC": 10,
- "REGISTERED_TYPE_SPEC": 12,
- "EXTENSION_TYPE_SPEC": 13
- };
- $root.tensorflow.TrackableObjectGraph = class TrackableObjectGraph {
- constructor() {
- this.nodes = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TrackableObjectGraph();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.nodes.push($root.tensorflow.TrackableObjectGraph.TrackableObject.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TrackableObjectGraph();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "nodes":
- message.nodes.push($root.tensorflow.TrackableObjectGraph.TrackableObject.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TrackableObjectGraph.TrackableObject = class TrackableObject {
- constructor() {
- this.children = [];
- this.attributes = [];
- this.slot_variables = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.children.push($root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.decode(reader, reader.uint32()));
- break;
- case 2:
- message.attributes.push($root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.decode(reader, reader.uint32()));
- break;
- case 3:
- message.slot_variables.push($root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.decode(reader, reader.uint32()));
- break;
- case 4:
- message.registered_saver = $root.tensorflow.RegisteredSaver.decode(reader, reader.uint32());
- break;
- case 5:
- message.has_checkpoint_values = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "children":
- message.children.push($root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.decodeText(reader));
- break;
- case "attributes":
- message.attributes.push($root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.decodeText(reader));
- break;
- case "slot_variables":
- message.slot_variables.push($root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.decodeText(reader));
- break;
- case "registered_saver":
- message.registered_saver = $root.tensorflow.RegisteredSaver.decodeText(reader);
- break;
- case "has_checkpoint_values":
- message.has_checkpoint_values = $root.google.protobuf.BoolValue.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TrackableObjectGraph.TrackableObject.prototype.registered_saver = null;
- $root.tensorflow.TrackableObjectGraph.TrackableObject.prototype.has_checkpoint_values = null;
- $root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference = class ObjectReference {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.node_id = reader.int32();
- break;
- case 2:
- message.local_name = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node_id":
- message.node_id = reader.int32();
- break;
- case "local_name":
- message.local_name = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.node_id = 0;
- $root.tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.prototype.local_name = "";
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor = class SerializedTensor {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.full_name = reader.string();
- break;
- case 3:
- message.checkpoint_key = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "full_name":
- message.full_name = reader.string();
- break;
- case "checkpoint_key":
- message.checkpoint_key = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.name = "";
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.full_name = "";
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor.prototype.checkpoint_key = "";
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference = class SlotVariableReference {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.original_variable_node_id = reader.int32();
- break;
- case 2:
- message.slot_name = reader.string();
- break;
- case 3:
- message.slot_variable_node_id = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "original_variable_node_id":
- message.original_variable_node_id = reader.int32();
- break;
- case "slot_name":
- message.slot_name = reader.string();
- break;
- case "slot_variable_node_id":
- message.slot_variable_node_id = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.original_variable_node_id = 0;
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.slot_name = "";
- $root.tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference.prototype.slot_variable_node_id = 0;
- $root.tensorflow.RegisteredSaver = class RegisteredSaver {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RegisteredSaver();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.object_name = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RegisteredSaver();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "object_name":
- message.object_name = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RegisteredSaver.prototype.name = "";
- $root.tensorflow.RegisteredSaver.prototype.object_name = "";
- $root.tensorflow.SaverDef = class SaverDef {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SaverDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.filename_tensor_name = reader.string();
- break;
- case 2:
- message.save_tensor_name = reader.string();
- break;
- case 3:
- message.restore_op_name = reader.string();
- break;
- case 4:
- message.max_to_keep = reader.int32();
- break;
- case 5:
- message.sharded = reader.bool();
- break;
- case 6:
- message.keep_checkpoint_every_n_hours = reader.float();
- break;
- case 7:
- message.version = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SaverDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "filename_tensor_name":
- message.filename_tensor_name = reader.string();
- break;
- case "save_tensor_name":
- message.save_tensor_name = reader.string();
- break;
- case "restore_op_name":
- message.restore_op_name = reader.string();
- break;
- case "max_to_keep":
- message.max_to_keep = reader.int32();
- break;
- case "sharded":
- message.sharded = reader.bool();
- break;
- case "keep_checkpoint_every_n_hours":
- message.keep_checkpoint_every_n_hours = reader.float();
- break;
- case "version":
- message.version = reader.enum($root.tensorflow.SaverDef.CheckpointFormatVersion);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SaverDef.prototype.filename_tensor_name = "";
- $root.tensorflow.SaverDef.prototype.save_tensor_name = "";
- $root.tensorflow.SaverDef.prototype.restore_op_name = "";
- $root.tensorflow.SaverDef.prototype.max_to_keep = 0;
- $root.tensorflow.SaverDef.prototype.sharded = false;
- $root.tensorflow.SaverDef.prototype.keep_checkpoint_every_n_hours = 0;
- $root.tensorflow.SaverDef.prototype.version = 0;
- $root.tensorflow.SaverDef.CheckpointFormatVersion = {
- "LEGACY": 0,
- "V1": 1,
- "V2": 2
- };
- $root.tensorflow.BundleHeaderProto = class BundleHeaderProto {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.BundleHeaderProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.num_shards = reader.int32();
- break;
- case 2:
- message.endianness = reader.int32();
- break;
- case 3:
- message.version = $root.tensorflow.VersionDef.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.BundleHeaderProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "num_shards":
- message.num_shards = reader.int32();
- break;
- case "endianness":
- message.endianness = reader.enum($root.tensorflow.BundleHeaderProto.Endianness);
- break;
- case "version":
- message.version = $root.tensorflow.VersionDef.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.BundleHeaderProto.prototype.num_shards = 0;
- $root.tensorflow.BundleHeaderProto.prototype.endianness = 0;
- $root.tensorflow.BundleHeaderProto.prototype.version = null;
- $root.tensorflow.BundleHeaderProto.Endianness = {
- "LITTLE": 0,
- "BIG": 1
- };
- $root.tensorflow.BundleEntryProto = class BundleEntryProto {
- constructor() {
- this.slices = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.BundleEntryProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.dtype = reader.int32();
- break;
- case 2:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 3:
- message.shard_id = reader.int32();
- break;
- case 4:
- message.offset = reader.int64();
- break;
- case 5:
- message.size = reader.int64();
- break;
- case 6:
- message.crc32c = reader.fixed32();
- break;
- case 7:
- message.slices.push($root.tensorflow.TensorSliceProto.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.BundleEntryProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "shard_id":
- message.shard_id = reader.int32();
- break;
- case "offset":
- message.offset = reader.int64();
- break;
- case "size":
- message.size = reader.int64();
- break;
- case "crc32c":
- message.crc32c = reader.fixed32();
- break;
- case "slices":
- message.slices.push($root.tensorflow.TensorSliceProto.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.BundleEntryProto.prototype.dtype = 0;
- $root.tensorflow.BundleEntryProto.prototype.shape = null;
- $root.tensorflow.BundleEntryProto.prototype.shard_id = 0;
- $root.tensorflow.BundleEntryProto.prototype.offset = protobuf.Int64.create(0);
- $root.tensorflow.BundleEntryProto.prototype.size = protobuf.Int64.create(0);
- $root.tensorflow.BundleEntryProto.prototype.crc32c = 0;
- $root.tensorflow.TensorSliceProto = class TensorSliceProto {
- constructor() {
- this.extent = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorSliceProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.extent.push($root.tensorflow.TensorSliceProto.Extent.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorSliceProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "extent":
- message.extent.push($root.tensorflow.TensorSliceProto.Extent.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorSliceProto.Extent = class Extent {
- constructor() {
- }
- get has_length() {
- $root.tensorflow.TensorSliceProto.Extent.has_lengthSet = $root.tensorflow.TensorSliceProto.Extent.has_lengthSet || new Set([ "length"]);
- return Object.keys(this).find((key) => $root.tensorflow.TensorSliceProto.Extent.has_lengthSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorSliceProto.Extent();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.start = reader.int64();
- break;
- case 2:
- message.length = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorSliceProto.Extent();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "start":
- message.start = reader.int64();
- break;
- case "length":
- message.length = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorSliceProto.Extent.prototype.start = protobuf.Int64.create(0);
- $root.tensorflow.SavedSliceMeta = class SavedSliceMeta {
- constructor() {
- this.slice = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedSliceMeta();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 3:
- message.type = reader.int32();
- break;
- case 4:
- message.slice.push($root.tensorflow.TensorSliceProto.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedSliceMeta();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "type":
- message.type = reader.enum($root.tensorflow.DataType);
- break;
- case "slice":
- message.slice.push($root.tensorflow.TensorSliceProto.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedSliceMeta.prototype.name = "";
- $root.tensorflow.SavedSliceMeta.prototype.shape = null;
- $root.tensorflow.SavedSliceMeta.prototype.type = 0;
- $root.tensorflow.SavedTensorSliceMeta = class SavedTensorSliceMeta {
- constructor() {
- this.tensor = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedTensorSliceMeta();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.tensor.push($root.tensorflow.SavedSliceMeta.decode(reader, reader.uint32()));
- break;
- case 2:
- message.versions = $root.tensorflow.VersionDef.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedTensorSliceMeta();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "tensor":
- message.tensor.push($root.tensorflow.SavedSliceMeta.decodeText(reader));
- break;
- case "versions":
- message.versions = $root.tensorflow.VersionDef.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedTensorSliceMeta.prototype.versions = null;
- $root.tensorflow.SavedSlice = class SavedSlice {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedSlice();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.slice = $root.tensorflow.TensorSliceProto.decode(reader, reader.uint32());
- break;
- case 3:
- message.data = $root.tensorflow.TensorProto.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedSlice();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "slice":
- message.slice = $root.tensorflow.TensorSliceProto.decodeText(reader);
- break;
- case "data":
- message.data = $root.tensorflow.TensorProto.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedSlice.prototype.name = "";
- $root.tensorflow.SavedSlice.prototype.slice = null;
- $root.tensorflow.SavedSlice.prototype.data = null;
- $root.tensorflow.SavedTensorSlices = class SavedTensorSlices {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SavedTensorSlices();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.meta = $root.tensorflow.SavedTensorSliceMeta.decode(reader, reader.uint32());
- break;
- case 2:
- message.data = $root.tensorflow.SavedSlice.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SavedTensorSlices();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "meta":
- message.meta = $root.tensorflow.SavedTensorSliceMeta.decodeText(reader);
- break;
- case "data":
- message.data = $root.tensorflow.SavedSlice.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SavedTensorSlices.prototype.meta = null;
- $root.tensorflow.SavedTensorSlices.prototype.data = null;
- $root.tensorflow.Event = class Event {
- constructor() {
- }
- get what() {
- $root.tensorflow.Event.whatSet = $root.tensorflow.Event.whatSet || new Set([ "file_version", "graph_def", "summary", "log_message", "session_log", "tagged_run_metadata", "meta_graph_def"]);
- return Object.keys(this).find((key) => $root.tensorflow.Event.whatSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.Event();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.wall_time = reader.double();
- break;
- case 2:
- message.step = reader.int64();
- break;
- case 3:
- message.file_version = reader.string();
- break;
- case 4:
- message.graph_def = reader.bytes();
- break;
- case 5:
- message.summary = $root.tensorflow.Summary.decode(reader, reader.uint32());
- break;
- case 6:
- message.log_message = $root.tensorflow.LogMessage.decode(reader, reader.uint32());
- break;
- case 7:
- message.session_log = $root.tensorflow.SessionLog.decode(reader, reader.uint32());
- break;
- case 8:
- message.tagged_run_metadata = $root.tensorflow.TaggedRunMetadata.decode(reader, reader.uint32());
- break;
- case 9:
- message.meta_graph_def = reader.bytes();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.Event();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "wall_time":
- message.wall_time = reader.double();
- break;
- case "step":
- message.step = reader.int64();
- break;
- case "file_version":
- message.file_version = reader.string();
- break;
- case "graph_def":
- message.graph_def = reader.bytes();
- break;
- case "summary":
- message.summary = $root.tensorflow.Summary.decodeText(reader);
- break;
- case "log_message":
- message.log_message = $root.tensorflow.LogMessage.decodeText(reader);
- break;
- case "session_log":
- message.session_log = $root.tensorflow.SessionLog.decodeText(reader);
- break;
- case "tagged_run_metadata":
- message.tagged_run_metadata = $root.tensorflow.TaggedRunMetadata.decodeText(reader);
- break;
- case "meta_graph_def":
- message.meta_graph_def = reader.bytes();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.Event.prototype.wall_time = 0;
- $root.tensorflow.Event.prototype.step = protobuf.Int64.create(0);
- $root.tensorflow.LogMessage = class LogMessage {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.LogMessage();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.level = reader.int32();
- break;
- case 2:
- message.message = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.LogMessage();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "level":
- message.level = reader.enum($root.tensorflow.LogMessage.Level);
- break;
- case "message":
- message.message = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.LogMessage.prototype.level = 0;
- $root.tensorflow.LogMessage.prototype.message = "";
- $root.tensorflow.LogMessage.Level = {
- "UNKNOWN": 0,
- "DEBUGGING": 10,
- "INFO": 20,
- "WARN": 30,
- "ERROR": 40,
- "FATAL": 50
- };
- $root.tensorflow.SessionLog = class SessionLog {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SessionLog();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.status = reader.int32();
- break;
- case 2:
- message.checkpoint_path = reader.string();
- break;
- case 3:
- message.msg = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SessionLog();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "status":
- message.status = reader.enum($root.tensorflow.SessionLog.SessionStatus);
- break;
- case "checkpoint_path":
- message.checkpoint_path = reader.string();
- break;
- case "msg":
- message.msg = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SessionLog.prototype.status = 0;
- $root.tensorflow.SessionLog.prototype.checkpoint_path = "";
- $root.tensorflow.SessionLog.prototype.msg = "";
- $root.tensorflow.SessionLog.SessionStatus = {
- "STATUS_UNSPECIFIED": 0,
- "START": 1,
- "STOP": 2,
- "CHECKPOINT": 3
- };
- $root.tensorflow.TaggedRunMetadata = class TaggedRunMetadata {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TaggedRunMetadata();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.tag = reader.string();
- break;
- case 2:
- message.run_metadata = reader.bytes();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TaggedRunMetadata();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "tag":
- message.tag = reader.string();
- break;
- case "run_metadata":
- message.run_metadata = reader.bytes();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TaggedRunMetadata.prototype.tag = "";
- $root.tensorflow.TaggedRunMetadata.prototype.run_metadata = new Uint8Array([]);
- $root.tensorflow.WorkerHealth = {
- "OK": 0,
- "RECEIVED_SHUTDOWN_SIGNAL": 1,
- "INTERNAL_ERROR": 2,
- "SHUTTING_DOWN": 3
- };
- $root.tensorflow.WorkerShutdownMode = {
- "DEFAULT": 0,
- "NOT_CONFIGURED": 1,
- "WAIT_FOR_COORDINATOR": 2,
- "SHUTDOWN_AFTER_TIMEOUT": 3
- };
- $root.tensorflow.WatchdogConfig = class WatchdogConfig {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.WatchdogConfig();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.timeout_ms = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.WatchdogConfig();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "timeout_ms":
- message.timeout_ms = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.WatchdogConfig.prototype.timeout_ms = protobuf.Int64.create(0);
- $root.tensorflow.RequestedExitCode = class RequestedExitCode {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RequestedExitCode();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.exit_code = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RequestedExitCode();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "exit_code":
- message.exit_code = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RequestedExitCode.prototype.exit_code = 0;
- $root.tensorflow.WorkerHeartbeatRequest = class WorkerHeartbeatRequest {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.WorkerHeartbeatRequest();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.shutdown_mode = reader.int32();
- break;
- case 2:
- message.watchdog_config = $root.tensorflow.WatchdogConfig.decode(reader, reader.uint32());
- break;
- case 3:
- message.exit_code = $root.tensorflow.RequestedExitCode.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.WorkerHeartbeatRequest();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "shutdown_mode":
- message.shutdown_mode = reader.enum($root.tensorflow.WorkerShutdownMode);
- break;
- case "watchdog_config":
- message.watchdog_config = $root.tensorflow.WatchdogConfig.decodeText(reader);
- break;
- case "exit_code":
- message.exit_code = $root.tensorflow.RequestedExitCode.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.WorkerHeartbeatRequest.prototype.shutdown_mode = 0;
- $root.tensorflow.WorkerHeartbeatRequest.prototype.watchdog_config = null;
- $root.tensorflow.WorkerHeartbeatRequest.prototype.exit_code = null;
- $root.tensorflow.WorkerHeartbeatResponse = class WorkerHeartbeatResponse {
- constructor() {
- this.worker_log = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.WorkerHeartbeatResponse();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.health_status = reader.int32();
- break;
- case 2:
- message.worker_log.push($root.tensorflow.Event.decode(reader, reader.uint32()));
- break;
- case 3:
- message.hostname = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.WorkerHeartbeatResponse();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "health_status":
- message.health_status = reader.enum($root.tensorflow.WorkerHealth);
- break;
- case "worker_log":
- message.worker_log.push($root.tensorflow.Event.decodeText(reader));
- break;
- case "hostname":
- message.hostname = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.WorkerHeartbeatResponse.prototype.health_status = 0;
- $root.tensorflow.WorkerHeartbeatResponse.prototype.hostname = "";
- $root.tensorflow.SummaryDescription = class SummaryDescription {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SummaryDescription();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type_hint = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SummaryDescription();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "type_hint":
- message.type_hint = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SummaryDescription.prototype.type_hint = "";
- $root.tensorflow.HistogramProto = class HistogramProto {
- constructor() {
- this.bucket_limit = [];
- this.bucket = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.HistogramProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.min = reader.double();
- break;
- case 2:
- message.max = reader.double();
- break;
- case 3:
- message.num = reader.double();
- break;
- case 4:
- message.sum = reader.double();
- break;
- case 5:
- message.sum_squares = reader.double();
- break;
- case 6:
- message.bucket_limit = reader.doubles(message.bucket_limit, tag);
- break;
- case 7:
- message.bucket = reader.doubles(message.bucket, tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.HistogramProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "min":
- message.min = reader.double();
- break;
- case "max":
- message.max = reader.double();
- break;
- case "num":
- message.num = reader.double();
- break;
- case "sum":
- message.sum = reader.double();
- break;
- case "sum_squares":
- message.sum_squares = reader.double();
- break;
- case "bucket_limit":
- reader.array(message.bucket_limit, () => reader.double());
- break;
- case "bucket":
- reader.array(message.bucket, () => reader.double());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.HistogramProto.prototype.min = 0;
- $root.tensorflow.HistogramProto.prototype.max = 0;
- $root.tensorflow.HistogramProto.prototype.num = 0;
- $root.tensorflow.HistogramProto.prototype.sum = 0;
- $root.tensorflow.HistogramProto.prototype.sum_squares = 0;
- $root.tensorflow.SummaryMetadata = class SummaryMetadata {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SummaryMetadata();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.plugin_data = $root.tensorflow.SummaryMetadata.PluginData.decode(reader, reader.uint32());
- break;
- case 2:
- message.display_name = reader.string();
- break;
- case 3:
- message.summary_description = reader.string();
- break;
- case 4:
- message.data_class = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SummaryMetadata();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "plugin_data":
- message.plugin_data = $root.tensorflow.SummaryMetadata.PluginData.decodeText(reader);
- break;
- case "display_name":
- message.display_name = reader.string();
- break;
- case "summary_description":
- message.summary_description = reader.string();
- break;
- case "data_class":
- message.data_class = reader.enum($root.tensorflow.DataClass);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SummaryMetadata.prototype.plugin_data = null;
- $root.tensorflow.SummaryMetadata.prototype.display_name = "";
- $root.tensorflow.SummaryMetadata.prototype.summary_description = "";
- $root.tensorflow.SummaryMetadata.prototype.data_class = 0;
- $root.tensorflow.SummaryMetadata.PluginData = class PluginData {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SummaryMetadata.PluginData();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.plugin_name = reader.string();
- break;
- case 2:
- message.content = reader.bytes();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SummaryMetadata.PluginData();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "plugin_name":
- message.plugin_name = reader.string();
- break;
- case "content":
- message.content = reader.bytes();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SummaryMetadata.PluginData.prototype.plugin_name = "";
- $root.tensorflow.SummaryMetadata.PluginData.prototype.content = new Uint8Array([]);
- $root.tensorflow.DataClass = {
- "DATA_CLASS_UNKNOWN": 0,
- "DATA_CLASS_SCALAR": 1,
- "DATA_CLASS_TENSOR": 2,
- "DATA_CLASS_BLOB_SEQUENCE": 3
- };
- $root.tensorflow.Summary = class Summary {
- constructor() {
- this.value = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.Summary();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.value.push($root.tensorflow.Summary.Value.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.Summary();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "value":
- message.value.push($root.tensorflow.Summary.Value.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.Summary.Image = class Image {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.Summary.Image();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.height = reader.int32();
- break;
- case 2:
- message.width = reader.int32();
- break;
- case 3:
- message.colorspace = reader.int32();
- break;
- case 4:
- message.encoded_image_string = reader.bytes();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.Summary.Image();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "height":
- message.height = reader.int32();
- break;
- case "width":
- message.width = reader.int32();
- break;
- case "colorspace":
- message.colorspace = reader.int32();
- break;
- case "encoded_image_string":
- message.encoded_image_string = reader.bytes();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.Summary.Image.prototype.height = 0;
- $root.tensorflow.Summary.Image.prototype.width = 0;
- $root.tensorflow.Summary.Image.prototype.colorspace = 0;
- $root.tensorflow.Summary.Image.prototype.encoded_image_string = new Uint8Array([]);
- $root.tensorflow.Summary.Audio = class Audio {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.Summary.Audio();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.sample_rate = reader.float();
- break;
- case 2:
- message.num_channels = reader.int64();
- break;
- case 3:
- message.length_frames = reader.int64();
- break;
- case 4:
- message.encoded_audio_string = reader.bytes();
- break;
- case 5:
- message.content_type = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.Summary.Audio();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "sample_rate":
- message.sample_rate = reader.float();
- break;
- case "num_channels":
- message.num_channels = reader.int64();
- break;
- case "length_frames":
- message.length_frames = reader.int64();
- break;
- case "encoded_audio_string":
- message.encoded_audio_string = reader.bytes();
- break;
- case "content_type":
- message.content_type = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.Summary.Audio.prototype.sample_rate = 0;
- $root.tensorflow.Summary.Audio.prototype.num_channels = protobuf.Int64.create(0);
- $root.tensorflow.Summary.Audio.prototype.length_frames = protobuf.Int64.create(0);
- $root.tensorflow.Summary.Audio.prototype.encoded_audio_string = new Uint8Array([]);
- $root.tensorflow.Summary.Audio.prototype.content_type = "";
- $root.tensorflow.Summary.Value = class Value {
- constructor() {
- }
- get value() {
- $root.tensorflow.Summary.Value.valueSet = $root.tensorflow.Summary.Value.valueSet || new Set([ "simple_value", "obsolete_old_style_histogram", "image", "histo", "audio", "tensor"]);
- return Object.keys(this).find((key) => $root.tensorflow.Summary.Value.valueSet.has(key) && this[key] != null);
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.Summary.Value();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 7:
- message.node_name = reader.string();
- break;
- case 1:
- message.tag = reader.string();
- break;
- case 9:
- message.metadata = $root.tensorflow.SummaryMetadata.decode(reader, reader.uint32());
- break;
- case 2:
- message.simple_value = reader.float();
- break;
- case 3:
- message.obsolete_old_style_histogram = reader.bytes();
- break;
- case 4:
- message.image = $root.tensorflow.Summary.Image.decode(reader, reader.uint32());
- break;
- case 5:
- message.histo = $root.tensorflow.HistogramProto.decode(reader, reader.uint32());
- break;
- case 6:
- message.audio = $root.tensorflow.Summary.Audio.decode(reader, reader.uint32());
- break;
- case 8:
- message.tensor = $root.tensorflow.TensorProto.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.Summary.Value();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node_name":
- message.node_name = reader.string();
- break;
- case "tag":
- message.tag = reader.string();
- break;
- case "metadata":
- message.metadata = $root.tensorflow.SummaryMetadata.decodeText(reader);
- break;
- case "simple_value":
- message.simple_value = reader.float();
- break;
- case "obsolete_old_style_histogram":
- message.obsolete_old_style_histogram = reader.bytes();
- break;
- case "image":
- message.image = $root.tensorflow.Summary.Image.decodeText(reader);
- break;
- case "histo":
- message.histo = $root.tensorflow.HistogramProto.decodeText(reader);
- break;
- case "audio":
- message.audio = $root.tensorflow.Summary.Audio.decodeText(reader);
- break;
- case "tensor":
- message.tensor = $root.tensorflow.TensorProto.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.Summary.Value.prototype.node_name = "";
- $root.tensorflow.Summary.Value.prototype.tag = "";
- $root.tensorflow.Summary.Value.prototype.metadata = null;
- $root.tensorflow.GPUOptions = class GPUOptions {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.GPUOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.per_process_gpu_memory_fraction = reader.double();
- break;
- case 4:
- message.allow_growth = reader.bool();
- break;
- case 2:
- message.allocator_type = reader.string();
- break;
- case 3:
- message.deferred_deletion_bytes = reader.int64();
- break;
- case 5:
- message.visible_device_list = reader.string();
- break;
- case 6:
- message.polling_active_delay_usecs = reader.int32();
- break;
- case 7:
- message.polling_inactive_delay_msecs = reader.int32();
- break;
- case 8:
- message.force_gpu_compatible = reader.bool();
- break;
- case 9:
- message.experimental = $root.tensorflow.GPUOptions.Experimental.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.GPUOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "per_process_gpu_memory_fraction":
- message.per_process_gpu_memory_fraction = reader.double();
- break;
- case "allow_growth":
- message.allow_growth = reader.bool();
- break;
- case "allocator_type":
- message.allocator_type = reader.string();
- break;
- case "deferred_deletion_bytes":
- message.deferred_deletion_bytes = reader.int64();
- break;
- case "visible_device_list":
- message.visible_device_list = reader.string();
- break;
- case "polling_active_delay_usecs":
- message.polling_active_delay_usecs = reader.int32();
- break;
- case "polling_inactive_delay_msecs":
- message.polling_inactive_delay_msecs = reader.int32();
- break;
- case "force_gpu_compatible":
- message.force_gpu_compatible = reader.bool();
- break;
- case "experimental":
- message.experimental = $root.tensorflow.GPUOptions.Experimental.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.GPUOptions.prototype.per_process_gpu_memory_fraction = 0;
- $root.tensorflow.GPUOptions.prototype.allow_growth = false;
- $root.tensorflow.GPUOptions.prototype.allocator_type = "";
- $root.tensorflow.GPUOptions.prototype.deferred_deletion_bytes = protobuf.Int64.create(0);
- $root.tensorflow.GPUOptions.prototype.visible_device_list = "";
- $root.tensorflow.GPUOptions.prototype.polling_active_delay_usecs = 0;
- $root.tensorflow.GPUOptions.prototype.polling_inactive_delay_msecs = 0;
- $root.tensorflow.GPUOptions.prototype.force_gpu_compatible = false;
- $root.tensorflow.GPUOptions.prototype.experimental = null;
- $root.tensorflow.GPUOptions.Experimental = class Experimental {
- constructor() {
- this.virtual_devices = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.GPUOptions.Experimental();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.virtual_devices.push($root.tensorflow.GPUOptions.Experimental.VirtualDevices.decode(reader, reader.uint32()));
- break;
- case 2:
- message.use_unified_memory = reader.bool();
- break;
- case 3:
- message.num_dev_to_dev_copy_streams = reader.int32();
- break;
- case 4:
- message.collective_ring_order = reader.string();
- break;
- case 5:
- message.timestamped_allocator = reader.bool();
- break;
- case 7:
- message.kernel_tracker_max_interval = reader.int32();
- break;
- case 8:
- message.kernel_tracker_max_bytes = reader.int32();
- break;
- case 9:
- message.kernel_tracker_max_pending = reader.int32();
- break;
- case 10:
- message.internal_fragmentation_fraction = reader.double();
- break;
- case 11:
- message.use_cuda_malloc_async = reader.bool();
- break;
- case 12:
- message.disallow_retry_on_allocation_failure = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.GPUOptions.Experimental();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "virtual_devices":
- message.virtual_devices.push($root.tensorflow.GPUOptions.Experimental.VirtualDevices.decodeText(reader));
- break;
- case "use_unified_memory":
- message.use_unified_memory = reader.bool();
- break;
- case "num_dev_to_dev_copy_streams":
- message.num_dev_to_dev_copy_streams = reader.int32();
- break;
- case "collective_ring_order":
- message.collective_ring_order = reader.string();
- break;
- case "timestamped_allocator":
- message.timestamped_allocator = reader.bool();
- break;
- case "kernel_tracker_max_interval":
- message.kernel_tracker_max_interval = reader.int32();
- break;
- case "kernel_tracker_max_bytes":
- message.kernel_tracker_max_bytes = reader.int32();
- break;
- case "kernel_tracker_max_pending":
- message.kernel_tracker_max_pending = reader.int32();
- break;
- case "internal_fragmentation_fraction":
- message.internal_fragmentation_fraction = reader.double();
- break;
- case "use_cuda_malloc_async":
- message.use_cuda_malloc_async = reader.bool();
- break;
- case "disallow_retry_on_allocation_failure":
- message.disallow_retry_on_allocation_failure = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.GPUOptions.Experimental.prototype.use_unified_memory = false;
- $root.tensorflow.GPUOptions.Experimental.prototype.num_dev_to_dev_copy_streams = 0;
- $root.tensorflow.GPUOptions.Experimental.prototype.collective_ring_order = "";
- $root.tensorflow.GPUOptions.Experimental.prototype.timestamped_allocator = false;
- $root.tensorflow.GPUOptions.Experimental.prototype.kernel_tracker_max_interval = 0;
- $root.tensorflow.GPUOptions.Experimental.prototype.kernel_tracker_max_bytes = 0;
- $root.tensorflow.GPUOptions.Experimental.prototype.kernel_tracker_max_pending = 0;
- $root.tensorflow.GPUOptions.Experimental.prototype.internal_fragmentation_fraction = 0;
- $root.tensorflow.GPUOptions.Experimental.prototype.use_cuda_malloc_async = false;
- $root.tensorflow.GPUOptions.Experimental.prototype.disallow_retry_on_allocation_failure = false;
- $root.tensorflow.GPUOptions.Experimental.VirtualDevices = class VirtualDevices {
- constructor() {
- this.memory_limit_mb = [];
- this.priority = [];
- this.device_ordinal = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.GPUOptions.Experimental.VirtualDevices();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.memory_limit_mb = reader.floats(message.memory_limit_mb, tag);
- break;
- case 2:
- message.priority = reader.array(message.priority, () => reader.int32(), tag);
- break;
- case 3:
- message.device_ordinal = reader.array(message.device_ordinal, () => reader.int32(), tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.GPUOptions.Experimental.VirtualDevices();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "memory_limit_mb":
- reader.array(message.memory_limit_mb, () => reader.float());
- break;
- case "priority":
- reader.array(message.priority, () => reader.int32());
- break;
- case "device_ordinal":
- reader.array(message.device_ordinal, () => reader.int32());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.OptimizerOptions = class OptimizerOptions {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.OptimizerOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.do_common_subexpression_elimination = reader.bool();
- break;
- case 2:
- message.do_constant_folding = reader.bool();
- break;
- case 6:
- message.max_folded_constant_in_bytes = reader.int64();
- break;
- case 4:
- message.do_function_inlining = reader.bool();
- break;
- case 3:
- message.opt_level = reader.int32();
- break;
- case 5:
- message.global_jit_level = reader.int32();
- break;
- case 7:
- message.cpu_global_jit = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.OptimizerOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "do_common_subexpression_elimination":
- message.do_common_subexpression_elimination = reader.bool();
- break;
- case "do_constant_folding":
- message.do_constant_folding = reader.bool();
- break;
- case "max_folded_constant_in_bytes":
- message.max_folded_constant_in_bytes = reader.int64();
- break;
- case "do_function_inlining":
- message.do_function_inlining = reader.bool();
- break;
- case "opt_level":
- message.opt_level = reader.enum($root.tensorflow.OptimizerOptions.Level);
- break;
- case "global_jit_level":
- message.global_jit_level = reader.enum($root.tensorflow.OptimizerOptions.GlobalJitLevel);
- break;
- case "cpu_global_jit":
- message.cpu_global_jit = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.OptimizerOptions.prototype.do_common_subexpression_elimination = false;
- $root.tensorflow.OptimizerOptions.prototype.do_constant_folding = false;
- $root.tensorflow.OptimizerOptions.prototype.max_folded_constant_in_bytes = protobuf.Int64.create(0);
- $root.tensorflow.OptimizerOptions.prototype.do_function_inlining = false;
- $root.tensorflow.OptimizerOptions.prototype.opt_level = 0;
- $root.tensorflow.OptimizerOptions.prototype.global_jit_level = 0;
- $root.tensorflow.OptimizerOptions.prototype.cpu_global_jit = false;
- $root.tensorflow.OptimizerOptions.Level = {
- "L1": 0,
- "L0": -1
- };
- $root.tensorflow.OptimizerOptions.GlobalJitLevel = {
- "DEFAULT": 0,
- "OFF": -1,
- "ON_1": 1,
- "ON_2": 2
- };
- $root.tensorflow.GraphOptions = class GraphOptions {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.GraphOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.enable_recv_scheduling = reader.bool();
- break;
- case 3:
- message.optimizer_options = $root.tensorflow.OptimizerOptions.decode(reader, reader.uint32());
- break;
- case 4:
- message.build_cost_model = reader.int64();
- break;
- case 9:
- message.build_cost_model_after = reader.int64();
- break;
- case 5:
- message.infer_shapes = reader.bool();
- break;
- case 6:
- message.place_pruned_graph = reader.bool();
- break;
- case 7:
- message.enable_bfloat16_sendrecv = reader.bool();
- break;
- case 8:
- message.timeline_step = reader.int32();
- break;
- case 10:
- message.rewrite_options = $root.tensorflow.RewriterConfig.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.GraphOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "enable_recv_scheduling":
- message.enable_recv_scheduling = reader.bool();
- break;
- case "optimizer_options":
- message.optimizer_options = $root.tensorflow.OptimizerOptions.decodeText(reader);
- break;
- case "build_cost_model":
- message.build_cost_model = reader.int64();
- break;
- case "build_cost_model_after":
- message.build_cost_model_after = reader.int64();
- break;
- case "infer_shapes":
- message.infer_shapes = reader.bool();
- break;
- case "place_pruned_graph":
- message.place_pruned_graph = reader.bool();
- break;
- case "enable_bfloat16_sendrecv":
- message.enable_bfloat16_sendrecv = reader.bool();
- break;
- case "timeline_step":
- message.timeline_step = reader.int32();
- break;
- case "rewrite_options":
- message.rewrite_options = $root.tensorflow.RewriterConfig.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.GraphOptions.prototype.enable_recv_scheduling = false;
- $root.tensorflow.GraphOptions.prototype.optimizer_options = null;
- $root.tensorflow.GraphOptions.prototype.build_cost_model = protobuf.Int64.create(0);
- $root.tensorflow.GraphOptions.prototype.build_cost_model_after = protobuf.Int64.create(0);
- $root.tensorflow.GraphOptions.prototype.infer_shapes = false;
- $root.tensorflow.GraphOptions.prototype.place_pruned_graph = false;
- $root.tensorflow.GraphOptions.prototype.enable_bfloat16_sendrecv = false;
- $root.tensorflow.GraphOptions.prototype.timeline_step = 0;
- $root.tensorflow.GraphOptions.prototype.rewrite_options = null;
- $root.tensorflow.ThreadPoolOptionProto = class ThreadPoolOptionProto {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ThreadPoolOptionProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.num_threads = reader.int32();
- break;
- case 2:
- message.global_name = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ThreadPoolOptionProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "num_threads":
- message.num_threads = reader.int32();
- break;
- case "global_name":
- message.global_name = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.ThreadPoolOptionProto.prototype.num_threads = 0;
- $root.tensorflow.ThreadPoolOptionProto.prototype.global_name = "";
- $root.tensorflow.RPCOptions = class RPCOptions {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RPCOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.use_rpc_for_inprocess_master = reader.bool();
- break;
- case 2:
- message.compression_algorithm = reader.string();
- break;
- case 3:
- message.compression_level = reader.int32();
- break;
- case 4:
- message.cache_rpc_response = reader.bool();
- break;
- case 5:
- message.disable_session_connection_sharing = reader.bool();
- break;
- case 6:
- message.num_channels_per_target = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RPCOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "use_rpc_for_inprocess_master":
- message.use_rpc_for_inprocess_master = reader.bool();
- break;
- case "compression_algorithm":
- message.compression_algorithm = reader.string();
- break;
- case "compression_level":
- message.compression_level = reader.int32();
- break;
- case "cache_rpc_response":
- message.cache_rpc_response = reader.bool();
- break;
- case "disable_session_connection_sharing":
- message.disable_session_connection_sharing = reader.bool();
- break;
- case "num_channels_per_target":
- message.num_channels_per_target = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RPCOptions.prototype.use_rpc_for_inprocess_master = false;
- $root.tensorflow.RPCOptions.prototype.compression_algorithm = "";
- $root.tensorflow.RPCOptions.prototype.compression_level = 0;
- $root.tensorflow.RPCOptions.prototype.cache_rpc_response = false;
- $root.tensorflow.RPCOptions.prototype.disable_session_connection_sharing = false;
- $root.tensorflow.RPCOptions.prototype.num_channels_per_target = 0;
- $root.tensorflow.SessionMetadata = class SessionMetadata {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.SessionMetadata();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.version = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.SessionMetadata();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "version":
- message.version = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.SessionMetadata.prototype.name = "";
- $root.tensorflow.SessionMetadata.prototype.version = protobuf.Int64.create(0);
- $root.tensorflow.ConfigProto = class ConfigProto {
- constructor() {
- this.device_count = {};
- this.session_inter_op_thread_pool = [];
- this.device_filters = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ConfigProto();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- reader.entry(message.device_count, () => reader.string(), () => reader.int32());
- break;
- case 2:
- message.intra_op_parallelism_threads = reader.int32();
- break;
- case 5:
- message.inter_op_parallelism_threads = reader.int32();
- break;
- case 9:
- message.use_per_session_threads = reader.bool();
- break;
- case 12:
- message.session_inter_op_thread_pool.push($root.tensorflow.ThreadPoolOptionProto.decode(reader, reader.uint32()));
- break;
- case 3:
- message.placement_period = reader.int32();
- break;
- case 4:
- message.device_filters.push(reader.string());
- break;
- case 6:
- message.gpu_options = $root.tensorflow.GPUOptions.decode(reader, reader.uint32());
- break;
- case 7:
- message.allow_soft_placement = reader.bool();
- break;
- case 8:
- message.log_device_placement = reader.bool();
- break;
- case 10:
- message.graph_options = $root.tensorflow.GraphOptions.decode(reader, reader.uint32());
- break;
- case 11:
- message.operation_timeout_in_ms = reader.int64();
- break;
- case 13:
- message.rpc_options = $root.tensorflow.RPCOptions.decode(reader, reader.uint32());
- break;
- case 14:
- message.cluster_def = $root.tensorflow.ClusterDef.decode(reader, reader.uint32());
- break;
- case 15:
- message.isolate_session_state = reader.bool();
- break;
- case 17:
- message.share_cluster_devices_in_session = reader.bool();
- break;
- case 16:
- message.experimental = $root.tensorflow.ConfigProto.Experimental.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ConfigProto();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "device_count":
- reader.entry(message.device_count, () => reader.string(), () => reader.int32());
- break;
- case "intra_op_parallelism_threads":
- message.intra_op_parallelism_threads = reader.int32();
- break;
- case "inter_op_parallelism_threads":
- message.inter_op_parallelism_threads = reader.int32();
- break;
- case "use_per_session_threads":
- message.use_per_session_threads = reader.bool();
- break;
- case "session_inter_op_thread_pool":
- message.session_inter_op_thread_pool.push($root.tensorflow.ThreadPoolOptionProto.decodeText(reader));
- break;
- case "placement_period":
- message.placement_period = reader.int32();
- break;
- case "device_filters":
- reader.array(message.device_filters, () => reader.string());
- break;
- case "gpu_options":
- message.gpu_options = $root.tensorflow.GPUOptions.decodeText(reader);
- break;
- case "allow_soft_placement":
- message.allow_soft_placement = reader.bool();
- break;
- case "log_device_placement":
- message.log_device_placement = reader.bool();
- break;
- case "graph_options":
- message.graph_options = $root.tensorflow.GraphOptions.decodeText(reader);
- break;
- case "operation_timeout_in_ms":
- message.operation_timeout_in_ms = reader.int64();
- break;
- case "rpc_options":
- message.rpc_options = $root.tensorflow.RPCOptions.decodeText(reader);
- break;
- case "cluster_def":
- message.cluster_def = $root.tensorflow.ClusterDef.decodeText(reader);
- break;
- case "isolate_session_state":
- message.isolate_session_state = reader.bool();
- break;
- case "share_cluster_devices_in_session":
- message.share_cluster_devices_in_session = reader.bool();
- break;
- case "experimental":
- message.experimental = $root.tensorflow.ConfigProto.Experimental.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.ConfigProto.prototype.intra_op_parallelism_threads = 0;
- $root.tensorflow.ConfigProto.prototype.inter_op_parallelism_threads = 0;
- $root.tensorflow.ConfigProto.prototype.use_per_session_threads = false;
- $root.tensorflow.ConfigProto.prototype.placement_period = 0;
- $root.tensorflow.ConfigProto.prototype.gpu_options = null;
- $root.tensorflow.ConfigProto.prototype.allow_soft_placement = false;
- $root.tensorflow.ConfigProto.prototype.log_device_placement = false;
- $root.tensorflow.ConfigProto.prototype.graph_options = null;
- $root.tensorflow.ConfigProto.prototype.operation_timeout_in_ms = protobuf.Int64.create(0);
- $root.tensorflow.ConfigProto.prototype.rpc_options = null;
- $root.tensorflow.ConfigProto.prototype.cluster_def = null;
- $root.tensorflow.ConfigProto.prototype.isolate_session_state = false;
- $root.tensorflow.ConfigProto.prototype.share_cluster_devices_in_session = false;
- $root.tensorflow.ConfigProto.prototype.experimental = null;
- $root.tensorflow.ConfigProto.Experimental = class Experimental {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ConfigProto.Experimental();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.collective_group_leader = reader.string();
- break;
- case 3:
- message.executor_type = reader.string();
- break;
- case 4:
- message.recv_buf_max_chunk = reader.int32();
- break;
- case 5:
- message.use_numa_affinity = reader.bool();
- break;
- case 6:
- message.collective_deterministic_sequential_execution = reader.bool();
- break;
- case 7:
- message.collective_nccl = reader.bool();
- break;
- case 8:
- message.share_session_state_in_clusterspec_propagation = reader.bool();
- break;
- case 9:
- message.disable_thread_spinning = reader.bool();
- break;
- case 10:
- message.share_cluster_devices_in_session = reader.bool();
- break;
- case 11:
- message.session_metadata = $root.tensorflow.SessionMetadata.decode(reader, reader.uint32());
- break;
- case 12:
- message.optimize_for_static_graph = reader.bool();
- break;
- case 13:
- message.enable_mlir_bridge = reader.bool();
- break;
- case 17:
- message.mlir_bridge_rollout = reader.int32();
- break;
- case 16:
- message.enable_mlir_graph_optimization = reader.bool();
- break;
- case 14:
- message.disable_output_partition_graphs = reader.bool();
- break;
- case 15:
- message.xla_fusion_autotuner_thresh = reader.int64();
- break;
- case 18:
- message.use_tfrt = reader.bool();
- break;
- case 21:
- message.disable_functional_ops_lowering = reader.bool();
- break;
- case 22:
- message.xla_prefer_single_graph_cluster = reader.bool();
- break;
- case 23:
- message.coordination_config = $root.tensorflow.CoordinationServiceConfig.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ConfigProto.Experimental();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "collective_group_leader":
- message.collective_group_leader = reader.string();
- break;
- case "executor_type":
- message.executor_type = reader.string();
- break;
- case "recv_buf_max_chunk":
- message.recv_buf_max_chunk = reader.int32();
- break;
- case "use_numa_affinity":
- message.use_numa_affinity = reader.bool();
- break;
- case "collective_deterministic_sequential_execution":
- message.collective_deterministic_sequential_execution = reader.bool();
- break;
- case "collective_nccl":
- message.collective_nccl = reader.bool();
- break;
- case "share_session_state_in_clusterspec_propagation":
- message.share_session_state_in_clusterspec_propagation = reader.bool();
- break;
- case "disable_thread_spinning":
- message.disable_thread_spinning = reader.bool();
- break;
- case "share_cluster_devices_in_session":
- message.share_cluster_devices_in_session = reader.bool();
- break;
- case "session_metadata":
- message.session_metadata = $root.tensorflow.SessionMetadata.decodeText(reader);
- break;
- case "optimize_for_static_graph":
- message.optimize_for_static_graph = reader.bool();
- break;
- case "enable_mlir_bridge":
- message.enable_mlir_bridge = reader.bool();
- break;
- case "mlir_bridge_rollout":
- message.mlir_bridge_rollout = reader.enum($root.tensorflow.ConfigProto.Experimental.MlirBridgeRollout);
- break;
- case "enable_mlir_graph_optimization":
- message.enable_mlir_graph_optimization = reader.bool();
- break;
- case "disable_output_partition_graphs":
- message.disable_output_partition_graphs = reader.bool();
- break;
- case "xla_fusion_autotuner_thresh":
- message.xla_fusion_autotuner_thresh = reader.int64();
- break;
- case "use_tfrt":
- message.use_tfrt = reader.bool();
- break;
- case "disable_functional_ops_lowering":
- message.disable_functional_ops_lowering = reader.bool();
- break;
- case "xla_prefer_single_graph_cluster":
- message.xla_prefer_single_graph_cluster = reader.bool();
- break;
- case "coordination_config":
- message.coordination_config = $root.tensorflow.CoordinationServiceConfig.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.ConfigProto.Experimental.prototype.collective_group_leader = "";
- $root.tensorflow.ConfigProto.Experimental.prototype.executor_type = "";
- $root.tensorflow.ConfigProto.Experimental.prototype.recv_buf_max_chunk = 0;
- $root.tensorflow.ConfigProto.Experimental.prototype.use_numa_affinity = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.collective_deterministic_sequential_execution = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.collective_nccl = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.share_session_state_in_clusterspec_propagation = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.disable_thread_spinning = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.share_cluster_devices_in_session = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.session_metadata = null;
- $root.tensorflow.ConfigProto.Experimental.prototype.optimize_for_static_graph = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.enable_mlir_bridge = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.mlir_bridge_rollout = 0;
- $root.tensorflow.ConfigProto.Experimental.prototype.enable_mlir_graph_optimization = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.disable_output_partition_graphs = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.xla_fusion_autotuner_thresh = protobuf.Int64.create(0);
- $root.tensorflow.ConfigProto.Experimental.prototype.use_tfrt = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.disable_functional_ops_lowering = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.xla_prefer_single_graph_cluster = false;
- $root.tensorflow.ConfigProto.Experimental.prototype.coordination_config = null;
- $root.tensorflow.ConfigProto.Experimental.MlirBridgeRollout = {
- "MLIR_BRIDGE_ROLLOUT_UNSPECIFIED": 0,
- "MLIR_BRIDGE_ROLLOUT_ENABLED": 1,
- "MLIR_BRIDGE_ROLLOUT_DISABLED": 2,
- "MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED": 3,
- "MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED": 4
- };
- $root.tensorflow.RunOptions = class RunOptions {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RunOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.trace_level = reader.int32();
- break;
- case 2:
- message.timeout_in_ms = reader.int64();
- break;
- case 3:
- message.inter_op_thread_pool = reader.int32();
- break;
- case 5:
- message.output_partition_graphs = reader.bool();
- break;
- case 6:
- message.debug_options = $root.tensorflow.DebugOptions.decode(reader, reader.uint32());
- break;
- case 7:
- message.report_tensor_allocations_upon_oom = reader.bool();
- break;
- case 8:
- message.experimental = $root.tensorflow.RunOptions.Experimental.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RunOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "trace_level":
- message.trace_level = reader.enum($root.tensorflow.RunOptions.TraceLevel);
- break;
- case "timeout_in_ms":
- message.timeout_in_ms = reader.int64();
- break;
- case "inter_op_thread_pool":
- message.inter_op_thread_pool = reader.int32();
- break;
- case "output_partition_graphs":
- message.output_partition_graphs = reader.bool();
- break;
- case "debug_options":
- message.debug_options = $root.tensorflow.DebugOptions.decodeText(reader);
- break;
- case "report_tensor_allocations_upon_oom":
- message.report_tensor_allocations_upon_oom = reader.bool();
- break;
- case "experimental":
- message.experimental = $root.tensorflow.RunOptions.Experimental.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RunOptions.prototype.trace_level = 0;
- $root.tensorflow.RunOptions.prototype.timeout_in_ms = protobuf.Int64.create(0);
- $root.tensorflow.RunOptions.prototype.inter_op_thread_pool = 0;
- $root.tensorflow.RunOptions.prototype.output_partition_graphs = false;
- $root.tensorflow.RunOptions.prototype.debug_options = null;
- $root.tensorflow.RunOptions.prototype.report_tensor_allocations_upon_oom = false;
- $root.tensorflow.RunOptions.prototype.experimental = null;
- $root.tensorflow.RunOptions.TraceLevel = {
- "NO_TRACE": 0,
- "SOFTWARE_TRACE": 1,
- "HARDWARE_TRACE": 2,
- "FULL_TRACE": 3
- };
- $root.tensorflow.RunOptions.Experimental = class Experimental {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RunOptions.Experimental();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.collective_graph_key = reader.int64();
- break;
- case 2:
- message.use_run_handler_pool = reader.bool();
- break;
- case 3:
- message.run_handler_pool_options = $root.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RunOptions.Experimental();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "collective_graph_key":
- message.collective_graph_key = reader.int64();
- break;
- case "use_run_handler_pool":
- message.use_run_handler_pool = reader.bool();
- break;
- case "run_handler_pool_options":
- message.run_handler_pool_options = $root.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RunOptions.Experimental.prototype.collective_graph_key = protobuf.Int64.create(0);
- $root.tensorflow.RunOptions.Experimental.prototype.use_run_handler_pool = false;
- $root.tensorflow.RunOptions.Experimental.prototype.run_handler_pool_options = null;
- $root.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions = class RunHandlerPoolOptions {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.priority = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "priority":
- message.priority = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions.prototype.priority = protobuf.Int64.create(0);
- $root.tensorflow.RunMetadata = class RunMetadata {
- constructor() {
- this.partition_graphs = [];
- this.function_graphs = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RunMetadata();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.step_stats = $root.tensorflow.StepStats.decode(reader, reader.uint32());
- break;
- case 2:
- message.cost_graph = $root.tensorflow.CostGraphDef.decode(reader, reader.uint32());
- break;
- case 3:
- message.partition_graphs.push($root.tensorflow.GraphDef.decode(reader, reader.uint32()));
- break;
- case 4:
- message.function_graphs.push($root.tensorflow.RunMetadata.FunctionGraphs.decode(reader, reader.uint32()));
- break;
- case 5:
- message.session_metadata = $root.tensorflow.SessionMetadata.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RunMetadata();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "step_stats":
- message.step_stats = $root.tensorflow.StepStats.decodeText(reader);
- break;
- case "cost_graph":
- message.cost_graph = $root.tensorflow.CostGraphDef.decodeText(reader);
- break;
- case "partition_graphs":
- message.partition_graphs.push($root.tensorflow.GraphDef.decodeText(reader));
- break;
- case "function_graphs":
- message.function_graphs.push($root.tensorflow.RunMetadata.FunctionGraphs.decodeText(reader));
- break;
- case "session_metadata":
- message.session_metadata = $root.tensorflow.SessionMetadata.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RunMetadata.prototype.step_stats = null;
- $root.tensorflow.RunMetadata.prototype.cost_graph = null;
- $root.tensorflow.RunMetadata.prototype.session_metadata = null;
- $root.tensorflow.RunMetadata.FunctionGraphs = class FunctionGraphs {
- constructor() {
- this.partition_graphs = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RunMetadata.FunctionGraphs();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.partition_graphs.push($root.tensorflow.GraphDef.decode(reader, reader.uint32()));
- break;
- case 2:
- message.pre_optimization_graph = $root.tensorflow.GraphDef.decode(reader, reader.uint32());
- break;
- case 3:
- message.post_optimization_graph = $root.tensorflow.GraphDef.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RunMetadata.FunctionGraphs();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "partition_graphs":
- message.partition_graphs.push($root.tensorflow.GraphDef.decodeText(reader));
- break;
- case "pre_optimization_graph":
- message.pre_optimization_graph = $root.tensorflow.GraphDef.decodeText(reader);
- break;
- case "post_optimization_graph":
- message.post_optimization_graph = $root.tensorflow.GraphDef.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RunMetadata.FunctionGraphs.prototype.pre_optimization_graph = null;
- $root.tensorflow.RunMetadata.FunctionGraphs.prototype.post_optimization_graph = null;
- $root.tensorflow.TensorConnection = class TensorConnection {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorConnection();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.from_tensor = reader.string();
- break;
- case 2:
- message.to_tensor = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorConnection();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "from_tensor":
- message.from_tensor = reader.string();
- break;
- case "to_tensor":
- message.to_tensor = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorConnection.prototype.from_tensor = "";
- $root.tensorflow.TensorConnection.prototype.to_tensor = "";
- $root.tensorflow.CallableOptions = class CallableOptions {
- constructor() {
- this.feed = [];
- this.fetch = [];
- this.target = [];
- this.tensor_connection = [];
- this.feed_devices = {};
- this.fetch_devices = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CallableOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.feed.push(reader.string());
- break;
- case 2:
- message.fetch.push(reader.string());
- break;
- case 3:
- message.target.push(reader.string());
- break;
- case 4:
- message.run_options = $root.tensorflow.RunOptions.decode(reader, reader.uint32());
- break;
- case 5:
- message.tensor_connection.push($root.tensorflow.TensorConnection.decode(reader, reader.uint32()));
- break;
- case 6:
- reader.entry(message.feed_devices, () => reader.string(), () => reader.string());
- break;
- case 7:
- reader.entry(message.fetch_devices, () => reader.string(), () => reader.string());
- break;
- case 8:
- message.fetch_skip_sync = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CallableOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "feed":
- reader.array(message.feed, () => reader.string());
- break;
- case "fetch":
- reader.array(message.fetch, () => reader.string());
- break;
- case "target":
- reader.array(message.target, () => reader.string());
- break;
- case "run_options":
- message.run_options = $root.tensorflow.RunOptions.decodeText(reader);
- break;
- case "tensor_connection":
- message.tensor_connection.push($root.tensorflow.TensorConnection.decodeText(reader));
- break;
- case "feed_devices":
- reader.entry(message.feed_devices, () => reader.string(), () => reader.string());
- break;
- case "fetch_devices":
- reader.entry(message.fetch_devices, () => reader.string(), () => reader.string());
- break;
- case "fetch_skip_sync":
- message.fetch_skip_sync = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CallableOptions.prototype.run_options = null;
- $root.tensorflow.CallableOptions.prototype.fetch_skip_sync = false;
- $root.tensorflow.CostGraphDef = class CostGraphDef {
- constructor() {
- this.node = [];
- this.cost = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CostGraphDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.node.push($root.tensorflow.CostGraphDef.Node.decode(reader, reader.uint32()));
- break;
- case 2:
- message.cost.push($root.tensorflow.CostGraphDef.AggregatedCost.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CostGraphDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node":
- message.node.push($root.tensorflow.CostGraphDef.Node.decodeText(reader));
- break;
- case "cost":
- message.cost.push($root.tensorflow.CostGraphDef.AggregatedCost.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CostGraphDef.Node = class Node {
- constructor() {
- this.input_info = [];
- this.output_info = [];
- this.control_input = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CostGraphDef.Node();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- message.device = reader.string();
- break;
- case 3:
- message.id = reader.int32();
- break;
- case 4:
- message.input_info.push($root.tensorflow.CostGraphDef.Node.InputInfo.decode(reader, reader.uint32()));
- break;
- case 5:
- message.output_info.push($root.tensorflow.CostGraphDef.Node.OutputInfo.decode(reader, reader.uint32()));
- break;
- case 6:
- message.temporary_memory_size = reader.int64();
- break;
- case 12:
- message.persistent_memory_size = reader.int64();
- break;
- case 10:
- message.host_temp_memory_size = reader.int64();
- break;
- case 11:
- message.device_temp_memory_size = reader.int64();
- break;
- case 16:
- message.device_persistent_memory_size = reader.int64();
- break;
- case 9:
- message.compute_cost = reader.int64();
- break;
- case 14:
- message.compute_time = reader.int64();
- break;
- case 15:
- message.memory_time = reader.int64();
- break;
- case 7:
- message.is_final = reader.bool();
- break;
- case 8:
- message.control_input = reader.array(message.control_input, () => reader.int32(), tag);
- break;
- case 17:
- message.inaccurate = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CostGraphDef.Node();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "device":
- message.device = reader.string();
- break;
- case "id":
- message.id = reader.int32();
- break;
- case "input_info":
- message.input_info.push($root.tensorflow.CostGraphDef.Node.InputInfo.decodeText(reader));
- break;
- case "output_info":
- message.output_info.push($root.tensorflow.CostGraphDef.Node.OutputInfo.decodeText(reader));
- break;
- case "temporary_memory_size":
- message.temporary_memory_size = reader.int64();
- break;
- case "persistent_memory_size":
- message.persistent_memory_size = reader.int64();
- break;
- case "host_temp_memory_size":
- message.host_temp_memory_size = reader.int64();
- break;
- case "device_temp_memory_size":
- message.device_temp_memory_size = reader.int64();
- break;
- case "device_persistent_memory_size":
- message.device_persistent_memory_size = reader.int64();
- break;
- case "compute_cost":
- message.compute_cost = reader.int64();
- break;
- case "compute_time":
- message.compute_time = reader.int64();
- break;
- case "memory_time":
- message.memory_time = reader.int64();
- break;
- case "is_final":
- message.is_final = reader.bool();
- break;
- case "control_input":
- reader.array(message.control_input, () => reader.int32());
- break;
- case "inaccurate":
- message.inaccurate = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CostGraphDef.Node.prototype.name = "";
- $root.tensorflow.CostGraphDef.Node.prototype.device = "";
- $root.tensorflow.CostGraphDef.Node.prototype.id = 0;
- $root.tensorflow.CostGraphDef.Node.prototype.temporary_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.persistent_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.host_temp_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.device_temp_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.device_persistent_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.compute_cost = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.compute_time = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.memory_time = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.prototype.is_final = false;
- $root.tensorflow.CostGraphDef.Node.prototype.inaccurate = false;
- $root.tensorflow.CostGraphDef.Node.InputInfo = class InputInfo {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CostGraphDef.Node.InputInfo();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.preceding_node = reader.int32();
- break;
- case 2:
- message.preceding_port = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CostGraphDef.Node.InputInfo();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "preceding_node":
- message.preceding_node = reader.int32();
- break;
- case "preceding_port":
- message.preceding_port = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CostGraphDef.Node.InputInfo.prototype.preceding_node = 0;
- $root.tensorflow.CostGraphDef.Node.InputInfo.prototype.preceding_port = 0;
- $root.tensorflow.CostGraphDef.Node.OutputInfo = class OutputInfo {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CostGraphDef.Node.OutputInfo();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.size = reader.int64();
- break;
- case 2:
- message.alias_input_port = reader.int64();
- break;
- case 3:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 4:
- message.dtype = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CostGraphDef.Node.OutputInfo();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "size":
- message.size = reader.int64();
- break;
- case "alias_input_port":
- message.alias_input_port = reader.int64();
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CostGraphDef.Node.OutputInfo.prototype.size = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.OutputInfo.prototype.alias_input_port = protobuf.Int64.create(0);
- $root.tensorflow.CostGraphDef.Node.OutputInfo.prototype.shape = null;
- $root.tensorflow.CostGraphDef.Node.OutputInfo.prototype.dtype = 0;
- $root.tensorflow.CostGraphDef.AggregatedCost = class AggregatedCost {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CostGraphDef.AggregatedCost();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.cost = reader.float();
- break;
- case 2:
- message.dimension = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CostGraphDef.AggregatedCost();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "cost":
- message.cost = reader.float();
- break;
- case "dimension":
- message.dimension = reader.string();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CostGraphDef.AggregatedCost.prototype.cost = 0;
- $root.tensorflow.CostGraphDef.AggregatedCost.prototype.dimension = "";
- $root.tensorflow.AllocationRecord = class AllocationRecord {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.AllocationRecord();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.alloc_micros = reader.int64();
- break;
- case 2:
- message.alloc_bytes = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.AllocationRecord();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "alloc_micros":
- message.alloc_micros = reader.int64();
- break;
- case "alloc_bytes":
- message.alloc_bytes = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AllocationRecord.prototype.alloc_micros = protobuf.Int64.create(0);
- $root.tensorflow.AllocationRecord.prototype.alloc_bytes = protobuf.Int64.create(0);
- $root.tensorflow.AllocatorMemoryUsed = class AllocatorMemoryUsed {
- constructor() {
- this.allocation_records = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.AllocatorMemoryUsed();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.allocator_name = reader.string();
- break;
- case 2:
- message.total_bytes = reader.int64();
- break;
- case 3:
- message.peak_bytes = reader.int64();
- break;
- case 4:
- message.live_bytes = reader.int64();
- break;
- case 6:
- message.allocation_records.push($root.tensorflow.AllocationRecord.decode(reader, reader.uint32()));
- break;
- case 5:
- message.allocator_bytes_in_use = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.AllocatorMemoryUsed();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "allocator_name":
- message.allocator_name = reader.string();
- break;
- case "total_bytes":
- message.total_bytes = reader.int64();
- break;
- case "peak_bytes":
- message.peak_bytes = reader.int64();
- break;
- case "live_bytes":
- message.live_bytes = reader.int64();
- break;
- case "allocation_records":
- message.allocation_records.push($root.tensorflow.AllocationRecord.decodeText(reader));
- break;
- case "allocator_bytes_in_use":
- message.allocator_bytes_in_use = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AllocatorMemoryUsed.prototype.allocator_name = "";
- $root.tensorflow.AllocatorMemoryUsed.prototype.total_bytes = protobuf.Int64.create(0);
- $root.tensorflow.AllocatorMemoryUsed.prototype.peak_bytes = protobuf.Int64.create(0);
- $root.tensorflow.AllocatorMemoryUsed.prototype.live_bytes = protobuf.Int64.create(0);
- $root.tensorflow.AllocatorMemoryUsed.prototype.allocator_bytes_in_use = protobuf.Int64.create(0);
- $root.tensorflow.NodeOutput = class NodeOutput {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.NodeOutput();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.slot = reader.int32();
- break;
- case 3:
- message.tensor_description = $root.tensorflow.TensorDescription.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.NodeOutput();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "slot":
- message.slot = reader.int32();
- break;
- case "tensor_description":
- message.tensor_description = $root.tensorflow.TensorDescription.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.NodeOutput.prototype.slot = 0;
- $root.tensorflow.NodeOutput.prototype.tensor_description = null;
- $root.tensorflow.MemoryStats = class MemoryStats {
- constructor() {
- this.persistent_tensor_alloc_ids = [];
- this.device_persistent_tensor_alloc_ids = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.MemoryStats();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.temp_memory_size = reader.int64();
- break;
- case 3:
- message.persistent_memory_size = reader.int64();
- break;
- case 5:
- message.persistent_tensor_alloc_ids = reader.array(message.persistent_tensor_alloc_ids, () => reader.int64(), tag);
- break;
- case 2:
- message.device_temp_memory_size = reader.int64();
- break;
- case 4:
- message.device_persistent_memory_size = reader.int64();
- break;
- case 6:
- message.device_persistent_tensor_alloc_ids = reader.array(message.device_persistent_tensor_alloc_ids, () => reader.int64(), tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.MemoryStats();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "temp_memory_size":
- message.temp_memory_size = reader.int64();
- break;
- case "persistent_memory_size":
- message.persistent_memory_size = reader.int64();
- break;
- case "persistent_tensor_alloc_ids":
- reader.array(message.persistent_tensor_alloc_ids, () => reader.int64());
- break;
- case "device_temp_memory_size":
- message.device_temp_memory_size = reader.int64();
- break;
- case "device_persistent_memory_size":
- message.device_persistent_memory_size = reader.int64();
- break;
- case "device_persistent_tensor_alloc_ids":
- reader.array(message.device_persistent_tensor_alloc_ids, () => reader.int64());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.MemoryStats.prototype.temp_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.MemoryStats.prototype.persistent_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.MemoryStats.prototype.device_temp_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.MemoryStats.prototype.device_persistent_memory_size = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats = class NodeExecStats {
- constructor() {
- this.memory = [];
- this.output = [];
- this.referenced_tensor = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.NodeExecStats();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.node_name = reader.string();
- break;
- case 2:
- message.all_start_micros = reader.int64();
- break;
- case 3:
- message.op_start_rel_micros = reader.int64();
- break;
- case 4:
- message.op_end_rel_micros = reader.int64();
- break;
- case 5:
- message.all_end_rel_micros = reader.int64();
- break;
- case 6:
- message.memory.push($root.tensorflow.AllocatorMemoryUsed.decode(reader, reader.uint32()));
- break;
- case 7:
- message.output.push($root.tensorflow.NodeOutput.decode(reader, reader.uint32()));
- break;
- case 8:
- message.timeline_label = reader.string();
- break;
- case 9:
- message.scheduled_micros = reader.int64();
- break;
- case 10:
- message.thread_id = reader.uint32();
- break;
- case 11:
- message.referenced_tensor.push($root.tensorflow.AllocationDescription.decode(reader, reader.uint32()));
- break;
- case 12:
- message.memory_stats = $root.tensorflow.MemoryStats.decode(reader, reader.uint32());
- break;
- case 13:
- message.all_start_nanos = reader.int64();
- break;
- case 14:
- message.op_start_rel_nanos = reader.int64();
- break;
- case 15:
- message.op_end_rel_nanos = reader.int64();
- break;
- case 16:
- message.all_end_rel_nanos = reader.int64();
- break;
- case 17:
- message.scheduled_nanos = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.NodeExecStats();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node_name":
- message.node_name = reader.string();
- break;
- case "all_start_micros":
- message.all_start_micros = reader.int64();
- break;
- case "op_start_rel_micros":
- message.op_start_rel_micros = reader.int64();
- break;
- case "op_end_rel_micros":
- message.op_end_rel_micros = reader.int64();
- break;
- case "all_end_rel_micros":
- message.all_end_rel_micros = reader.int64();
- break;
- case "memory":
- message.memory.push($root.tensorflow.AllocatorMemoryUsed.decodeText(reader));
- break;
- case "output":
- message.output.push($root.tensorflow.NodeOutput.decodeText(reader));
- break;
- case "timeline_label":
- message.timeline_label = reader.string();
- break;
- case "scheduled_micros":
- message.scheduled_micros = reader.int64();
- break;
- case "thread_id":
- message.thread_id = reader.uint32();
- break;
- case "referenced_tensor":
- message.referenced_tensor.push($root.tensorflow.AllocationDescription.decodeText(reader));
- break;
- case "memory_stats":
- message.memory_stats = $root.tensorflow.MemoryStats.decodeText(reader);
- break;
- case "all_start_nanos":
- message.all_start_nanos = reader.int64();
- break;
- case "op_start_rel_nanos":
- message.op_start_rel_nanos = reader.int64();
- break;
- case "op_end_rel_nanos":
- message.op_end_rel_nanos = reader.int64();
- break;
- case "all_end_rel_nanos":
- message.all_end_rel_nanos = reader.int64();
- break;
- case "scheduled_nanos":
- message.scheduled_nanos = reader.int64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.NodeExecStats.prototype.node_name = "";
- $root.tensorflow.NodeExecStats.prototype.all_start_micros = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.op_start_rel_micros = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.op_end_rel_micros = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.all_end_rel_micros = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.timeline_label = "";
- $root.tensorflow.NodeExecStats.prototype.scheduled_micros = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.thread_id = 0;
- $root.tensorflow.NodeExecStats.prototype.memory_stats = null;
- $root.tensorflow.NodeExecStats.prototype.all_start_nanos = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.op_start_rel_nanos = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.op_end_rel_nanos = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.all_end_rel_nanos = protobuf.Int64.create(0);
- $root.tensorflow.NodeExecStats.prototype.scheduled_nanos = protobuf.Int64.create(0);
- $root.tensorflow.DeviceStepStats = class DeviceStepStats {
- constructor() {
- this.node_stats = [];
- this.thread_names = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.DeviceStepStats();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.device = reader.string();
- break;
- case 2:
- message.node_stats.push($root.tensorflow.NodeExecStats.decode(reader, reader.uint32()));
- break;
- case 3:
- reader.entry(message.thread_names, () => reader.uint32(), () => reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.DeviceStepStats();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "device":
- message.device = reader.string();
- break;
- case "node_stats":
- message.node_stats.push($root.tensorflow.NodeExecStats.decodeText(reader));
- break;
- case "thread_names":
- reader.entry(message.thread_names, () => reader.uint32(), () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.DeviceStepStats.prototype.device = "";
- $root.tensorflow.StepStats = class StepStats {
- constructor() {
- this.dev_stats = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.StepStats();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.dev_stats.push($root.tensorflow.DeviceStepStats.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.StepStats();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "dev_stats":
- message.dev_stats.push($root.tensorflow.DeviceStepStats.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AllocationDescription = class AllocationDescription {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.AllocationDescription();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.requested_bytes = reader.int64();
- break;
- case 2:
- message.allocated_bytes = reader.int64();
- break;
- case 3:
- message.allocator_name = reader.string();
- break;
- case 4:
- message.allocation_id = reader.int64();
- break;
- case 5:
- message.has_single_reference = reader.bool();
- break;
- case 6:
- message.ptr = reader.uint64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.AllocationDescription();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "requested_bytes":
- message.requested_bytes = reader.int64();
- break;
- case "allocated_bytes":
- message.allocated_bytes = reader.int64();
- break;
- case "allocator_name":
- message.allocator_name = reader.string();
- break;
- case "allocation_id":
- message.allocation_id = reader.int64();
- break;
- case "has_single_reference":
- message.has_single_reference = reader.bool();
- break;
- case "ptr":
- message.ptr = reader.uint64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AllocationDescription.prototype.requested_bytes = protobuf.Int64.create(0);
- $root.tensorflow.AllocationDescription.prototype.allocated_bytes = protobuf.Int64.create(0);
- $root.tensorflow.AllocationDescription.prototype.allocator_name = "";
- $root.tensorflow.AllocationDescription.prototype.allocation_id = protobuf.Int64.create(0);
- $root.tensorflow.AllocationDescription.prototype.has_single_reference = false;
- $root.tensorflow.AllocationDescription.prototype.ptr = protobuf.Uint64.create(0);
- $root.tensorflow.TensorDescription = class TensorDescription {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.TensorDescription();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.dtype = reader.int32();
- break;
- case 2:
- message.shape = $root.tensorflow.TensorShapeProto.decode(reader, reader.uint32());
- break;
- case 4:
- message.allocation_description = $root.tensorflow.AllocationDescription.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.TensorDescription();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "dtype":
- message.dtype = reader.enum($root.tensorflow.DataType);
- break;
- case "shape":
- message.shape = $root.tensorflow.TensorShapeProto.decodeText(reader);
- break;
- case "allocation_description":
- message.allocation_description = $root.tensorflow.AllocationDescription.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.TensorDescription.prototype.dtype = 0;
- $root.tensorflow.TensorDescription.prototype.shape = null;
- $root.tensorflow.TensorDescription.prototype.allocation_description = null;
- $root.tensorflow.JobDef = class JobDef {
- constructor() {
- this.tasks = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.JobDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- reader.entry(message.tasks, () => reader.int32(), () => reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.JobDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "tasks":
- reader.entry(message.tasks, () => reader.int32(), () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.JobDef.prototype.name = "";
- $root.tensorflow.ClusterDef = class ClusterDef {
- constructor() {
- this.job = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ClusterDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.job.push($root.tensorflow.JobDef.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ClusterDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "job":
- message.job.push($root.tensorflow.JobDef.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CoordinationServiceConfig = class CoordinationServiceConfig {
- constructor() {
- this.coordinated_jobs = [];
- this.recoverable_jobs = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.CoordinationServiceConfig();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.service_type = reader.string();
- break;
- case 2:
- message.service_leader = reader.string();
- break;
- case 3:
- message.enable_health_check = reader.bool();
- break;
- case 4:
- message.cluster_register_timeout_in_ms = reader.int64();
- break;
- case 5:
- message.heartbeat_timeout_in_ms = reader.int64();
- break;
- case 6:
- message.coordinated_jobs.push(reader.string());
- break;
- case 7:
- message.shutdown_barrier_timeout_in_ms = reader.int64();
- break;
- case 8:
- message.agent_destruction_without_shutdown = reader.bool();
- break;
- case 9:
- message.recoverable_jobs.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.CoordinationServiceConfig();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "service_type":
- message.service_type = reader.string();
- break;
- case "service_leader":
- message.service_leader = reader.string();
- break;
- case "enable_health_check":
- message.enable_health_check = reader.bool();
- break;
- case "cluster_register_timeout_in_ms":
- message.cluster_register_timeout_in_ms = reader.int64();
- break;
- case "heartbeat_timeout_in_ms":
- message.heartbeat_timeout_in_ms = reader.int64();
- break;
- case "coordinated_jobs":
- reader.array(message.coordinated_jobs, () => reader.string());
- break;
- case "shutdown_barrier_timeout_in_ms":
- message.shutdown_barrier_timeout_in_ms = reader.int64();
- break;
- case "agent_destruction_without_shutdown":
- message.agent_destruction_without_shutdown = reader.bool();
- break;
- case "recoverable_jobs":
- reader.array(message.recoverable_jobs, () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.CoordinationServiceConfig.prototype.service_type = "";
- $root.tensorflow.CoordinationServiceConfig.prototype.service_leader = "";
- $root.tensorflow.CoordinationServiceConfig.prototype.enable_health_check = false;
- $root.tensorflow.CoordinationServiceConfig.prototype.cluster_register_timeout_in_ms = protobuf.Int64.create(0);
- $root.tensorflow.CoordinationServiceConfig.prototype.heartbeat_timeout_in_ms = protobuf.Int64.create(0);
- $root.tensorflow.CoordinationServiceConfig.prototype.shutdown_barrier_timeout_in_ms = protobuf.Int64.create(0);
- $root.tensorflow.CoordinationServiceConfig.prototype.agent_destruction_without_shutdown = false;
- $root.tensorflow.DebugTensorWatch = class DebugTensorWatch {
- constructor() {
- this.debug_ops = [];
- this.debug_urls = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.DebugTensorWatch();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.node_name = reader.string();
- break;
- case 2:
- message.output_slot = reader.int32();
- break;
- case 3:
- message.debug_ops.push(reader.string());
- break;
- case 4:
- message.debug_urls.push(reader.string());
- break;
- case 5:
- message.tolerate_debug_op_creation_failures = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.DebugTensorWatch();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node_name":
- message.node_name = reader.string();
- break;
- case "output_slot":
- message.output_slot = reader.int32();
- break;
- case "debug_ops":
- reader.array(message.debug_ops, () => reader.string());
- break;
- case "debug_urls":
- reader.array(message.debug_urls, () => reader.string());
- break;
- case "tolerate_debug_op_creation_failures":
- message.tolerate_debug_op_creation_failures = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.DebugTensorWatch.prototype.node_name = "";
- $root.tensorflow.DebugTensorWatch.prototype.output_slot = 0;
- $root.tensorflow.DebugTensorWatch.prototype.tolerate_debug_op_creation_failures = false;
- $root.tensorflow.DebugOptions = class DebugOptions {
- constructor() {
- this.debug_tensor_watch_opts = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.DebugOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 4:
- message.debug_tensor_watch_opts.push($root.tensorflow.DebugTensorWatch.decode(reader, reader.uint32()));
- break;
- case 10:
- message.global_step = reader.int64();
- break;
- case 11:
- message.reset_disk_byte_usage = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.DebugOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "debug_tensor_watch_opts":
- message.debug_tensor_watch_opts.push($root.tensorflow.DebugTensorWatch.decodeText(reader));
- break;
- case "global_step":
- message.global_step = reader.int64();
- break;
- case "reset_disk_byte_usage":
- message.reset_disk_byte_usage = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.DebugOptions.prototype.global_step = protobuf.Int64.create(0);
- $root.tensorflow.DebugOptions.prototype.reset_disk_byte_usage = false;
- $root.tensorflow.DebuggedSourceFile = class DebuggedSourceFile {
- constructor() {
- this.lines = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.DebuggedSourceFile();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.host = reader.string();
- break;
- case 2:
- message.file_path = reader.string();
- break;
- case 3:
- message.last_modified = reader.int64();
- break;
- case 4:
- message.bytes = reader.int64();
- break;
- case 5:
- message.lines.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.DebuggedSourceFile();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "host":
- message.host = reader.string();
- break;
- case "file_path":
- message.file_path = reader.string();
- break;
- case "last_modified":
- message.last_modified = reader.int64();
- break;
- case "bytes":
- message.bytes = reader.int64();
- break;
- case "lines":
- reader.array(message.lines, () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.DebuggedSourceFile.prototype.host = "";
- $root.tensorflow.DebuggedSourceFile.prototype.file_path = "";
- $root.tensorflow.DebuggedSourceFile.prototype.last_modified = protobuf.Int64.create(0);
- $root.tensorflow.DebuggedSourceFile.prototype.bytes = protobuf.Int64.create(0);
- $root.tensorflow.DebuggedSourceFiles = class DebuggedSourceFiles {
- constructor() {
- this.source_files = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.DebuggedSourceFiles();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.source_files.push($root.tensorflow.DebuggedSourceFile.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.DebuggedSourceFiles();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "source_files":
- message.source_files.push($root.tensorflow.DebuggedSourceFile.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AutoParallelOptions = class AutoParallelOptions {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.AutoParallelOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.enable = reader.bool();
- break;
- case 2:
- message.num_replicas = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.AutoParallelOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "enable":
- message.enable = reader.bool();
- break;
- case "num_replicas":
- message.num_replicas = reader.int32();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.AutoParallelOptions.prototype.enable = false;
- $root.tensorflow.AutoParallelOptions.prototype.num_replicas = 0;
- $root.tensorflow.ScopedAllocatorOptions = class ScopedAllocatorOptions {
- constructor() {
- this.enable_op = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.ScopedAllocatorOptions();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.enable_op.push(reader.string());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.ScopedAllocatorOptions();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "enable_op":
- reader.array(message.enable_op, () => reader.string());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RewriterConfig = class RewriterConfig {
- constructor() {
- this.optimizers = [];
- this.custom_optimizers = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RewriterConfig();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 50:
- message.cpu_layout_conversion = reader.int32();
- break;
- case 1:
- message.layout_optimizer = reader.int32();
- break;
- case 3:
- message.constant_folding = reader.int32();
- break;
- case 13:
- message.shape_optimization = reader.int32();
- break;
- case 14:
- message.remapping = reader.int32();
- break;
- case 24:
- message.common_subgraph_elimination = reader.int32();
- break;
- case 7:
- message.arithmetic_optimization = reader.int32();
- break;
- case 8:
- message.dependency_optimization = reader.int32();
- break;
- case 9:
- message.loop_optimization = reader.int32();
- break;
- case 10:
- message.function_optimization = reader.int32();
- break;
- case 11:
- message.debug_stripper = reader.int32();
- break;
- case 2:
- message.disable_model_pruning = reader.bool();
- break;
- case 15:
- message.scoped_allocator_optimization = reader.int32();
- break;
- case 18:
- message.pin_to_host_optimization = reader.int32();
- break;
- case 22:
- message.implementation_selector = reader.int32();
- break;
- case 23:
- message.auto_mixed_precision = reader.int32();
- break;
- case 25:
- message.auto_mixed_precision_mkl = reader.int32();
- break;
- case 31:
- message.auto_mixed_precision_onednn_bfloat16 = reader.int32();
- break;
- case 29:
- message.auto_mixed_precision_cpu = reader.int32();
- break;
- case 19:
- message.disable_meta_optimizer = reader.bool();
- break;
- case 28:
- message.use_plugin_optimizers = reader.int32();
- break;
- case 30:
- message.experimental_conditional_code_motion = reader.int32();
- break;
- case 12:
- message.meta_optimizer_iterations = reader.int32();
- break;
- case 17:
- message.min_graph_nodes = reader.int32();
- break;
- case 26:
- message.experimental_disable_compressed_tensor_optimization = reader.bool();
- break;
- case 27:
- message.experimental_disable_folding_quantization_emulation = reader.bool();
- break;
- case 4:
- message.memory_optimization = reader.int32();
- break;
- case 6:
- message.memory_optimizer_target_node_name_scope = reader.string();
- break;
- case 20:
- message.meta_optimizer_timeout_ms = reader.int64();
- break;
- case 5:
- message.auto_parallel = $root.tensorflow.AutoParallelOptions.decode(reader, reader.uint32());
- break;
- case 21:
- message.fail_on_optimizer_errors = reader.bool();
- break;
- case 16:
- message.scoped_allocator_opts = $root.tensorflow.ScopedAllocatorOptions.decode(reader, reader.uint32());
- break;
- case 100:
- message.optimizers.push(reader.string());
- break;
- case 200:
- message.custom_optimizers.push($root.tensorflow.RewriterConfig.CustomGraphOptimizer.decode(reader, reader.uint32()));
- break;
- case 300:
- message.inter_optimizer_verifier_config = $root.tensorflow.VerifierConfig.decode(reader, reader.uint32());
- break;
- case 301:
- message.post_optimization_verifier_config = $root.tensorflow.VerifierConfig.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RewriterConfig();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "cpu_layout_conversion":
- message.cpu_layout_conversion = reader.enum($root.tensorflow.RewriterConfig.CpuLayout);
- break;
- case "layout_optimizer":
- message.layout_optimizer = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "constant_folding":
- message.constant_folding = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "shape_optimization":
- message.shape_optimization = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "remapping":
- message.remapping = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "common_subgraph_elimination":
- message.common_subgraph_elimination = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "arithmetic_optimization":
- message.arithmetic_optimization = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "dependency_optimization":
- message.dependency_optimization = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "loop_optimization":
- message.loop_optimization = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "function_optimization":
- message.function_optimization = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "debug_stripper":
- message.debug_stripper = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "disable_model_pruning":
- message.disable_model_pruning = reader.bool();
- break;
- case "scoped_allocator_optimization":
- message.scoped_allocator_optimization = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "pin_to_host_optimization":
- message.pin_to_host_optimization = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "implementation_selector":
- message.implementation_selector = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "auto_mixed_precision":
- message.auto_mixed_precision = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "auto_mixed_precision_mkl":
- message.auto_mixed_precision_mkl = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "auto_mixed_precision_onednn_bfloat16":
- message.auto_mixed_precision_onednn_bfloat16 = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "auto_mixed_precision_cpu":
- message.auto_mixed_precision_cpu = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "disable_meta_optimizer":
- message.disable_meta_optimizer = reader.bool();
- break;
- case "use_plugin_optimizers":
- message.use_plugin_optimizers = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "experimental_conditional_code_motion":
- message.experimental_conditional_code_motion = reader.enum($root.tensorflow.RewriterConfig.Toggle);
- break;
- case "meta_optimizer_iterations":
- message.meta_optimizer_iterations = reader.enum($root.tensorflow.RewriterConfig.NumIterationsType);
- break;
- case "min_graph_nodes":
- message.min_graph_nodes = reader.int32();
- break;
- case "experimental_disable_compressed_tensor_optimization":
- message.experimental_disable_compressed_tensor_optimization = reader.bool();
- break;
- case "experimental_disable_folding_quantization_emulation":
- message.experimental_disable_folding_quantization_emulation = reader.bool();
- break;
- case "memory_optimization":
- message.memory_optimization = reader.enum($root.tensorflow.RewriterConfig.MemOptType);
- break;
- case "memory_optimizer_target_node_name_scope":
- message.memory_optimizer_target_node_name_scope = reader.string();
- break;
- case "meta_optimizer_timeout_ms":
- message.meta_optimizer_timeout_ms = reader.int64();
- break;
- case "auto_parallel":
- message.auto_parallel = $root.tensorflow.AutoParallelOptions.decodeText(reader);
- break;
- case "fail_on_optimizer_errors":
- message.fail_on_optimizer_errors = reader.bool();
- break;
- case "scoped_allocator_opts":
- message.scoped_allocator_opts = $root.tensorflow.ScopedAllocatorOptions.decodeText(reader);
- break;
- case "optimizers":
- reader.array(message.optimizers, () => reader.string());
- break;
- case "custom_optimizers":
- message.custom_optimizers.push($root.tensorflow.RewriterConfig.CustomGraphOptimizer.decodeText(reader));
- break;
- case "inter_optimizer_verifier_config":
- message.inter_optimizer_verifier_config = $root.tensorflow.VerifierConfig.decodeText(reader);
- break;
- case "post_optimization_verifier_config":
- message.post_optimization_verifier_config = $root.tensorflow.VerifierConfig.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RewriterConfig.prototype.cpu_layout_conversion = 0;
- $root.tensorflow.RewriterConfig.prototype.layout_optimizer = 0;
- $root.tensorflow.RewriterConfig.prototype.constant_folding = 0;
- $root.tensorflow.RewriterConfig.prototype.shape_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.remapping = 0;
- $root.tensorflow.RewriterConfig.prototype.common_subgraph_elimination = 0;
- $root.tensorflow.RewriterConfig.prototype.arithmetic_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.dependency_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.loop_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.function_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.debug_stripper = 0;
- $root.tensorflow.RewriterConfig.prototype.disable_model_pruning = false;
- $root.tensorflow.RewriterConfig.prototype.scoped_allocator_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.pin_to_host_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.implementation_selector = 0;
- $root.tensorflow.RewriterConfig.prototype.auto_mixed_precision = 0;
- $root.tensorflow.RewriterConfig.prototype.auto_mixed_precision_mkl = 0;
- $root.tensorflow.RewriterConfig.prototype.auto_mixed_precision_onednn_bfloat16 = 0;
- $root.tensorflow.RewriterConfig.prototype.auto_mixed_precision_cpu = 0;
- $root.tensorflow.RewriterConfig.prototype.disable_meta_optimizer = false;
- $root.tensorflow.RewriterConfig.prototype.use_plugin_optimizers = 0;
- $root.tensorflow.RewriterConfig.prototype.experimental_conditional_code_motion = 0;
- $root.tensorflow.RewriterConfig.prototype.meta_optimizer_iterations = 0;
- $root.tensorflow.RewriterConfig.prototype.min_graph_nodes = 0;
- $root.tensorflow.RewriterConfig.prototype.experimental_disable_compressed_tensor_optimization = false;
- $root.tensorflow.RewriterConfig.prototype.experimental_disable_folding_quantization_emulation = false;
- $root.tensorflow.RewriterConfig.prototype.memory_optimization = 0;
- $root.tensorflow.RewriterConfig.prototype.memory_optimizer_target_node_name_scope = "";
- $root.tensorflow.RewriterConfig.prototype.meta_optimizer_timeout_ms = protobuf.Int64.create(0);
- $root.tensorflow.RewriterConfig.prototype.auto_parallel = null;
- $root.tensorflow.RewriterConfig.prototype.fail_on_optimizer_errors = false;
- $root.tensorflow.RewriterConfig.prototype.scoped_allocator_opts = null;
- $root.tensorflow.RewriterConfig.prototype.inter_optimizer_verifier_config = null;
- $root.tensorflow.RewriterConfig.prototype.post_optimization_verifier_config = null;
- $root.tensorflow.RewriterConfig.Toggle = {
- "DEFAULT": 0,
- "ON": 1,
- "OFF": 2,
- "AGGRESSIVE": 3,
- "EXPERIMENTAL_MLIR": 4,
- "EXPERIMENTAL_BOTH": 5
- };
- $root.tensorflow.RewriterConfig.CpuLayout = {
- "NO_CONVERSION_ON_CPU": 0,
- "NCHW_TO_NHWC": 1,
- "NHWC_TO_NCHW": 2
- };
- $root.tensorflow.RewriterConfig.NumIterationsType = {
- "DEFAULT_NUM_ITERS": 0,
- "ONE": 1,
- "TWO": 2
- };
- $root.tensorflow.RewriterConfig.MemOptType = {
- "DEFAULT_MEM_OPT": 0,
- "NO_MEM_OPT": 1,
- "MANUAL": 2,
- "SWAPPING_HEURISTICS": 4,
- "RECOMPUTATION_HEURISTICS": 5,
- "SCHEDULING_HEURISTICS": 6,
- "HEURISTICS": 3
- };
- $root.tensorflow.RewriterConfig.CustomGraphOptimizer = class CustomGraphOptimizer {
- constructor() {
- this.parameter_map = {};
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.RewriterConfig.CustomGraphOptimizer();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.name = reader.string();
- break;
- case 2:
- reader.entry(message.parameter_map, () => reader.string(), () => $root.tensorflow.AttrValue.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.RewriterConfig.CustomGraphOptimizer();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "name":
- message.name = reader.string();
- break;
- case "parameter_map":
- reader.entry(message.parameter_map, () => reader.string(), () => $root.tensorflow.AttrValue.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.RewriterConfig.CustomGraphOptimizer.prototype.name = "";
- $root.tensorflow.VerifierConfig = class VerifierConfig {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.VerifierConfig();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.verification_timeout_in_ms = reader.int64();
- break;
- case 2:
- message.structure_verifier = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.VerifierConfig();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "verification_timeout_in_ms":
- message.verification_timeout_in_ms = reader.int64();
- break;
- case "structure_verifier":
- message.structure_verifier = reader.enum($root.tensorflow.VerifierConfig.Toggle);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.VerifierConfig.prototype.verification_timeout_in_ms = protobuf.Int64.create(0);
- $root.tensorflow.VerifierConfig.prototype.structure_verifier = 0;
- $root.tensorflow.VerifierConfig.Toggle = {
- "DEFAULT": 0,
- "ON": 1,
- "OFF": 2
- };
- $root.tensorflow.MemmappedFileSystemDirectoryElement = class MemmappedFileSystemDirectoryElement {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.MemmappedFileSystemDirectoryElement();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.offset = reader.uint64();
- break;
- case 2:
- message.name = reader.string();
- break;
- case 3:
- message.length = reader.uint64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.MemmappedFileSystemDirectoryElement();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "offset":
- message.offset = reader.uint64();
- break;
- case "name":
- message.name = reader.string();
- break;
- case "length":
- message.length = reader.uint64();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.tensorflow.MemmappedFileSystemDirectoryElement.prototype.offset = protobuf.Uint64.create(0);
- $root.tensorflow.MemmappedFileSystemDirectoryElement.prototype.name = "";
- $root.tensorflow.MemmappedFileSystemDirectoryElement.prototype.length = protobuf.Uint64.create(0);
- $root.tensorflow.MemmappedFileSystemDirectory = class MemmappedFileSystemDirectory {
- constructor() {
- this.element = [];
- }
- static decode(reader, length) {
- const message = new $root.tensorflow.MemmappedFileSystemDirectory();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.element.push($root.tensorflow.MemmappedFileSystemDirectoryElement.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.tensorflow.MemmappedFileSystemDirectory();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "element":
- message.element.push($root.tensorflow.MemmappedFileSystemDirectoryElement.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.google = {};
- $root.google.protobuf = {};
- $root.google.protobuf.Any = class Any {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.google.protobuf.Any();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.type_url = reader.string();
- break;
- case 2:
- message.value = reader.bytes();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- return reader.any(() => new $root.google.protobuf.Any());
- }
- };
- $root.google.protobuf.Any.prototype.type_url = "";
- $root.google.protobuf.Any.prototype.value = new Uint8Array([]);
- $root.google.protobuf.BoolValue = class BoolValue {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.google.protobuf.BoolValue();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.value = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.google.protobuf.BoolValue();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "value":
- message.value = reader.bool();
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.google.protobuf.BoolValue.prototype.value = false;
- $root.third_party = {};
- $root.third_party.tensorflow = {};
- $root.third_party.tensorflow.python = {};
- $root.third_party.tensorflow.python.keras = {};
- $root.third_party.tensorflow.python.keras.protobuf = {};
- $root.third_party.tensorflow.python.keras.protobuf.SavedMetadata = class SavedMetadata {
- constructor() {
- this.nodes = [];
- }
- static decode(reader, length) {
- const message = new $root.third_party.tensorflow.python.keras.protobuf.SavedMetadata();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.nodes.push($root.third_party.tensorflow.python.keras.protobuf.SavedObject.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.third_party.tensorflow.python.keras.protobuf.SavedMetadata();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "nodes":
- message.nodes.push($root.third_party.tensorflow.python.keras.protobuf.SavedObject.decodeText(reader));
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.third_party.tensorflow.python.keras.protobuf.SavedObject = class SavedObject {
- constructor() {
- }
- static decode(reader, length) {
- const message = new $root.third_party.tensorflow.python.keras.protobuf.SavedObject();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 2:
- message.node_id = reader.int32();
- break;
- case 3:
- message.node_path = reader.string();
- break;
- case 4:
- message.identifier = reader.string();
- break;
- case 5:
- message.metadata = reader.string();
- break;
- case 6:
- message.version = $root.third_party.tensorflow.python.keras.protobuf.VersionDef.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.third_party.tensorflow.python.keras.protobuf.SavedObject();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "node_id":
- message.node_id = reader.int32();
- break;
- case "node_path":
- message.node_path = reader.string();
- break;
- case "identifier":
- message.identifier = reader.string();
- break;
- case "metadata":
- message.metadata = reader.string();
- break;
- case "version":
- message.version = $root.third_party.tensorflow.python.keras.protobuf.VersionDef.decodeText(reader);
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.third_party.tensorflow.python.keras.protobuf.SavedObject.prototype.node_id = 0;
- $root.third_party.tensorflow.python.keras.protobuf.SavedObject.prototype.node_path = "";
- $root.third_party.tensorflow.python.keras.protobuf.SavedObject.prototype.identifier = "";
- $root.third_party.tensorflow.python.keras.protobuf.SavedObject.prototype.metadata = "";
- $root.third_party.tensorflow.python.keras.protobuf.SavedObject.prototype.version = null;
- $root.third_party.tensorflow.python.keras.protobuf.VersionDef = class VersionDef {
- constructor() {
- this.bad_consumers = [];
- }
- static decode(reader, length) {
- const message = new $root.third_party.tensorflow.python.keras.protobuf.VersionDef();
- const end = length !== undefined ? reader.position + length : reader.length;
- while (reader.position < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.producer = reader.int32();
- break;
- case 2:
- message.min_consumer = reader.int32();
- break;
- case 3:
- message.bad_consumers = reader.array(message.bad_consumers, () => reader.int32(), tag);
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- }
- static decodeText(reader) {
- const message = new $root.third_party.tensorflow.python.keras.protobuf.VersionDef();
- reader.start();
- while (!reader.end()) {
- const tag = reader.tag();
- switch (tag) {
- case "producer":
- message.producer = reader.int32();
- break;
- case "min_consumer":
- message.min_consumer = reader.int32();
- break;
- case "bad_consumers":
- reader.array(message.bad_consumers, () => reader.int32());
- break;
- default:
- reader.field(tag, message);
- break;
- }
- }
- return message;
- }
- };
- $root.third_party.tensorflow.python.keras.protobuf.VersionDef.prototype.producer = 0;
- $root.third_party.tensorflow.python.keras.protobuf.VersionDef.prototype.min_consumer = 0;
|