forked from tensorflow/tfjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompiled_api.d.ts
More file actions
1581 lines (1247 loc) · 43.6 KB
/
compiled_api.d.ts
File metadata and controls
1581 lines (1247 loc) · 43.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import * as $protobuf from 'protobufjs';
/** Namespace tensorflow. */
export namespace tensorflow {
/** Properties of an Any. */
interface IAny {
/** Any typeUrl */
typeUrl?: (string|null);
/** Any value */
value?: (Uint8Array|null);
}
/** Represents an Any. */
class Any implements IAny {
/**
* Constructs a new Any.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.IAny);
/** Any typeUrl. */
public typeUrl: string;
/** Any value. */
public value: Uint8Array;
/**
* Decodes an Any message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns Any
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.Any;
}
/** DataType enum. */
enum 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_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
}
/** Properties of a TensorShape. */
interface ITensorShape {
/** TensorShape dim */
dim?: (tensorflow.TensorShape.IDim[]|null);
/** TensorShape unknownRank */
unknownRank?: (boolean|null);
}
/** Represents a TensorShape. */
class TensorShape implements ITensorShape {
/**
* Constructs a new TensorShape.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.ITensorShape);
/** TensorShape dim. */
public dim: tensorflow.TensorShape.IDim[];
/** TensorShape unknownRank. */
public unknownRank: boolean;
/**
* Decodes a TensorShape message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns TensorShape
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.TensorShape;
}
namespace TensorShape {
/** Properties of a Dim. */
interface IDim {
/** Dim size */
size?: (number|Long|null);
/** Dim name */
name?: (string|null);
}
/** Represents a Dim. */
class Dim implements IDim {
/**
* Constructs a new Dim.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.TensorShape.IDim);
/** Dim size. */
public size: (number|Long);
/** Dim name. */
public name: string;
/**
* Decodes a Dim message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns Dim
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.TensorShape.Dim;
}
}
/** Properties of a Tensor. */
interface ITensor {
/** Tensor dtype */
dtype?: (tensorflow.DataType|null);
/** Tensor tensorShape */
tensorShape?: (tensorflow.ITensorShape|null);
/** Tensor versionNumber */
versionNumber?: (number|null);
/** Tensor tensorContent */
tensorContent?: (Uint8Array|null);
/** Tensor floatVal */
floatVal?: (number[]|null);
/** Tensor doubleVal */
doubleVal?: (number[]|null);
/** Tensor intVal */
intVal?: (number[]|null);
/** Tensor stringVal */
stringVal?: (Uint8Array[]|null);
/** Tensor scomplexVal */
scomplexVal?: (number[]|null);
/** Tensor int64Val */
int64Val?: ((number | Long)[]|null);
/** Tensor boolVal */
boolVal?: (boolean[]|null);
/** Tensor uint32Val */
uint32Val?: (number[]|null);
/** Tensor uint64Val */
uint64Val?: ((number | Long)[]|null);
}
/** Represents a Tensor. */
class Tensor implements ITensor {
/**
* Constructs a new Tensor.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.ITensor);
/** Tensor dtype. */
public dtype: tensorflow.DataType;
/** Tensor tensorShape. */
public tensorShape?: (tensorflow.ITensorShape|null);
/** Tensor versionNumber. */
public versionNumber: number;
/** Tensor tensorContent. */
public tensorContent: Uint8Array;
/** Tensor floatVal. */
public floatVal: number[];
/** Tensor doubleVal. */
public doubleVal: number[];
/** Tensor intVal. */
public intVal: number[];
/** Tensor stringVal. */
public stringVal: Uint8Array[];
/** Tensor scomplexVal. */
public scomplexVal: number[];
/** Tensor int64Val. */
public int64Val: (number|Long)[];
/** Tensor boolVal. */
public boolVal: boolean[];
/** Tensor uint32Val. */
public uint32Val: number[];
/** Tensor uint64Val. */
public uint64Val: (number|Long)[];
/**
* Decodes a Tensor message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns Tensor
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.Tensor;
}
/** Properties of an AttrValue. */
interface IAttrValue {
/** AttrValue list */
list?: (tensorflow.AttrValue.IListValue|null);
/** AttrValue s */
s?: (Uint8Array|null);
/** AttrValue i */
i?: (number|Long|null);
/** AttrValue f */
f?: (number|null);
/** AttrValue b */
b?: (boolean|null);
/** AttrValue type */
type?: (tensorflow.DataType|null);
/** AttrValue shape */
shape?: (tensorflow.ITensorShape|null);
/** AttrValue tensor */
tensor?: (tensorflow.ITensor|null);
/** AttrValue placeholder */
placeholder?: (string|null);
/** AttrValue func */
func?: (tensorflow.INameAttrList|null);
}
/** Represents an AttrValue. */
class AttrValue implements IAttrValue {
/**
* Constructs a new AttrValue.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.IAttrValue);
/** AttrValue list. */
public list?: (tensorflow.AttrValue.IListValue|null);
/** AttrValue s. */
public s: Uint8Array;
/** AttrValue i. */
public i: (number|Long);
/** AttrValue f. */
public f: number;
/** AttrValue b. */
public b: boolean;
/** AttrValue type. */
public type: tensorflow.DataType;
/** AttrValue shape. */
public shape?: (tensorflow.ITensorShape|null);
/** AttrValue tensor. */
public tensor?: (tensorflow.ITensor|null);
/** AttrValue placeholder. */
public placeholder: string;
/** AttrValue func. */
public func?: (tensorflow.INameAttrList|null);
/** AttrValue value. */
public value?: ('list'|'s'|'i'|'f'|'b'|'type'|'shape'|'tensor'|
'placeholder'|'func');
/**
* Decodes an AttrValue message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns AttrValue
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.AttrValue;
}
namespace AttrValue {
/** Properties of a ListValue. */
interface IListValue {
/** ListValue s */
s?: (Uint8Array[]|null);
/** ListValue i */
i?: ((number | Long)[]|null);
/** ListValue f */
f?: (number[]|null);
/** ListValue b */
b?: (boolean[]|null);
/** ListValue type */
type?: (tensorflow.DataType[]|null);
/** ListValue shape */
shape?: (tensorflow.ITensorShape[]|null);
/** ListValue tensor */
tensor?: (tensorflow.ITensor[]|null);
/** ListValue func */
func?: (tensorflow.INameAttrList[]|null);
}
/** Represents a ListValue. */
class ListValue implements IListValue {
/**
* Constructs a new ListValue.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.AttrValue.IListValue);
/** ListValue s. */
public s: Uint8Array[];
/** ListValue i. */
public i: (number|Long)[];
/** ListValue f. */
public f: number[];
/** ListValue b. */
public b: boolean[];
/** ListValue type. */
public type: tensorflow.DataType[];
/** ListValue shape. */
public shape: tensorflow.ITensorShape[];
/** ListValue tensor. */
public tensor: tensorflow.ITensor[];
/** ListValue func. */
public func: tensorflow.INameAttrList[];
/**
* Decodes a ListValue message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns ListValue
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.AttrValue.ListValue;
}
}
/** Properties of a NameAttrList. */
interface INameAttrList {
/** NameAttrList name */
name?: (string|null);
/** NameAttrList attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
}
/** Represents a NameAttrList. */
class NameAttrList implements INameAttrList {
/**
* Constructs a new NameAttrList.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.INameAttrList);
/** NameAttrList name. */
public name: string;
/** NameAttrList attr. */
public attr: {[k: string]: tensorflow.IAttrValue};
/**
* Decodes a NameAttrList message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns NameAttrList
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.NameAttrList;
}
/** Properties of a NodeDef. */
interface INodeDef {
/** NodeDef name */
name?: (string|null);
/** NodeDef op */
op?: (string|null);
/** NodeDef input */
input?: (string[]|null);
/** NodeDef device */
device?: (string|null);
/** NodeDef attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
}
/** Represents a NodeDef. */
class NodeDef implements INodeDef {
/**
* Constructs a new NodeDef.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.INodeDef);
/** NodeDef name. */
public name: string;
/** NodeDef op. */
public op: string;
/** NodeDef input. */
public input: string[];
/** NodeDef device. */
public device: string;
/** NodeDef attr. */
public attr: {[k: string]: tensorflow.IAttrValue};
/**
* Decodes a NodeDef message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns NodeDef
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.NodeDef;
}
/** Properties of a VersionDef. */
interface IVersionDef {
/** VersionDef producer */
producer?: (number|null);
/** VersionDef minConsumer */
minConsumer?: (number|null);
/** VersionDef badConsumers */
badConsumers?: (number[]|null);
}
/** Represents a VersionDef. */
class VersionDef implements IVersionDef {
/**
* Constructs a new VersionDef.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.IVersionDef);
/** VersionDef producer. */
public producer: number;
/** VersionDef minConsumer. */
public minConsumer: number;
/** VersionDef badConsumers. */
public badConsumers: number[];
/**
* Decodes a VersionDef message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns VersionDef
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.VersionDef;
}
/** Properties of a GraphDef. */
interface IGraphDef {
/** GraphDef node */
node?: (tensorflow.INodeDef[]|null);
/** GraphDef versions */
versions?: (tensorflow.IVersionDef|null);
/** GraphDef library */
library?: (tensorflow.IFunctionDefLibrary|null);
}
/** Represents a GraphDef. */
class GraphDef implements IGraphDef {
/**
* Constructs a new GraphDef.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.IGraphDef);
/** GraphDef node. */
public node: tensorflow.INodeDef[];
/** GraphDef versions. */
public versions?: (tensorflow.IVersionDef|null);
/** GraphDef library. */
public library?: (tensorflow.IFunctionDefLibrary|null);
/**
* Decodes a GraphDef message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns GraphDef
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.GraphDef;
}
/** Properties of a CollectionDef. */
interface ICollectionDef {
/** CollectionDef nodeList */
nodeList?: (tensorflow.CollectionDef.INodeList|null);
/** CollectionDef bytesList */
bytesList?: (tensorflow.CollectionDef.IBytesList|null);
/** CollectionDef int64List */
int64List?: (tensorflow.CollectionDef.IInt64List|null);
/** CollectionDef floatList */
floatList?: (tensorflow.CollectionDef.IFloatList|null);
/** CollectionDef anyList */
anyList?: (tensorflow.CollectionDef.IAnyList|null);
}
/** Represents a CollectionDef. */
class CollectionDef implements ICollectionDef {
/**
* Constructs a new CollectionDef.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.ICollectionDef);
/** CollectionDef nodeList. */
public nodeList?: (tensorflow.CollectionDef.INodeList|null);
/** CollectionDef bytesList. */
public bytesList?: (tensorflow.CollectionDef.IBytesList|null);
/** CollectionDef int64List. */
public int64List?: (tensorflow.CollectionDef.IInt64List|null);
/** CollectionDef floatList. */
public floatList?: (tensorflow.CollectionDef.IFloatList|null);
/** CollectionDef anyList. */
public anyList?: (tensorflow.CollectionDef.IAnyList|null);
/** CollectionDef kind. */
public kind?: ('nodeList'|'bytesList'|'int64List'|'floatList'|'anyList');
/**
* Decodes a CollectionDef message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns CollectionDef
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.CollectionDef;
}
namespace CollectionDef {
/** Properties of a NodeList. */
interface INodeList {
/** NodeList value */
value?: (string[]|null);
}
/** Represents a NodeList. */
class NodeList implements INodeList {
/**
* Constructs a new NodeList.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.CollectionDef.INodeList);
/** NodeList value. */
public value: string[];
/**
* Decodes a NodeList message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns NodeList
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.CollectionDef.NodeList;
}
/** Properties of a BytesList. */
interface IBytesList {
/** BytesList value */
value?: (Uint8Array[]|null);
}
/** Represents a BytesList. */
class BytesList implements IBytesList {
/**
* Constructs a new BytesList.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.CollectionDef.IBytesList);
/** BytesList value. */
public value: Uint8Array[];
/**
* Decodes a BytesList message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns BytesList
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.CollectionDef.BytesList;
}
/** Properties of an Int64List. */
interface IInt64List {
/** Int64List value */
value?: ((number | Long)[]|null);
}
/** Represents an Int64List. */
class Int64List implements IInt64List {
/**
* Constructs a new Int64List.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.CollectionDef.IInt64List);
/** Int64List value. */
public value: (number|Long)[];
/**
* Decodes an Int64List message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns Int64List
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.CollectionDef.Int64List;
}
/** Properties of a FloatList. */
interface IFloatList {
/** FloatList value */
value?: (number[]|null);
}
/** Represents a FloatList. */
class FloatList implements IFloatList {
/**
* Constructs a new FloatList.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.CollectionDef.IFloatList);
/** FloatList value. */
public value: number[];
/**
* Decodes a FloatList message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns FloatList
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.CollectionDef.FloatList;
}
/** Properties of an AnyList. */
interface IAnyList {
/** AnyList value */
value?: (tensorflow.IAny[]|null);
}
/** Represents an AnyList. */
class AnyList implements IAnyList {
/**
* Constructs a new AnyList.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.CollectionDef.IAnyList);
/** AnyList value. */
public value: tensorflow.IAny[];
/**
* Decodes an AnyList message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns AnyList
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.CollectionDef.AnyList;
}
}
/** Properties of a SaverDef. */
interface ISaverDef {
/** SaverDef filenameTensorName */
filenameTensorName?: (string|null);
/** SaverDef saveTensorName */
saveTensorName?: (string|null);
/** SaverDef restoreOpName */
restoreOpName?: (string|null);
/** SaverDef maxToKeep */
maxToKeep?: (number|null);
/** SaverDef sharded */
sharded?: (boolean|null);
/** SaverDef keepCheckpointEveryNHours */
keepCheckpointEveryNHours?: (number|null);
/** SaverDef version */
version?: (tensorflow.SaverDef.CheckpointFormatVersion|null);
}
/** Represents a SaverDef. */
class SaverDef implements ISaverDef {
/**
* Constructs a new SaverDef.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.ISaverDef);
/** SaverDef filenameTensorName. */
public filenameTensorName: string;
/** SaverDef saveTensorName. */
public saveTensorName: string;
/** SaverDef restoreOpName. */
public restoreOpName: string;
/** SaverDef maxToKeep. */
public maxToKeep: number;
/** SaverDef sharded. */
public sharded: boolean;
/** SaverDef keepCheckpointEveryNHours. */
public keepCheckpointEveryNHours: number;
/** SaverDef version. */
public version: tensorflow.SaverDef.CheckpointFormatVersion;
/**
* Decodes a SaverDef message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns SaverDef
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.SaverDef;
}
namespace SaverDef {
/** CheckpointFormatVersion enum. */
enum CheckpointFormatVersion { LEGACY = 0, V1 = 1, V2 = 2 }
}
/** Properties of a TensorInfo. */
interface ITensorInfo {
/** TensorInfo name */
name?: (string|null);
/** TensorInfo cooSparse */
cooSparse?: (tensorflow.TensorInfo.ICooSparse|null);
/** TensorInfo dtype */
dtype?: (tensorflow.DataType|null);
/** TensorInfo tensorShape */
tensorShape?: (tensorflow.ITensorShape|null);
}
/** Represents a TensorInfo. */
class TensorInfo implements ITensorInfo {
/**
* Constructs a new TensorInfo.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.ITensorInfo);
/** TensorInfo name. */
public name: string;
/** TensorInfo cooSparse. */
public cooSparse?: (tensorflow.TensorInfo.ICooSparse|null);
/** TensorInfo dtype. */
public dtype: tensorflow.DataType;
/** TensorInfo tensorShape. */
public tensorShape?: (tensorflow.ITensorShape|null);
/** TensorInfo encoding. */
public encoding?: ('name'|'cooSparse');
/**
* Decodes a TensorInfo message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns TensorInfo
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.TensorInfo;
}
namespace TensorInfo {
/** Properties of a CooSparse. */
interface ICooSparse {
/** CooSparse valuesTensorName */
valuesTensorName?: (string|null);
/** CooSparse indicesTensorName */
indicesTensorName?: (string|null);
/** CooSparse denseShapeTensorName */
denseShapeTensorName?: (string|null);
}
/** Represents a CooSparse. */
class CooSparse implements ICooSparse {
/**
* Constructs a new CooSparse.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.TensorInfo.ICooSparse);
/** CooSparse valuesTensorName. */
public valuesTensorName: string;
/** CooSparse indicesTensorName. */
public indicesTensorName: string;
/** CooSparse denseShapeTensorName. */
public denseShapeTensorName: string;
/**
* Decodes a CooSparse message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns CooSparse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.TensorInfo.CooSparse;
}
}
/** Properties of a SignatureDef. */
interface ISignatureDef {
/** SignatureDef inputs */
inputs?: ({[k: string]: tensorflow.ITensorInfo}|null);
/** SignatureDef outputs */
outputs?: ({[k: string]: tensorflow.ITensorInfo}|null);
/** SignatureDef methodName */
methodName?: (string|null);
}
/** Represents a SignatureDef. */
class SignatureDef implements ISignatureDef {
/**
* Constructs a new SignatureDef.
* @param [p] Properties to set
*/
constructor(p?: tensorflow.ISignatureDef);
/** SignatureDef inputs. */
public inputs: {[k: string]: tensorflow.ITensorInfo};
/** SignatureDef outputs. */
public outputs: {[k: string]: tensorflow.ITensorInfo};
/** SignatureDef methodName. */
public methodName: string;
/**
* Decodes a SignatureDef message from the specified reader or buffer.
* @param r Reader or buffer to decode from
* @param [l] Message length if known beforehand
* @returns SignatureDef
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number):
tensorflow.SignatureDef;
}
/** Properties of an AssetFileDef. */
interface IAssetFileDef {
/** AssetFileDef tensorInfo */
tensorInfo?: (tensorflow.ITensorInfo|null);
/** AssetFileDef filename */
filename?: (string|null);
}
/** Represents an AssetFileDef. */
class AssetFileDef implements IAssetFileDef {
/**
* Constructs a new AssetFileDef.