onnxruntime

Форк
0
2627 строк · 90.5 Кб
1
import Long from 'long';
2
import * as $protobuf from 'protobufjs';
3

4
/** Namespace onnx. */
5
export namespace onnx {
6

7
  /** Version enum. */
8
  enum Version {
9
    _START_VERSION = 0,
10
    IR_VERSION_2017_10_10 = 1,
11
    IR_VERSION_2017_10_30 = 2,
12
    IR_VERSION_2017_11_3 = 3,
13
    IR_VERSION_2019_1_22 = 4,
14
    IR_VERSION_2019_3_18 = 5,
15
    IR_VERSION_2019_9_19 = 6,
16
    IR_VERSION_2020_5_8 = 7,
17
    IR_VERSION_2021_7_30 = 8,
18
    IR_VERSION = 9
19
  }
20

21
  /** Properties of an AttributeProto. */
22
  interface IAttributeProto {
23
    /** AttributeProto name */
24
    name?: (string|null);
25

26
    /** AttributeProto refAttrName */
27
    refAttrName?: (string|null);
28

29
    /** AttributeProto docString */
30
    docString?: (string|null);
31

32
    /** AttributeProto type */
33
    type?: (onnx.AttributeProto.AttributeType|null);
34

35
    /** AttributeProto f */
36
    f?: (number|null);
37

38
    /** AttributeProto i */
39
    i?: (number|Long|null);
40

41
    /** AttributeProto s */
42
    s?: (Uint8Array|null);
43

44
    /** AttributeProto t */
45
    t?: (onnx.ITensorProto|null);
46

47
    /** AttributeProto g */
48
    g?: (onnx.IGraphProto|null);
49

50
    /** AttributeProto sparseTensor */
51
    sparseTensor?: (onnx.ISparseTensorProto|null);
52

53
    /** AttributeProto tp */
54
    tp?: (onnx.ITypeProto|null);
55

56
    /** AttributeProto floats */
57
    floats?: (number[]|null);
58

59
    /** AttributeProto ints */
60
    ints?: ((number | Long)[]|null);
61

62
    /** AttributeProto strings */
63
    strings?: (Uint8Array[]|null);
64

65
    /** AttributeProto tensors */
66
    tensors?: (onnx.ITensorProto[]|null);
67

68
    /** AttributeProto graphs */
69
    graphs?: (onnx.IGraphProto[]|null);
70

71
    /** AttributeProto sparseTensors */
72
    sparseTensors?: (onnx.ISparseTensorProto[]|null);
73

74
    /** AttributeProto typeProtos */
75
    typeProtos?: (onnx.ITypeProto[]|null);
76
  }
77

78
  /** Represents an AttributeProto. */
79
  class AttributeProto implements IAttributeProto {
80
    /**
81
     * Constructs a new AttributeProto.
82
     * @param [properties] Properties to set
83
     */
84
    constructor(properties?: onnx.IAttributeProto);
85

86
    /** AttributeProto name. */
87
    public name: string;
88

89
    /** AttributeProto refAttrName. */
90
    public refAttrName: string;
91

92
    /** AttributeProto docString. */
93
    public docString: string;
94

95
    /** AttributeProto type. */
96
    public type: onnx.AttributeProto.AttributeType;
97

98
    /** AttributeProto f. */
99
    public f: number;
100

101
    /** AttributeProto i. */
102
    public i: (number|Long);
103

104
    /** AttributeProto s. */
105
    public s: Uint8Array;
106

107
    /** AttributeProto t. */
108
    public t?: (onnx.ITensorProto|null);
109

110
    /** AttributeProto g. */
111
    public g?: (onnx.IGraphProto|null);
112

113
    /** AttributeProto sparseTensor. */
114
    public sparseTensor?: (onnx.ISparseTensorProto|null);
115

116
    /** AttributeProto tp. */
117
    public tp?: (onnx.ITypeProto|null);
118

119
    /** AttributeProto floats. */
120
    public floats: number[];
121

122
    /** AttributeProto ints. */
123
    public ints: (number|Long)[];
124

125
    /** AttributeProto strings. */
126
    public strings: Uint8Array[];
127

128
    /** AttributeProto tensors. */
129
    public tensors: onnx.ITensorProto[];
130

131
    /** AttributeProto graphs. */
132
    public graphs: onnx.IGraphProto[];
133

134
    /** AttributeProto sparseTensors. */
135
    public sparseTensors: onnx.ISparseTensorProto[];
136

137
    /** AttributeProto typeProtos. */
138
    public typeProtos: onnx.ITypeProto[];
139

140
    /**
141
     * Creates a new AttributeProto instance using the specified properties.
142
     * @param [properties] Properties to set
143
     * @returns AttributeProto instance
144
     */
145
    public static create(properties?: onnx.IAttributeProto): onnx.AttributeProto;
146

147
    /**
148
     * Encodes the specified AttributeProto message. Does not implicitly {@link onnx.AttributeProto.verify|verify}
149
     * messages.
150
     * @param message AttributeProto message or plain object to encode
151
     * @param [writer] Writer to encode to
152
     * @returns Writer
153
     */
154
    public static encode(message: onnx.IAttributeProto, writer?: $protobuf.Writer): $protobuf.Writer;
155

156
    /**
157
     * Encodes the specified AttributeProto message, length delimited. Does not implicitly {@link
158
     * onnx.AttributeProto.verify|verify} messages.
159
     * @param message AttributeProto message or plain object to encode
160
     * @param [writer] Writer to encode to
161
     * @returns Writer
162
     */
163
    public static encodeDelimited(message: onnx.IAttributeProto, writer?: $protobuf.Writer): $protobuf.Writer;
164

165
    /**
166
     * Decodes an AttributeProto message from the specified reader or buffer.
167
     * @param reader Reader or buffer to decode from
168
     * @param [length] Message length if known beforehand
169
     * @returns AttributeProto
170
     * @throws {Error} If the payload is not a reader or valid buffer
171
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
172
     */
173
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.AttributeProto;
174

175
    /**
176
     * Decodes an AttributeProto message from the specified reader or buffer, length delimited.
177
     * @param reader Reader or buffer to decode from
178
     * @returns AttributeProto
179
     * @throws {Error} If the payload is not a reader or valid buffer
180
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
181
     */
182
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.AttributeProto;
183

184
    /**
185
     * Verifies an AttributeProto message.
186
     * @param message Plain object to verify
187
     * @returns `null` if valid, otherwise the reason why it is not
188
     */
189
    public static verify(message: {[k: string]: any}): (string|null);
190

191
    /**
192
     * Creates an AttributeProto message from a plain object. Also converts values to their respective internal types.
193
     * @param object Plain object
194
     * @returns AttributeProto
195
     */
196
    public static fromObject(object: {[k: string]: any}): onnx.AttributeProto;
197

198
    /**
199
     * Creates a plain object from an AttributeProto message. Also converts values to other types if specified.
200
     * @param message AttributeProto
201
     * @param [options] Conversion options
202
     * @returns Plain object
203
     */
204
    public static toObject(message: onnx.AttributeProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
205

206
    /**
207
     * Converts this AttributeProto to JSON.
208
     * @returns JSON object
209
     */
210
    public toJSON(): {[k: string]: any};
211

212
    /**
213
     * Gets the default type url for AttributeProto
214
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
215
     * @returns The default type url
216
     */
217
    public static getTypeUrl(typeUrlPrefix?: string): string;
218
  }
219

220
  namespace AttributeProto {
221

222
    /** AttributeType enum. */
223
    enum AttributeType {
224
      UNDEFINED = 0,
225
      FLOAT = 1,
226
      INT = 2,
227
      STRING = 3,
228
      TENSOR = 4,
229
      GRAPH = 5,
230
      SPARSE_TENSOR = 11,
231
      TYPE_PROTO = 13,
232
      FLOATS = 6,
233
      INTS = 7,
234
      STRINGS = 8,
235
      TENSORS = 9,
236
      GRAPHS = 10,
237
      SPARSE_TENSORS = 12,
238
      TYPE_PROTOS = 14
239
    }
240
  }
241

242
  /** Properties of a ValueInfoProto. */
243
  interface IValueInfoProto {
244
    /** ValueInfoProto name */
245
    name?: (string|null);
246

247
    /** ValueInfoProto type */
248
    type?: (onnx.ITypeProto|null);
249

250
    /** ValueInfoProto docString */
251
    docString?: (string|null);
252
  }
253

254
  /** Represents a ValueInfoProto. */
255
  class ValueInfoProto implements IValueInfoProto {
256
    /**
257
     * Constructs a new ValueInfoProto.
258
     * @param [properties] Properties to set
259
     */
260
    constructor(properties?: onnx.IValueInfoProto);
261

262
    /** ValueInfoProto name. */
263
    public name: string;
264

265
    /** ValueInfoProto type. */
266
    public type?: (onnx.ITypeProto|null);
267

268
    /** ValueInfoProto docString. */
269
    public docString: string;
270

271
    /**
272
     * Creates a new ValueInfoProto instance using the specified properties.
273
     * @param [properties] Properties to set
274
     * @returns ValueInfoProto instance
275
     */
276
    public static create(properties?: onnx.IValueInfoProto): onnx.ValueInfoProto;
277

278
    /**
279
     * Encodes the specified ValueInfoProto message. Does not implicitly {@link onnx.ValueInfoProto.verify|verify}
280
     * messages.
281
     * @param message ValueInfoProto message or plain object to encode
282
     * @param [writer] Writer to encode to
283
     * @returns Writer
284
     */
285
    public static encode(message: onnx.IValueInfoProto, writer?: $protobuf.Writer): $protobuf.Writer;
286

287
    /**
288
     * Encodes the specified ValueInfoProto message, length delimited. Does not implicitly {@link
289
     * onnx.ValueInfoProto.verify|verify} messages.
290
     * @param message ValueInfoProto message or plain object to encode
291
     * @param [writer] Writer to encode to
292
     * @returns Writer
293
     */
294
    public static encodeDelimited(message: onnx.IValueInfoProto, writer?: $protobuf.Writer): $protobuf.Writer;
295

296
    /**
297
     * Decodes a ValueInfoProto message from the specified reader or buffer.
298
     * @param reader Reader or buffer to decode from
299
     * @param [length] Message length if known beforehand
300
     * @returns ValueInfoProto
301
     * @throws {Error} If the payload is not a reader or valid buffer
302
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
303
     */
304
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.ValueInfoProto;
305

306
    /**
307
     * Decodes a ValueInfoProto message from the specified reader or buffer, length delimited.
308
     * @param reader Reader or buffer to decode from
309
     * @returns ValueInfoProto
310
     * @throws {Error} If the payload is not a reader or valid buffer
311
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
312
     */
313
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.ValueInfoProto;
314

315
    /**
316
     * Verifies a ValueInfoProto message.
317
     * @param message Plain object to verify
318
     * @returns `null` if valid, otherwise the reason why it is not
319
     */
320
    public static verify(message: {[k: string]: any}): (string|null);
321

322
    /**
323
     * Creates a ValueInfoProto message from a plain object. Also converts values to their respective internal types.
324
     * @param object Plain object
325
     * @returns ValueInfoProto
326
     */
327
    public static fromObject(object: {[k: string]: any}): onnx.ValueInfoProto;
328

329
    /**
330
     * Creates a plain object from a ValueInfoProto message. Also converts values to other types if specified.
331
     * @param message ValueInfoProto
332
     * @param [options] Conversion options
333
     * @returns Plain object
334
     */
335
    public static toObject(message: onnx.ValueInfoProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
336

337
    /**
338
     * Converts this ValueInfoProto to JSON.
339
     * @returns JSON object
340
     */
341
    public toJSON(): {[k: string]: any};
342

343
    /**
344
     * Gets the default type url for ValueInfoProto
345
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
346
     * @returns The default type url
347
     */
348
    public static getTypeUrl(typeUrlPrefix?: string): string;
349
  }
350

351
  /** Properties of a NodeProto. */
352
  interface INodeProto {
353
    /** NodeProto input */
354
    input?: (string[]|null);
355

356
    /** NodeProto output */
357
    output?: (string[]|null);
358

359
    /** NodeProto name */
360
    name?: (string|null);
361

362
    /** NodeProto opType */
363
    opType?: (string|null);
364

365
    /** NodeProto domain */
366
    domain?: (string|null);
367

368
    /** NodeProto attribute */
369
    attribute?: (onnx.IAttributeProto[]|null);
370

371
    /** NodeProto docString */
372
    docString?: (string|null);
373
  }
374

375
  /** Represents a NodeProto. */
376
  class NodeProto implements INodeProto {
377
    /**
378
     * Constructs a new NodeProto.
379
     * @param [properties] Properties to set
380
     */
381
    constructor(properties?: onnx.INodeProto);
382

383
    /** NodeProto input. */
384
    public input: string[];
385

386
    /** NodeProto output. */
387
    public output: string[];
388

389
    /** NodeProto name. */
390
    public name: string;
391

392
    /** NodeProto opType. */
393
    public opType: string;
394

395
    /** NodeProto domain. */
396
    public domain: string;
397

398
    /** NodeProto attribute. */
399
    public attribute: onnx.IAttributeProto[];
400

401
    /** NodeProto docString. */
402
    public docString: string;
403

404
    /**
405
     * Creates a new NodeProto instance using the specified properties.
406
     * @param [properties] Properties to set
407
     * @returns NodeProto instance
408
     */
409
    public static create(properties?: onnx.INodeProto): onnx.NodeProto;
410

411
    /**
412
     * Encodes the specified NodeProto message. Does not implicitly {@link onnx.NodeProto.verify|verify} messages.
413
     * @param message NodeProto message or plain object to encode
414
     * @param [writer] Writer to encode to
415
     * @returns Writer
416
     */
417
    public static encode(message: onnx.INodeProto, writer?: $protobuf.Writer): $protobuf.Writer;
418

419
    /**
420
     * Encodes the specified NodeProto message, length delimited. Does not implicitly {@link
421
     * onnx.NodeProto.verify|verify} messages.
422
     * @param message NodeProto message or plain object to encode
423
     * @param [writer] Writer to encode to
424
     * @returns Writer
425
     */
426
    public static encodeDelimited(message: onnx.INodeProto, writer?: $protobuf.Writer): $protobuf.Writer;
427

428
    /**
429
     * Decodes a NodeProto message from the specified reader or buffer.
430
     * @param reader Reader or buffer to decode from
431
     * @param [length] Message length if known beforehand
432
     * @returns NodeProto
433
     * @throws {Error} If the payload is not a reader or valid buffer
434
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
435
     */
436
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.NodeProto;
437

438
    /**
439
     * Decodes a NodeProto message from the specified reader or buffer, length delimited.
440
     * @param reader Reader or buffer to decode from
441
     * @returns NodeProto
442
     * @throws {Error} If the payload is not a reader or valid buffer
443
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
444
     */
445
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.NodeProto;
446

447
    /**
448
     * Verifies a NodeProto message.
449
     * @param message Plain object to verify
450
     * @returns `null` if valid, otherwise the reason why it is not
451
     */
452
    public static verify(message: {[k: string]: any}): (string|null);
453

454
    /**
455
     * Creates a NodeProto message from a plain object. Also converts values to their respective internal types.
456
     * @param object Plain object
457
     * @returns NodeProto
458
     */
459
    public static fromObject(object: {[k: string]: any}): onnx.NodeProto;
460

461
    /**
462
     * Creates a plain object from a NodeProto message. Also converts values to other types if specified.
463
     * @param message NodeProto
464
     * @param [options] Conversion options
465
     * @returns Plain object
466
     */
467
    public static toObject(message: onnx.NodeProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
468

469
    /**
470
     * Converts this NodeProto to JSON.
471
     * @returns JSON object
472
     */
473
    public toJSON(): {[k: string]: any};
474

475
    /**
476
     * Gets the default type url for NodeProto
477
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
478
     * @returns The default type url
479
     */
480
    public static getTypeUrl(typeUrlPrefix?: string): string;
481
  }
482

483
  /** Properties of a TrainingInfoProto. */
484
  interface ITrainingInfoProto {
485
    /** TrainingInfoProto initialization */
486
    initialization?: (onnx.IGraphProto|null);
487

488
    /** TrainingInfoProto algorithm */
489
    algorithm?: (onnx.IGraphProto|null);
490

491
    /** TrainingInfoProto initializationBinding */
492
    initializationBinding?: (onnx.IStringStringEntryProto[]|null);
493

494
    /** TrainingInfoProto updateBinding */
495
    updateBinding?: (onnx.IStringStringEntryProto[]|null);
496
  }
497

498
  /** Represents a TrainingInfoProto. */
499
  class TrainingInfoProto implements ITrainingInfoProto {
500
    /**
501
     * Constructs a new TrainingInfoProto.
502
     * @param [properties] Properties to set
503
     */
504
    constructor(properties?: onnx.ITrainingInfoProto);
505

506
    /** TrainingInfoProto initialization. */
507
    public initialization?: (onnx.IGraphProto|null);
508

509
    /** TrainingInfoProto algorithm. */
510
    public algorithm?: (onnx.IGraphProto|null);
511

512
    /** TrainingInfoProto initializationBinding. */
513
    public initializationBinding: onnx.IStringStringEntryProto[];
514

515
    /** TrainingInfoProto updateBinding. */
516
    public updateBinding: onnx.IStringStringEntryProto[];
517

518
    /**
519
     * Creates a new TrainingInfoProto instance using the specified properties.
520
     * @param [properties] Properties to set
521
     * @returns TrainingInfoProto instance
522
     */
523
    public static create(properties?: onnx.ITrainingInfoProto): onnx.TrainingInfoProto;
524

525
    /**
526
     * Encodes the specified TrainingInfoProto message. Does not implicitly {@link onnx.TrainingInfoProto.verify|verify}
527
     * messages.
528
     * @param message TrainingInfoProto message or plain object to encode
529
     * @param [writer] Writer to encode to
530
     * @returns Writer
531
     */
532
    public static encode(message: onnx.ITrainingInfoProto, writer?: $protobuf.Writer): $protobuf.Writer;
533

534
    /**
535
     * Encodes the specified TrainingInfoProto message, length delimited. Does not implicitly {@link
536
     * onnx.TrainingInfoProto.verify|verify} messages.
537
     * @param message TrainingInfoProto message or plain object to encode
538
     * @param [writer] Writer to encode to
539
     * @returns Writer
540
     */
541
    public static encodeDelimited(message: onnx.ITrainingInfoProto, writer?: $protobuf.Writer): $protobuf.Writer;
542

543
    /**
544
     * Decodes a TrainingInfoProto message from the specified reader or buffer.
545
     * @param reader Reader or buffer to decode from
546
     * @param [length] Message length if known beforehand
547
     * @returns TrainingInfoProto
548
     * @throws {Error} If the payload is not a reader or valid buffer
549
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
550
     */
551
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TrainingInfoProto;
552

553
    /**
554
     * Decodes a TrainingInfoProto message from the specified reader or buffer, length delimited.
555
     * @param reader Reader or buffer to decode from
556
     * @returns TrainingInfoProto
557
     * @throws {Error} If the payload is not a reader or valid buffer
558
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
559
     */
560
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TrainingInfoProto;
561

562
    /**
563
     * Verifies a TrainingInfoProto message.
564
     * @param message Plain object to verify
565
     * @returns `null` if valid, otherwise the reason why it is not
566
     */
567
    public static verify(message: {[k: string]: any}): (string|null);
568

569
    /**
570
     * Creates a TrainingInfoProto message from a plain object. Also converts values to their respective internal types.
571
     * @param object Plain object
572
     * @returns TrainingInfoProto
573
     */
574
    public static fromObject(object: {[k: string]: any}): onnx.TrainingInfoProto;
575

576
    /**
577
     * Creates a plain object from a TrainingInfoProto message. Also converts values to other types if specified.
578
     * @param message TrainingInfoProto
579
     * @param [options] Conversion options
580
     * @returns Plain object
581
     */
582
    public static toObject(message: onnx.TrainingInfoProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
583

584
    /**
585
     * Converts this TrainingInfoProto to JSON.
586
     * @returns JSON object
587
     */
588
    public toJSON(): {[k: string]: any};
589

590
    /**
591
     * Gets the default type url for TrainingInfoProto
592
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
593
     * @returns The default type url
594
     */
595
    public static getTypeUrl(typeUrlPrefix?: string): string;
596
  }
597

598
  /** Properties of a ModelProto. */
599
  interface IModelProto {
600
    /** ModelProto irVersion */
601
    irVersion?: (number|Long|null);
602

603
    /** ModelProto opsetImport */
604
    opsetImport?: (onnx.IOperatorSetIdProto[]|null);
605

606
    /** ModelProto producerName */
607
    producerName?: (string|null);
608

609
    /** ModelProto producerVersion */
610
    producerVersion?: (string|null);
611

612
    /** ModelProto domain */
613
    domain?: (string|null);
614

615
    /** ModelProto modelVersion */
616
    modelVersion?: (number|Long|null);
617

618
    /** ModelProto docString */
619
    docString?: (string|null);
620

621
    /** ModelProto graph */
622
    graph?: (onnx.IGraphProto|null);
623

624
    /** ModelProto metadataProps */
625
    metadataProps?: (onnx.IStringStringEntryProto[]|null);
626

627
    /** ModelProto trainingInfo */
628
    trainingInfo?: (onnx.ITrainingInfoProto[]|null);
629

630
    /** ModelProto functions */
631
    functions?: (onnx.IFunctionProto[]|null);
632
  }
633

634
  /** Represents a ModelProto. */
635
  class ModelProto implements IModelProto {
636
    /**
637
     * Constructs a new ModelProto.
638
     * @param [properties] Properties to set
639
     */
640
    constructor(properties?: onnx.IModelProto);
641

642
    /** ModelProto irVersion. */
643
    public irVersion: (number|Long);
644

645
    /** ModelProto opsetImport. */
646
    public opsetImport: onnx.IOperatorSetIdProto[];
647

648
    /** ModelProto producerName. */
649
    public producerName: string;
650

651
    /** ModelProto producerVersion. */
652
    public producerVersion: string;
653

654
    /** ModelProto domain. */
655
    public domain: string;
656

657
    /** ModelProto modelVersion. */
658
    public modelVersion: (number|Long);
659

660
    /** ModelProto docString. */
661
    public docString: string;
662

663
    /** ModelProto graph. */
664
    public graph?: (onnx.IGraphProto|null);
665

666
    /** ModelProto metadataProps. */
667
    public metadataProps: onnx.IStringStringEntryProto[];
668

669
    /** ModelProto trainingInfo. */
670
    public trainingInfo: onnx.ITrainingInfoProto[];
671

672
    /** ModelProto functions. */
673
    public functions: onnx.IFunctionProto[];
674

675
    /**
676
     * Creates a new ModelProto instance using the specified properties.
677
     * @param [properties] Properties to set
678
     * @returns ModelProto instance
679
     */
680
    public static create(properties?: onnx.IModelProto): onnx.ModelProto;
681

682
    /**
683
     * Encodes the specified ModelProto message. Does not implicitly {@link onnx.ModelProto.verify|verify} messages.
684
     * @param message ModelProto message or plain object to encode
685
     * @param [writer] Writer to encode to
686
     * @returns Writer
687
     */
688
    public static encode(message: onnx.IModelProto, writer?: $protobuf.Writer): $protobuf.Writer;
689

690
    /**
691
     * Encodes the specified ModelProto message, length delimited. Does not implicitly {@link
692
     * onnx.ModelProto.verify|verify} messages.
693
     * @param message ModelProto message or plain object to encode
694
     * @param [writer] Writer to encode to
695
     * @returns Writer
696
     */
697
    public static encodeDelimited(message: onnx.IModelProto, writer?: $protobuf.Writer): $protobuf.Writer;
698

699
    /**
700
     * Decodes a ModelProto message from the specified reader or buffer.
701
     * @param reader Reader or buffer to decode from
702
     * @param [length] Message length if known beforehand
703
     * @returns ModelProto
704
     * @throws {Error} If the payload is not a reader or valid buffer
705
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
706
     */
707
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.ModelProto;
708

709
    /**
710
     * Decodes a ModelProto message from the specified reader or buffer, length delimited.
711
     * @param reader Reader or buffer to decode from
712
     * @returns ModelProto
713
     * @throws {Error} If the payload is not a reader or valid buffer
714
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
715
     */
716
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.ModelProto;
717

718
    /**
719
     * Verifies a ModelProto message.
720
     * @param message Plain object to verify
721
     * @returns `null` if valid, otherwise the reason why it is not
722
     */
723
    public static verify(message: {[k: string]: any}): (string|null);
724

725
    /**
726
     * Creates a ModelProto message from a plain object. Also converts values to their respective internal types.
727
     * @param object Plain object
728
     * @returns ModelProto
729
     */
730
    public static fromObject(object: {[k: string]: any}): onnx.ModelProto;
731

732
    /**
733
     * Creates a plain object from a ModelProto message. Also converts values to other types if specified.
734
     * @param message ModelProto
735
     * @param [options] Conversion options
736
     * @returns Plain object
737
     */
738
    public static toObject(message: onnx.ModelProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
739

740
    /**
741
     * Converts this ModelProto to JSON.
742
     * @returns JSON object
743
     */
744
    public toJSON(): {[k: string]: any};
745

746
    /**
747
     * Gets the default type url for ModelProto
748
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
749
     * @returns The default type url
750
     */
751
    public static getTypeUrl(typeUrlPrefix?: string): string;
752
  }
753

754
  /** Properties of a StringStringEntryProto. */
755
  interface IStringStringEntryProto {
756
    /** StringStringEntryProto key */
757
    key?: (string|null);
758

759
    /** StringStringEntryProto value */
760
    value?: (string|null);
761
  }
762

763
  /** Represents a StringStringEntryProto. */
764
  class StringStringEntryProto implements IStringStringEntryProto {
765
    /**
766
     * Constructs a new StringStringEntryProto.
767
     * @param [properties] Properties to set
768
     */
769
    constructor(properties?: onnx.IStringStringEntryProto);
770

771
    /** StringStringEntryProto key. */
772
    public key: string;
773

774
    /** StringStringEntryProto value. */
775
    public value: string;
776

777
    /**
778
     * Creates a new StringStringEntryProto instance using the specified properties.
779
     * @param [properties] Properties to set
780
     * @returns StringStringEntryProto instance
781
     */
782
    public static create(properties?: onnx.IStringStringEntryProto): onnx.StringStringEntryProto;
783

784
    /**
785
     * Encodes the specified StringStringEntryProto message. Does not implicitly {@link
786
     * onnx.StringStringEntryProto.verify|verify} messages.
787
     * @param message StringStringEntryProto message or plain object to encode
788
     * @param [writer] Writer to encode to
789
     * @returns Writer
790
     */
791
    public static encode(message: onnx.IStringStringEntryProto, writer?: $protobuf.Writer): $protobuf.Writer;
792

793
    /**
794
     * Encodes the specified StringStringEntryProto message, length delimited. Does not implicitly {@link
795
     * onnx.StringStringEntryProto.verify|verify} messages.
796
     * @param message StringStringEntryProto message or plain object to encode
797
     * @param [writer] Writer to encode to
798
     * @returns Writer
799
     */
800
    public static encodeDelimited(message: onnx.IStringStringEntryProto, writer?: $protobuf.Writer): $protobuf.Writer;
801

802
    /**
803
     * Decodes a StringStringEntryProto message from the specified reader or buffer.
804
     * @param reader Reader or buffer to decode from
805
     * @param [length] Message length if known beforehand
806
     * @returns StringStringEntryProto
807
     * @throws {Error} If the payload is not a reader or valid buffer
808
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
809
     */
810
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.StringStringEntryProto;
811

812
    /**
813
     * Decodes a StringStringEntryProto message from the specified reader or buffer, length delimited.
814
     * @param reader Reader or buffer to decode from
815
     * @returns StringStringEntryProto
816
     * @throws {Error} If the payload is not a reader or valid buffer
817
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
818
     */
819
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.StringStringEntryProto;
820

821
    /**
822
     * Verifies a StringStringEntryProto message.
823
     * @param message Plain object to verify
824
     * @returns `null` if valid, otherwise the reason why it is not
825
     */
826
    public static verify(message: {[k: string]: any}): (string|null);
827

828
    /**
829
     * Creates a StringStringEntryProto message from a plain object. Also converts values to their respective internal
830
     * types.
831
     * @param object Plain object
832
     * @returns StringStringEntryProto
833
     */
834
    public static fromObject(object: {[k: string]: any}): onnx.StringStringEntryProto;
835

836
    /**
837
     * Creates a plain object from a StringStringEntryProto message. Also converts values to other types if specified.
838
     * @param message StringStringEntryProto
839
     * @param [options] Conversion options
840
     * @returns Plain object
841
     */
842
    public static toObject(message: onnx.StringStringEntryProto, options?: $protobuf.IConversionOptions):
843
        {[k: string]: any};
844

845
    /**
846
     * Converts this StringStringEntryProto to JSON.
847
     * @returns JSON object
848
     */
849
    public toJSON(): {[k: string]: any};
850

851
    /**
852
     * Gets the default type url for StringStringEntryProto
853
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
854
     * @returns The default type url
855
     */
856
    public static getTypeUrl(typeUrlPrefix?: string): string;
857
  }
858

859
  /** Properties of a TensorAnnotation. */
860
  interface ITensorAnnotation {
861
    /** TensorAnnotation tensorName */
862
    tensorName?: (string|null);
863

864
    /** TensorAnnotation quantParameterTensorNames */
865
    quantParameterTensorNames?: (onnx.IStringStringEntryProto[]|null);
866
  }
867

868
  /** Represents a TensorAnnotation. */
869
  class TensorAnnotation implements ITensorAnnotation {
870
    /**
871
     * Constructs a new TensorAnnotation.
872
     * @param [properties] Properties to set
873
     */
874
    constructor(properties?: onnx.ITensorAnnotation);
875

876
    /** TensorAnnotation tensorName. */
877
    public tensorName: string;
878

879
    /** TensorAnnotation quantParameterTensorNames. */
880
    public quantParameterTensorNames: onnx.IStringStringEntryProto[];
881

882
    /**
883
     * Creates a new TensorAnnotation instance using the specified properties.
884
     * @param [properties] Properties to set
885
     * @returns TensorAnnotation instance
886
     */
887
    public static create(properties?: onnx.ITensorAnnotation): onnx.TensorAnnotation;
888

889
    /**
890
     * Encodes the specified TensorAnnotation message. Does not implicitly {@link onnx.TensorAnnotation.verify|verify}
891
     * messages.
892
     * @param message TensorAnnotation message or plain object to encode
893
     * @param [writer] Writer to encode to
894
     * @returns Writer
895
     */
896
    public static encode(message: onnx.ITensorAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
897

898
    /**
899
     * Encodes the specified TensorAnnotation message, length delimited. Does not implicitly {@link
900
     * onnx.TensorAnnotation.verify|verify} messages.
901
     * @param message TensorAnnotation message or plain object to encode
902
     * @param [writer] Writer to encode to
903
     * @returns Writer
904
     */
905
    public static encodeDelimited(message: onnx.ITensorAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
906

907
    /**
908
     * Decodes a TensorAnnotation message from the specified reader or buffer.
909
     * @param reader Reader or buffer to decode from
910
     * @param [length] Message length if known beforehand
911
     * @returns TensorAnnotation
912
     * @throws {Error} If the payload is not a reader or valid buffer
913
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
914
     */
915
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TensorAnnotation;
916

917
    /**
918
     * Decodes a TensorAnnotation message from the specified reader or buffer, length delimited.
919
     * @param reader Reader or buffer to decode from
920
     * @returns TensorAnnotation
921
     * @throws {Error} If the payload is not a reader or valid buffer
922
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
923
     */
924
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TensorAnnotation;
925

926
    /**
927
     * Verifies a TensorAnnotation message.
928
     * @param message Plain object to verify
929
     * @returns `null` if valid, otherwise the reason why it is not
930
     */
931
    public static verify(message: {[k: string]: any}): (string|null);
932

933
    /**
934
     * Creates a TensorAnnotation message from a plain object. Also converts values to their respective internal types.
935
     * @param object Plain object
936
     * @returns TensorAnnotation
937
     */
938
    public static fromObject(object: {[k: string]: any}): onnx.TensorAnnotation;
939

940
    /**
941
     * Creates a plain object from a TensorAnnotation message. Also converts values to other types if specified.
942
     * @param message TensorAnnotation
943
     * @param [options] Conversion options
944
     * @returns Plain object
945
     */
946
    public static toObject(message: onnx.TensorAnnotation, options?: $protobuf.IConversionOptions): {[k: string]: any};
947

948
    /**
949
     * Converts this TensorAnnotation to JSON.
950
     * @returns JSON object
951
     */
952
    public toJSON(): {[k: string]: any};
953

954
    /**
955
     * Gets the default type url for TensorAnnotation
956
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
957
     * @returns The default type url
958
     */
959
    public static getTypeUrl(typeUrlPrefix?: string): string;
960
  }
961

962
  /** Properties of a GraphProto. */
963
  interface IGraphProto {
964
    /** GraphProto node */
965
    node?: (onnx.INodeProto[]|null);
966

967
    /** GraphProto name */
968
    name?: (string|null);
969

970
    /** GraphProto initializer */
971
    initializer?: (onnx.ITensorProto[]|null);
972

973
    /** GraphProto sparseInitializer */
974
    sparseInitializer?: (onnx.ISparseTensorProto[]|null);
975

976
    /** GraphProto docString */
977
    docString?: (string|null);
978

979
    /** GraphProto input */
980
    input?: (onnx.IValueInfoProto[]|null);
981

982
    /** GraphProto output */
983
    output?: (onnx.IValueInfoProto[]|null);
984

985
    /** GraphProto valueInfo */
986
    valueInfo?: (onnx.IValueInfoProto[]|null);
987

988
    /** GraphProto quantizationAnnotation */
989
    quantizationAnnotation?: (onnx.ITensorAnnotation[]|null);
990
  }
991

992
  /** Represents a GraphProto. */
993
  class GraphProto implements IGraphProto {
994
    /**
995
     * Constructs a new GraphProto.
996
     * @param [properties] Properties to set
997
     */
998
    constructor(properties?: onnx.IGraphProto);
999

1000
    /** GraphProto node. */
1001
    public node: onnx.INodeProto[];
1002

1003
    /** GraphProto name. */
1004
    public name: string;
1005

1006
    /** GraphProto initializer. */
1007
    public initializer: onnx.ITensorProto[];
1008

1009
    /** GraphProto sparseInitializer. */
1010
    public sparseInitializer: onnx.ISparseTensorProto[];
1011

1012
    /** GraphProto docString. */
1013
    public docString: string;
1014

1015
    /** GraphProto input. */
1016
    public input: onnx.IValueInfoProto[];
1017

1018
    /** GraphProto output. */
1019
    public output: onnx.IValueInfoProto[];
1020

1021
    /** GraphProto valueInfo. */
1022
    public valueInfo: onnx.IValueInfoProto[];
1023

1024
    /** GraphProto quantizationAnnotation. */
1025
    public quantizationAnnotation: onnx.ITensorAnnotation[];
1026

1027
    /**
1028
     * Creates a new GraphProto instance using the specified properties.
1029
     * @param [properties] Properties to set
1030
     * @returns GraphProto instance
1031
     */
1032
    public static create(properties?: onnx.IGraphProto): onnx.GraphProto;
1033

1034
    /**
1035
     * Encodes the specified GraphProto message. Does not implicitly {@link onnx.GraphProto.verify|verify} messages.
1036
     * @param message GraphProto message or plain object to encode
1037
     * @param [writer] Writer to encode to
1038
     * @returns Writer
1039
     */
1040
    public static encode(message: onnx.IGraphProto, writer?: $protobuf.Writer): $protobuf.Writer;
1041

1042
    /**
1043
     * Encodes the specified GraphProto message, length delimited. Does not implicitly {@link
1044
     * onnx.GraphProto.verify|verify} messages.
1045
     * @param message GraphProto message or plain object to encode
1046
     * @param [writer] Writer to encode to
1047
     * @returns Writer
1048
     */
1049
    public static encodeDelimited(message: onnx.IGraphProto, writer?: $protobuf.Writer): $protobuf.Writer;
1050

1051
    /**
1052
     * Decodes a GraphProto message from the specified reader or buffer.
1053
     * @param reader Reader or buffer to decode from
1054
     * @param [length] Message length if known beforehand
1055
     * @returns GraphProto
1056
     * @throws {Error} If the payload is not a reader or valid buffer
1057
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1058
     */
1059
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.GraphProto;
1060

1061
    /**
1062
     * Decodes a GraphProto message from the specified reader or buffer, length delimited.
1063
     * @param reader Reader or buffer to decode from
1064
     * @returns GraphProto
1065
     * @throws {Error} If the payload is not a reader or valid buffer
1066
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1067
     */
1068
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.GraphProto;
1069

1070
    /**
1071
     * Verifies a GraphProto message.
1072
     * @param message Plain object to verify
1073
     * @returns `null` if valid, otherwise the reason why it is not
1074
     */
1075
    public static verify(message: {[k: string]: any}): (string|null);
1076

1077
    /**
1078
     * Creates a GraphProto message from a plain object. Also converts values to their respective internal types.
1079
     * @param object Plain object
1080
     * @returns GraphProto
1081
     */
1082
    public static fromObject(object: {[k: string]: any}): onnx.GraphProto;
1083

1084
    /**
1085
     * Creates a plain object from a GraphProto message. Also converts values to other types if specified.
1086
     * @param message GraphProto
1087
     * @param [options] Conversion options
1088
     * @returns Plain object
1089
     */
1090
    public static toObject(message: onnx.GraphProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
1091

1092
    /**
1093
     * Converts this GraphProto to JSON.
1094
     * @returns JSON object
1095
     */
1096
    public toJSON(): {[k: string]: any};
1097

1098
    /**
1099
     * Gets the default type url for GraphProto
1100
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1101
     * @returns The default type url
1102
     */
1103
    public static getTypeUrl(typeUrlPrefix?: string): string;
1104
  }
1105

1106
  /** Properties of a TensorProto. */
1107
  interface ITensorProto {
1108
    /** TensorProto dims */
1109
    dims?: ((number | Long)[]|null);
1110

1111
    /** TensorProto dataType */
1112
    dataType?: (number|null);
1113

1114
    /** TensorProto segment */
1115
    segment?: (onnx.TensorProto.ISegment|null);
1116

1117
    /** TensorProto floatData */
1118
    floatData?: (number[]|null);
1119

1120
    /** TensorProto int32Data */
1121
    int32Data?: (number[]|null);
1122

1123
    /** TensorProto stringData */
1124
    stringData?: (Uint8Array[]|null);
1125

1126
    /** TensorProto int64Data */
1127
    int64Data?: ((number | Long)[]|null);
1128

1129
    /** TensorProto name */
1130
    name?: (string|null);
1131

1132
    /** TensorProto docString */
1133
    docString?: (string|null);
1134

1135
    /** TensorProto rawData */
1136
    rawData?: (Uint8Array|null);
1137

1138
    /** TensorProto externalData */
1139
    externalData?: (onnx.IStringStringEntryProto[]|null);
1140

1141
    /** TensorProto dataLocation */
1142
    dataLocation?: (onnx.TensorProto.DataLocation|null);
1143

1144
    /** TensorProto doubleData */
1145
    doubleData?: (number[]|null);
1146

1147
    /** TensorProto uint64Data */
1148
    uint64Data?: ((number | Long)[]|null);
1149
  }
1150

1151
  /** Represents a TensorProto. */
1152
  class TensorProto implements ITensorProto {
1153
    /**
1154
     * Constructs a new TensorProto.
1155
     * @param [properties] Properties to set
1156
     */
1157
    constructor(properties?: onnx.ITensorProto);
1158

1159
    /** TensorProto dims. */
1160
    public dims: (number|Long)[];
1161

1162
    /** TensorProto dataType. */
1163
    public dataType: number;
1164

1165
    /** TensorProto segment. */
1166
    public segment?: (onnx.TensorProto.ISegment|null);
1167

1168
    /** TensorProto floatData. */
1169
    public floatData: number[];
1170

1171
    /** TensorProto int32Data. */
1172
    public int32Data: number[];
1173

1174
    /** TensorProto stringData. */
1175
    public stringData: Uint8Array[];
1176

1177
    /** TensorProto int64Data. */
1178
    public int64Data: (number|Long)[];
1179

1180
    /** TensorProto name. */
1181
    public name: string;
1182

1183
    /** TensorProto docString. */
1184
    public docString: string;
1185

1186
    /** TensorProto rawData. */
1187
    public rawData: Uint8Array;
1188

1189
    /** TensorProto externalData. */
1190
    public externalData: onnx.IStringStringEntryProto[];
1191

1192
    /** TensorProto dataLocation. */
1193
    public dataLocation: onnx.TensorProto.DataLocation;
1194

1195
    /** TensorProto doubleData. */
1196
    public doubleData: number[];
1197

1198
    /** TensorProto uint64Data. */
1199
    public uint64Data: (number|Long)[];
1200

1201
    /**
1202
     * Creates a new TensorProto instance using the specified properties.
1203
     * @param [properties] Properties to set
1204
     * @returns TensorProto instance
1205
     */
1206
    public static create(properties?: onnx.ITensorProto): onnx.TensorProto;
1207

1208
    /**
1209
     * Encodes the specified TensorProto message. Does not implicitly {@link onnx.TensorProto.verify|verify} messages.
1210
     * @param message TensorProto message or plain object to encode
1211
     * @param [writer] Writer to encode to
1212
     * @returns Writer
1213
     */
1214
    public static encode(message: onnx.ITensorProto, writer?: $protobuf.Writer): $protobuf.Writer;
1215

1216
    /**
1217
     * Encodes the specified TensorProto message, length delimited. Does not implicitly {@link
1218
     * onnx.TensorProto.verify|verify} messages.
1219
     * @param message TensorProto message or plain object to encode
1220
     * @param [writer] Writer to encode to
1221
     * @returns Writer
1222
     */
1223
    public static encodeDelimited(message: onnx.ITensorProto, writer?: $protobuf.Writer): $protobuf.Writer;
1224

1225
    /**
1226
     * Decodes a TensorProto message from the specified reader or buffer.
1227
     * @param reader Reader or buffer to decode from
1228
     * @param [length] Message length if known beforehand
1229
     * @returns TensorProto
1230
     * @throws {Error} If the payload is not a reader or valid buffer
1231
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1232
     */
1233
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TensorProto;
1234

1235
    /**
1236
     * Decodes a TensorProto message from the specified reader or buffer, length delimited.
1237
     * @param reader Reader or buffer to decode from
1238
     * @returns TensorProto
1239
     * @throws {Error} If the payload is not a reader or valid buffer
1240
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1241
     */
1242
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TensorProto;
1243

1244
    /**
1245
     * Verifies a TensorProto message.
1246
     * @param message Plain object to verify
1247
     * @returns `null` if valid, otherwise the reason why it is not
1248
     */
1249
    public static verify(message: {[k: string]: any}): (string|null);
1250

1251
    /**
1252
     * Creates a TensorProto message from a plain object. Also converts values to their respective internal types.
1253
     * @param object Plain object
1254
     * @returns TensorProto
1255
     */
1256
    public static fromObject(object: {[k: string]: any}): onnx.TensorProto;
1257

1258
    /**
1259
     * Creates a plain object from a TensorProto message. Also converts values to other types if specified.
1260
     * @param message TensorProto
1261
     * @param [options] Conversion options
1262
     * @returns Plain object
1263
     */
1264
    public static toObject(message: onnx.TensorProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
1265

1266
    /**
1267
     * Converts this TensorProto to JSON.
1268
     * @returns JSON object
1269
     */
1270
    public toJSON(): {[k: string]: any};
1271

1272
    /**
1273
     * Gets the default type url for TensorProto
1274
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1275
     * @returns The default type url
1276
     */
1277
    public static getTypeUrl(typeUrlPrefix?: string): string;
1278
  }
1279

1280
  namespace TensorProto {
1281

1282
    /** DataType enum. */
1283
    enum DataType {
1284
      UNDEFINED = 0,
1285
      FLOAT = 1,
1286
      UINT8 = 2,
1287
      INT8 = 3,
1288
      UINT16 = 4,
1289
      INT16 = 5,
1290
      INT32 = 6,
1291
      INT64 = 7,
1292
      STRING = 8,
1293
      BOOL = 9,
1294
      FLOAT16 = 10,
1295
      DOUBLE = 11,
1296
      UINT32 = 12,
1297
      UINT64 = 13,
1298
      COMPLEX64 = 14,
1299
      COMPLEX128 = 15,
1300
      BFLOAT16 = 16,
1301
      FLOAT8E4M3FN = 17,
1302
      FLOAT8E4M3FNUZ = 18,
1303
      FLOAT8E5M2 = 19,
1304
      FLOAT8E5M2FNUZ = 20
1305
    }
1306

1307
    /** Properties of a Segment. */
1308
    interface ISegment {
1309
      /** Segment begin */
1310
      begin?: (number|Long|null);
1311

1312
      /** Segment end */
1313
      end?: (number|Long|null);
1314
    }
1315

1316
    /** Represents a Segment. */
1317
    class Segment implements ISegment {
1318
      /**
1319
       * Constructs a new Segment.
1320
       * @param [properties] Properties to set
1321
       */
1322
      constructor(properties?: onnx.TensorProto.ISegment);
1323

1324
      /** Segment begin. */
1325
      public begin: (number|Long);
1326

1327
      /** Segment end. */
1328
      public end: (number|Long);
1329

1330
      /**
1331
       * Creates a new Segment instance using the specified properties.
1332
       * @param [properties] Properties to set
1333
       * @returns Segment instance
1334
       */
1335
      public static create(properties?: onnx.TensorProto.ISegment): onnx.TensorProto.Segment;
1336

1337
      /**
1338
       * Encodes the specified Segment message. Does not implicitly {@link onnx.TensorProto.Segment.verify|verify}
1339
       * messages.
1340
       * @param message Segment message or plain object to encode
1341
       * @param [writer] Writer to encode to
1342
       * @returns Writer
1343
       */
1344
      public static encode(message: onnx.TensorProto.ISegment, writer?: $protobuf.Writer): $protobuf.Writer;
1345

1346
      /**
1347
       * Encodes the specified Segment message, length delimited. Does not implicitly {@link
1348
       * onnx.TensorProto.Segment.verify|verify} messages.
1349
       * @param message Segment message or plain object to encode
1350
       * @param [writer] Writer to encode to
1351
       * @returns Writer
1352
       */
1353
      public static encodeDelimited(message: onnx.TensorProto.ISegment, writer?: $protobuf.Writer): $protobuf.Writer;
1354

1355
      /**
1356
       * Decodes a Segment message from the specified reader or buffer.
1357
       * @param reader Reader or buffer to decode from
1358
       * @param [length] Message length if known beforehand
1359
       * @returns Segment
1360
       * @throws {Error} If the payload is not a reader or valid buffer
1361
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
1362
       */
1363
      public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TensorProto.Segment;
1364

1365
      /**
1366
       * Decodes a Segment message from the specified reader or buffer, length delimited.
1367
       * @param reader Reader or buffer to decode from
1368
       * @returns Segment
1369
       * @throws {Error} If the payload is not a reader or valid buffer
1370
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
1371
       */
1372
      public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TensorProto.Segment;
1373

1374
      /**
1375
       * Verifies a Segment message.
1376
       * @param message Plain object to verify
1377
       * @returns `null` if valid, otherwise the reason why it is not
1378
       */
1379
      public static verify(message: {[k: string]: any}): (string|null);
1380

1381
      /**
1382
       * Creates a Segment message from a plain object. Also converts values to their respective internal types.
1383
       * @param object Plain object
1384
       * @returns Segment
1385
       */
1386
      public static fromObject(object: {[k: string]: any}): onnx.TensorProto.Segment;
1387

1388
      /**
1389
       * Creates a plain object from a Segment message. Also converts values to other types if specified.
1390
       * @param message Segment
1391
       * @param [options] Conversion options
1392
       * @returns Plain object
1393
       */
1394
      public static toObject(message: onnx.TensorProto.Segment, options?: $protobuf.IConversionOptions):
1395
          {[k: string]: any};
1396

1397
      /**
1398
       * Converts this Segment to JSON.
1399
       * @returns JSON object
1400
       */
1401
      public toJSON(): {[k: string]: any};
1402

1403
      /**
1404
       * Gets the default type url for Segment
1405
       * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1406
       * @returns The default type url
1407
       */
1408
      public static getTypeUrl(typeUrlPrefix?: string): string;
1409
    }
1410

1411
    /** DataLocation enum. */
1412
    enum DataLocation { DEFAULT = 0, EXTERNAL = 1 }
1413
  }
1414

1415
  /** Properties of a SparseTensorProto. */
1416
  interface ISparseTensorProto {
1417
    /** SparseTensorProto values */
1418
    values?: (onnx.ITensorProto|null);
1419

1420
    /** SparseTensorProto indices */
1421
    indices?: (onnx.ITensorProto|null);
1422

1423
    /** SparseTensorProto dims */
1424
    dims?: ((number | Long)[]|null);
1425
  }
1426

1427
  /** Represents a SparseTensorProto. */
1428
  class SparseTensorProto implements ISparseTensorProto {
1429
    /**
1430
     * Constructs a new SparseTensorProto.
1431
     * @param [properties] Properties to set
1432
     */
1433
    constructor(properties?: onnx.ISparseTensorProto);
1434

1435
    /** SparseTensorProto values. */
1436
    public values?: (onnx.ITensorProto|null);
1437

1438
    /** SparseTensorProto indices. */
1439
    public indices?: (onnx.ITensorProto|null);
1440

1441
    /** SparseTensorProto dims. */
1442
    public dims: (number|Long)[];
1443

1444
    /**
1445
     * Creates a new SparseTensorProto instance using the specified properties.
1446
     * @param [properties] Properties to set
1447
     * @returns SparseTensorProto instance
1448
     */
1449
    public static create(properties?: onnx.ISparseTensorProto): onnx.SparseTensorProto;
1450

1451
    /**
1452
     * Encodes the specified SparseTensorProto message. Does not implicitly {@link onnx.SparseTensorProto.verify|verify}
1453
     * messages.
1454
     * @param message SparseTensorProto message or plain object to encode
1455
     * @param [writer] Writer to encode to
1456
     * @returns Writer
1457
     */
1458
    public static encode(message: onnx.ISparseTensorProto, writer?: $protobuf.Writer): $protobuf.Writer;
1459

1460
    /**
1461
     * Encodes the specified SparseTensorProto message, length delimited. Does not implicitly {@link
1462
     * onnx.SparseTensorProto.verify|verify} messages.
1463
     * @param message SparseTensorProto message or plain object to encode
1464
     * @param [writer] Writer to encode to
1465
     * @returns Writer
1466
     */
1467
    public static encodeDelimited(message: onnx.ISparseTensorProto, writer?: $protobuf.Writer): $protobuf.Writer;
1468

1469
    /**
1470
     * Decodes a SparseTensorProto message from the specified reader or buffer.
1471
     * @param reader Reader or buffer to decode from
1472
     * @param [length] Message length if known beforehand
1473
     * @returns SparseTensorProto
1474
     * @throws {Error} If the payload is not a reader or valid buffer
1475
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1476
     */
1477
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.SparseTensorProto;
1478

1479
    /**
1480
     * Decodes a SparseTensorProto message from the specified reader or buffer, length delimited.
1481
     * @param reader Reader or buffer to decode from
1482
     * @returns SparseTensorProto
1483
     * @throws {Error} If the payload is not a reader or valid buffer
1484
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1485
     */
1486
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.SparseTensorProto;
1487

1488
    /**
1489
     * Verifies a SparseTensorProto message.
1490
     * @param message Plain object to verify
1491
     * @returns `null` if valid, otherwise the reason why it is not
1492
     */
1493
    public static verify(message: {[k: string]: any}): (string|null);
1494

1495
    /**
1496
     * Creates a SparseTensorProto message from a plain object. Also converts values to their respective internal types.
1497
     * @param object Plain object
1498
     * @returns SparseTensorProto
1499
     */
1500
    public static fromObject(object: {[k: string]: any}): onnx.SparseTensorProto;
1501

1502
    /**
1503
     * Creates a plain object from a SparseTensorProto message. Also converts values to other types if specified.
1504
     * @param message SparseTensorProto
1505
     * @param [options] Conversion options
1506
     * @returns Plain object
1507
     */
1508
    public static toObject(message: onnx.SparseTensorProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
1509

1510
    /**
1511
     * Converts this SparseTensorProto to JSON.
1512
     * @returns JSON object
1513
     */
1514
    public toJSON(): {[k: string]: any};
1515

1516
    /**
1517
     * Gets the default type url for SparseTensorProto
1518
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1519
     * @returns The default type url
1520
     */
1521
    public static getTypeUrl(typeUrlPrefix?: string): string;
1522
  }
1523

1524
  /** Properties of a TensorShapeProto. */
1525
  interface ITensorShapeProto {
1526
    /** TensorShapeProto dim */
1527
    dim?: (onnx.TensorShapeProto.IDimension[]|null);
1528
  }
1529

1530
  /** Represents a TensorShapeProto. */
1531
  class TensorShapeProto implements ITensorShapeProto {
1532
    /**
1533
     * Constructs a new TensorShapeProto.
1534
     * @param [properties] Properties to set
1535
     */
1536
    constructor(properties?: onnx.ITensorShapeProto);
1537

1538
    /** TensorShapeProto dim. */
1539
    public dim: onnx.TensorShapeProto.IDimension[];
1540

1541
    /**
1542
     * Creates a new TensorShapeProto instance using the specified properties.
1543
     * @param [properties] Properties to set
1544
     * @returns TensorShapeProto instance
1545
     */
1546
    public static create(properties?: onnx.ITensorShapeProto): onnx.TensorShapeProto;
1547

1548
    /**
1549
     * Encodes the specified TensorShapeProto message. Does not implicitly {@link onnx.TensorShapeProto.verify|verify}
1550
     * messages.
1551
     * @param message TensorShapeProto message or plain object to encode
1552
     * @param [writer] Writer to encode to
1553
     * @returns Writer
1554
     */
1555
    public static encode(message: onnx.ITensorShapeProto, writer?: $protobuf.Writer): $protobuf.Writer;
1556

1557
    /**
1558
     * Encodes the specified TensorShapeProto message, length delimited. Does not implicitly {@link
1559
     * onnx.TensorShapeProto.verify|verify} messages.
1560
     * @param message TensorShapeProto message or plain object to encode
1561
     * @param [writer] Writer to encode to
1562
     * @returns Writer
1563
     */
1564
    public static encodeDelimited(message: onnx.ITensorShapeProto, writer?: $protobuf.Writer): $protobuf.Writer;
1565

1566
    /**
1567
     * Decodes a TensorShapeProto message from the specified reader or buffer.
1568
     * @param reader Reader or buffer to decode from
1569
     * @param [length] Message length if known beforehand
1570
     * @returns TensorShapeProto
1571
     * @throws {Error} If the payload is not a reader or valid buffer
1572
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1573
     */
1574
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TensorShapeProto;
1575

1576
    /**
1577
     * Decodes a TensorShapeProto message from the specified reader or buffer, length delimited.
1578
     * @param reader Reader or buffer to decode from
1579
     * @returns TensorShapeProto
1580
     * @throws {Error} If the payload is not a reader or valid buffer
1581
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1582
     */
1583
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TensorShapeProto;
1584

1585
    /**
1586
     * Verifies a TensorShapeProto message.
1587
     * @param message Plain object to verify
1588
     * @returns `null` if valid, otherwise the reason why it is not
1589
     */
1590
    public static verify(message: {[k: string]: any}): (string|null);
1591

1592
    /**
1593
     * Creates a TensorShapeProto message from a plain object. Also converts values to their respective internal types.
1594
     * @param object Plain object
1595
     * @returns TensorShapeProto
1596
     */
1597
    public static fromObject(object: {[k: string]: any}): onnx.TensorShapeProto;
1598

1599
    /**
1600
     * Creates a plain object from a TensorShapeProto message. Also converts values to other types if specified.
1601
     * @param message TensorShapeProto
1602
     * @param [options] Conversion options
1603
     * @returns Plain object
1604
     */
1605
    public static toObject(message: onnx.TensorShapeProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
1606

1607
    /**
1608
     * Converts this TensorShapeProto to JSON.
1609
     * @returns JSON object
1610
     */
1611
    public toJSON(): {[k: string]: any};
1612

1613
    /**
1614
     * Gets the default type url for TensorShapeProto
1615
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1616
     * @returns The default type url
1617
     */
1618
    public static getTypeUrl(typeUrlPrefix?: string): string;
1619
  }
1620

1621
  namespace TensorShapeProto {
1622

1623
    /** Properties of a Dimension. */
1624
    interface IDimension {
1625
      /** Dimension dimValue */
1626
      dimValue?: (number|Long|null);
1627

1628
      /** Dimension dimParam */
1629
      dimParam?: (string|null);
1630

1631
      /** Dimension denotation */
1632
      denotation?: (string|null);
1633
    }
1634

1635
    /** Represents a Dimension. */
1636
    class Dimension implements IDimension {
1637
      /**
1638
       * Constructs a new Dimension.
1639
       * @param [properties] Properties to set
1640
       */
1641
      constructor(properties?: onnx.TensorShapeProto.IDimension);
1642

1643
      /** Dimension dimValue. */
1644
      public dimValue?: (number|Long|null);
1645

1646
      /** Dimension dimParam. */
1647
      public dimParam?: (string|null);
1648

1649
      /** Dimension denotation. */
1650
      public denotation: string;
1651

1652
      /** Dimension value. */
1653
      public value?: ('dimValue'|'dimParam');
1654

1655
      /**
1656
       * Creates a new Dimension instance using the specified properties.
1657
       * @param [properties] Properties to set
1658
       * @returns Dimension instance
1659
       */
1660
      public static create(properties?: onnx.TensorShapeProto.IDimension): onnx.TensorShapeProto.Dimension;
1661

1662
      /**
1663
       * Encodes the specified Dimension message. Does not implicitly {@link
1664
       * onnx.TensorShapeProto.Dimension.verify|verify} messages.
1665
       * @param message Dimension message or plain object to encode
1666
       * @param [writer] Writer to encode to
1667
       * @returns Writer
1668
       */
1669
      public static encode(message: onnx.TensorShapeProto.IDimension, writer?: $protobuf.Writer): $protobuf.Writer;
1670

1671
      /**
1672
       * Encodes the specified Dimension message, length delimited. Does not implicitly {@link
1673
       * onnx.TensorShapeProto.Dimension.verify|verify} messages.
1674
       * @param message Dimension message or plain object to encode
1675
       * @param [writer] Writer to encode to
1676
       * @returns Writer
1677
       */
1678
      public static encodeDelimited(message: onnx.TensorShapeProto.IDimension, writer?: $protobuf.Writer):
1679
          $protobuf.Writer;
1680

1681
      /**
1682
       * Decodes a Dimension message from the specified reader or buffer.
1683
       * @param reader Reader or buffer to decode from
1684
       * @param [length] Message length if known beforehand
1685
       * @returns Dimension
1686
       * @throws {Error} If the payload is not a reader or valid buffer
1687
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
1688
       */
1689
      public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TensorShapeProto.Dimension;
1690

1691
      /**
1692
       * Decodes a Dimension message from the specified reader or buffer, length delimited.
1693
       * @param reader Reader or buffer to decode from
1694
       * @returns Dimension
1695
       * @throws {Error} If the payload is not a reader or valid buffer
1696
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
1697
       */
1698
      public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TensorShapeProto.Dimension;
1699

1700
      /**
1701
       * Verifies a Dimension message.
1702
       * @param message Plain object to verify
1703
       * @returns `null` if valid, otherwise the reason why it is not
1704
       */
1705
      public static verify(message: {[k: string]: any}): (string|null);
1706

1707
      /**
1708
       * Creates a Dimension message from a plain object. Also converts values to their respective internal types.
1709
       * @param object Plain object
1710
       * @returns Dimension
1711
       */
1712
      public static fromObject(object: {[k: string]: any}): onnx.TensorShapeProto.Dimension;
1713

1714
      /**
1715
       * Creates a plain object from a Dimension message. Also converts values to other types if specified.
1716
       * @param message Dimension
1717
       * @param [options] Conversion options
1718
       * @returns Plain object
1719
       */
1720
      public static toObject(message: onnx.TensorShapeProto.Dimension, options?: $protobuf.IConversionOptions):
1721
          {[k: string]: any};
1722

1723
      /**
1724
       * Converts this Dimension to JSON.
1725
       * @returns JSON object
1726
       */
1727
      public toJSON(): {[k: string]: any};
1728

1729
      /**
1730
       * Gets the default type url for Dimension
1731
       * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1732
       * @returns The default type url
1733
       */
1734
      public static getTypeUrl(typeUrlPrefix?: string): string;
1735
    }
1736
  }
1737

1738
  /** Properties of a TypeProto. */
1739
  interface ITypeProto {
1740
    /** TypeProto tensorType */
1741
    tensorType?: (onnx.TypeProto.ITensor|null);
1742

1743
    /** TypeProto sequenceType */
1744
    sequenceType?: (onnx.TypeProto.ISequence|null);
1745

1746
    /** TypeProto mapType */
1747
    mapType?: (onnx.TypeProto.IMap|null);
1748

1749
    /** TypeProto optionalType */
1750
    optionalType?: (onnx.TypeProto.IOptional|null);
1751

1752
    /** TypeProto sparseTensorType */
1753
    sparseTensorType?: (onnx.TypeProto.ISparseTensor|null);
1754

1755
    /** TypeProto denotation */
1756
    denotation?: (string|null);
1757
  }
1758

1759
  /** Represents a TypeProto. */
1760
  class TypeProto implements ITypeProto {
1761
    /**
1762
     * Constructs a new TypeProto.
1763
     * @param [properties] Properties to set
1764
     */
1765
    constructor(properties?: onnx.ITypeProto);
1766

1767
    /** TypeProto tensorType. */
1768
    public tensorType?: (onnx.TypeProto.ITensor|null);
1769

1770
    /** TypeProto sequenceType. */
1771
    public sequenceType?: (onnx.TypeProto.ISequence|null);
1772

1773
    /** TypeProto mapType. */
1774
    public mapType?: (onnx.TypeProto.IMap|null);
1775

1776
    /** TypeProto optionalType. */
1777
    public optionalType?: (onnx.TypeProto.IOptional|null);
1778

1779
    /** TypeProto sparseTensorType. */
1780
    public sparseTensorType?: (onnx.TypeProto.ISparseTensor|null);
1781

1782
    /** TypeProto denotation. */
1783
    public denotation: string;
1784

1785
    /** TypeProto value. */
1786
    public value?: ('tensorType'|'sequenceType'|'mapType'|'optionalType'|'sparseTensorType');
1787

1788
    /**
1789
     * Creates a new TypeProto instance using the specified properties.
1790
     * @param [properties] Properties to set
1791
     * @returns TypeProto instance
1792
     */
1793
    public static create(properties?: onnx.ITypeProto): onnx.TypeProto;
1794

1795
    /**
1796
     * Encodes the specified TypeProto message. Does not implicitly {@link onnx.TypeProto.verify|verify} messages.
1797
     * @param message TypeProto message or plain object to encode
1798
     * @param [writer] Writer to encode to
1799
     * @returns Writer
1800
     */
1801
    public static encode(message: onnx.ITypeProto, writer?: $protobuf.Writer): $protobuf.Writer;
1802

1803
    /**
1804
     * Encodes the specified TypeProto message, length delimited. Does not implicitly {@link
1805
     * onnx.TypeProto.verify|verify} messages.
1806
     * @param message TypeProto message or plain object to encode
1807
     * @param [writer] Writer to encode to
1808
     * @returns Writer
1809
     */
1810
    public static encodeDelimited(message: onnx.ITypeProto, writer?: $protobuf.Writer): $protobuf.Writer;
1811

1812
    /**
1813
     * Decodes a TypeProto message from the specified reader or buffer.
1814
     * @param reader Reader or buffer to decode from
1815
     * @param [length] Message length if known beforehand
1816
     * @returns TypeProto
1817
     * @throws {Error} If the payload is not a reader or valid buffer
1818
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1819
     */
1820
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TypeProto;
1821

1822
    /**
1823
     * Decodes a TypeProto message from the specified reader or buffer, length delimited.
1824
     * @param reader Reader or buffer to decode from
1825
     * @returns TypeProto
1826
     * @throws {Error} If the payload is not a reader or valid buffer
1827
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
1828
     */
1829
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TypeProto;
1830

1831
    /**
1832
     * Verifies a TypeProto message.
1833
     * @param message Plain object to verify
1834
     * @returns `null` if valid, otherwise the reason why it is not
1835
     */
1836
    public static verify(message: {[k: string]: any}): (string|null);
1837

1838
    /**
1839
     * Creates a TypeProto message from a plain object. Also converts values to their respective internal types.
1840
     * @param object Plain object
1841
     * @returns TypeProto
1842
     */
1843
    public static fromObject(object: {[k: string]: any}): onnx.TypeProto;
1844

1845
    /**
1846
     * Creates a plain object from a TypeProto message. Also converts values to other types if specified.
1847
     * @param message TypeProto
1848
     * @param [options] Conversion options
1849
     * @returns Plain object
1850
     */
1851
    public static toObject(message: onnx.TypeProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
1852

1853
    /**
1854
     * Converts this TypeProto to JSON.
1855
     * @returns JSON object
1856
     */
1857
    public toJSON(): {[k: string]: any};
1858

1859
    /**
1860
     * Gets the default type url for TypeProto
1861
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1862
     * @returns The default type url
1863
     */
1864
    public static getTypeUrl(typeUrlPrefix?: string): string;
1865
  }
1866

1867
  namespace TypeProto {
1868

1869
    /** Properties of a Tensor. */
1870
    interface ITensor {
1871
      /** Tensor elemType */
1872
      elemType?: (number|null);
1873

1874
      /** Tensor shape */
1875
      shape?: (onnx.ITensorShapeProto|null);
1876
    }
1877

1878
    /** Represents a Tensor. */
1879
    class Tensor implements ITensor {
1880
      /**
1881
       * Constructs a new Tensor.
1882
       * @param [properties] Properties to set
1883
       */
1884
      constructor(properties?: onnx.TypeProto.ITensor);
1885

1886
      /** Tensor elemType. */
1887
      public elemType: number;
1888

1889
      /** Tensor shape. */
1890
      public shape?: (onnx.ITensorShapeProto|null);
1891

1892
      /**
1893
       * Creates a new Tensor instance using the specified properties.
1894
       * @param [properties] Properties to set
1895
       * @returns Tensor instance
1896
       */
1897
      public static create(properties?: onnx.TypeProto.ITensor): onnx.TypeProto.Tensor;
1898

1899
      /**
1900
       * Encodes the specified Tensor message. Does not implicitly {@link onnx.TypeProto.Tensor.verify|verify} messages.
1901
       * @param message Tensor message or plain object to encode
1902
       * @param [writer] Writer to encode to
1903
       * @returns Writer
1904
       */
1905
      public static encode(message: onnx.TypeProto.ITensor, writer?: $protobuf.Writer): $protobuf.Writer;
1906

1907
      /**
1908
       * Encodes the specified Tensor message, length delimited. Does not implicitly {@link
1909
       * onnx.TypeProto.Tensor.verify|verify} messages.
1910
       * @param message Tensor message or plain object to encode
1911
       * @param [writer] Writer to encode to
1912
       * @returns Writer
1913
       */
1914
      public static encodeDelimited(message: onnx.TypeProto.ITensor, writer?: $protobuf.Writer): $protobuf.Writer;
1915

1916
      /**
1917
       * Decodes a Tensor message from the specified reader or buffer.
1918
       * @param reader Reader or buffer to decode from
1919
       * @param [length] Message length if known beforehand
1920
       * @returns Tensor
1921
       * @throws {Error} If the payload is not a reader or valid buffer
1922
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
1923
       */
1924
      public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TypeProto.Tensor;
1925

1926
      /**
1927
       * Decodes a Tensor message from the specified reader or buffer, length delimited.
1928
       * @param reader Reader or buffer to decode from
1929
       * @returns Tensor
1930
       * @throws {Error} If the payload is not a reader or valid buffer
1931
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
1932
       */
1933
      public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TypeProto.Tensor;
1934

1935
      /**
1936
       * Verifies a Tensor message.
1937
       * @param message Plain object to verify
1938
       * @returns `null` if valid, otherwise the reason why it is not
1939
       */
1940
      public static verify(message: {[k: string]: any}): (string|null);
1941

1942
      /**
1943
       * Creates a Tensor message from a plain object. Also converts values to their respective internal types.
1944
       * @param object Plain object
1945
       * @returns Tensor
1946
       */
1947
      public static fromObject(object: {[k: string]: any}): onnx.TypeProto.Tensor;
1948

1949
      /**
1950
       * Creates a plain object from a Tensor message. Also converts values to other types if specified.
1951
       * @param message Tensor
1952
       * @param [options] Conversion options
1953
       * @returns Plain object
1954
       */
1955
      public static toObject(message: onnx.TypeProto.Tensor, options?: $protobuf.IConversionOptions):
1956
          {[k: string]: any};
1957

1958
      /**
1959
       * Converts this Tensor to JSON.
1960
       * @returns JSON object
1961
       */
1962
      public toJSON(): {[k: string]: any};
1963

1964
      /**
1965
       * Gets the default type url for Tensor
1966
       * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1967
       * @returns The default type url
1968
       */
1969
      public static getTypeUrl(typeUrlPrefix?: string): string;
1970
    }
1971

1972
    /** Properties of a Sequence. */
1973
    interface ISequence {
1974
      /** Sequence elemType */
1975
      elemType?: (onnx.ITypeProto|null);
1976
    }
1977

1978
    /** Represents a Sequence. */
1979
    class Sequence implements ISequence {
1980
      /**
1981
       * Constructs a new Sequence.
1982
       * @param [properties] Properties to set
1983
       */
1984
      constructor(properties?: onnx.TypeProto.ISequence);
1985

1986
      /** Sequence elemType. */
1987
      public elemType?: (onnx.ITypeProto|null);
1988

1989
      /**
1990
       * Creates a new Sequence instance using the specified properties.
1991
       * @param [properties] Properties to set
1992
       * @returns Sequence instance
1993
       */
1994
      public static create(properties?: onnx.TypeProto.ISequence): onnx.TypeProto.Sequence;
1995

1996
      /**
1997
       * Encodes the specified Sequence message. Does not implicitly {@link onnx.TypeProto.Sequence.verify|verify}
1998
       * messages.
1999
       * @param message Sequence message or plain object to encode
2000
       * @param [writer] Writer to encode to
2001
       * @returns Writer
2002
       */
2003
      public static encode(message: onnx.TypeProto.ISequence, writer?: $protobuf.Writer): $protobuf.Writer;
2004

2005
      /**
2006
       * Encodes the specified Sequence message, length delimited. Does not implicitly {@link
2007
       * onnx.TypeProto.Sequence.verify|verify} messages.
2008
       * @param message Sequence message or plain object to encode
2009
       * @param [writer] Writer to encode to
2010
       * @returns Writer
2011
       */
2012
      public static encodeDelimited(message: onnx.TypeProto.ISequence, writer?: $protobuf.Writer): $protobuf.Writer;
2013

2014
      /**
2015
       * Decodes a Sequence message from the specified reader or buffer.
2016
       * @param reader Reader or buffer to decode from
2017
       * @param [length] Message length if known beforehand
2018
       * @returns Sequence
2019
       * @throws {Error} If the payload is not a reader or valid buffer
2020
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2021
       */
2022
      public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TypeProto.Sequence;
2023

2024
      /**
2025
       * Decodes a Sequence message from the specified reader or buffer, length delimited.
2026
       * @param reader Reader or buffer to decode from
2027
       * @returns Sequence
2028
       * @throws {Error} If the payload is not a reader or valid buffer
2029
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2030
       */
2031
      public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TypeProto.Sequence;
2032

2033
      /**
2034
       * Verifies a Sequence message.
2035
       * @param message Plain object to verify
2036
       * @returns `null` if valid, otherwise the reason why it is not
2037
       */
2038
      public static verify(message: {[k: string]: any}): (string|null);
2039

2040
      /**
2041
       * Creates a Sequence message from a plain object. Also converts values to their respective internal types.
2042
       * @param object Plain object
2043
       * @returns Sequence
2044
       */
2045
      public static fromObject(object: {[k: string]: any}): onnx.TypeProto.Sequence;
2046

2047
      /**
2048
       * Creates a plain object from a Sequence message. Also converts values to other types if specified.
2049
       * @param message Sequence
2050
       * @param [options] Conversion options
2051
       * @returns Plain object
2052
       */
2053
      public static toObject(message: onnx.TypeProto.Sequence, options?: $protobuf.IConversionOptions):
2054
          {[k: string]: any};
2055

2056
      /**
2057
       * Converts this Sequence to JSON.
2058
       * @returns JSON object
2059
       */
2060
      public toJSON(): {[k: string]: any};
2061

2062
      /**
2063
       * Gets the default type url for Sequence
2064
       * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2065
       * @returns The default type url
2066
       */
2067
      public static getTypeUrl(typeUrlPrefix?: string): string;
2068
    }
2069

2070
    /** Properties of a Map. */
2071
    interface IMap {
2072
      /** Map keyType */
2073
      keyType?: (number|null);
2074

2075
      /** Map valueType */
2076
      valueType?: (onnx.ITypeProto|null);
2077
    }
2078

2079
    /** Represents a Map. */
2080
    class Map implements IMap {
2081
      /**
2082
       * Constructs a new Map.
2083
       * @param [properties] Properties to set
2084
       */
2085
      constructor(properties?: onnx.TypeProto.IMap);
2086

2087
      /** Map keyType. */
2088
      public keyType: number;
2089

2090
      /** Map valueType. */
2091
      public valueType?: (onnx.ITypeProto|null);
2092

2093
      /**
2094
       * Creates a new Map instance using the specified properties.
2095
       * @param [properties] Properties to set
2096
       * @returns Map instance
2097
       */
2098
      public static create(properties?: onnx.TypeProto.IMap): onnx.TypeProto.Map;
2099

2100
      /**
2101
       * Encodes the specified Map message. Does not implicitly {@link onnx.TypeProto.Map.verify|verify} messages.
2102
       * @param message Map message or plain object to encode
2103
       * @param [writer] Writer to encode to
2104
       * @returns Writer
2105
       */
2106
      public static encode(message: onnx.TypeProto.IMap, writer?: $protobuf.Writer): $protobuf.Writer;
2107

2108
      /**
2109
       * Encodes the specified Map message, length delimited. Does not implicitly {@link
2110
       * onnx.TypeProto.Map.verify|verify} messages.
2111
       * @param message Map message or plain object to encode
2112
       * @param [writer] Writer to encode to
2113
       * @returns Writer
2114
       */
2115
      public static encodeDelimited(message: onnx.TypeProto.IMap, writer?: $protobuf.Writer): $protobuf.Writer;
2116

2117
      /**
2118
       * Decodes a Map message from the specified reader or buffer.
2119
       * @param reader Reader or buffer to decode from
2120
       * @param [length] Message length if known beforehand
2121
       * @returns Map
2122
       * @throws {Error} If the payload is not a reader or valid buffer
2123
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2124
       */
2125
      public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TypeProto.Map;
2126

2127
      /**
2128
       * Decodes a Map message from the specified reader or buffer, length delimited.
2129
       * @param reader Reader or buffer to decode from
2130
       * @returns Map
2131
       * @throws {Error} If the payload is not a reader or valid buffer
2132
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2133
       */
2134
      public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TypeProto.Map;
2135

2136
      /**
2137
       * Verifies a Map message.
2138
       * @param message Plain object to verify
2139
       * @returns `null` if valid, otherwise the reason why it is not
2140
       */
2141
      public static verify(message: {[k: string]: any}): (string|null);
2142

2143
      /**
2144
       * Creates a Map message from a plain object. Also converts values to their respective internal types.
2145
       * @param object Plain object
2146
       * @returns Map
2147
       */
2148
      public static fromObject(object: {[k: string]: any}): onnx.TypeProto.Map;
2149

2150
      /**
2151
       * Creates a plain object from a Map message. Also converts values to other types if specified.
2152
       * @param message Map
2153
       * @param [options] Conversion options
2154
       * @returns Plain object
2155
       */
2156
      public static toObject(message: onnx.TypeProto.Map, options?: $protobuf.IConversionOptions): {[k: string]: any};
2157

2158
      /**
2159
       * Converts this Map to JSON.
2160
       * @returns JSON object
2161
       */
2162
      public toJSON(): {[k: string]: any};
2163

2164
      /**
2165
       * Gets the default type url for Map
2166
       * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2167
       * @returns The default type url
2168
       */
2169
      public static getTypeUrl(typeUrlPrefix?: string): string;
2170
    }
2171

2172
    /** Properties of an Optional. */
2173
    interface IOptional {
2174
      /** Optional elemType */
2175
      elemType?: (onnx.ITypeProto|null);
2176
    }
2177

2178
    /** Represents an Optional. */
2179
    class Optional implements IOptional {
2180
      /**
2181
       * Constructs a new Optional.
2182
       * @param [properties] Properties to set
2183
       */
2184
      constructor(properties?: onnx.TypeProto.IOptional);
2185

2186
      /** Optional elemType. */
2187
      public elemType?: (onnx.ITypeProto|null);
2188

2189
      /**
2190
       * Creates a new Optional instance using the specified properties.
2191
       * @param [properties] Properties to set
2192
       * @returns Optional instance
2193
       */
2194
      public static create(properties?: onnx.TypeProto.IOptional): onnx.TypeProto.Optional;
2195

2196
      /**
2197
       * Encodes the specified Optional message. Does not implicitly {@link onnx.TypeProto.Optional.verify|verify}
2198
       * messages.
2199
       * @param message Optional message or plain object to encode
2200
       * @param [writer] Writer to encode to
2201
       * @returns Writer
2202
       */
2203
      public static encode(message: onnx.TypeProto.IOptional, writer?: $protobuf.Writer): $protobuf.Writer;
2204

2205
      /**
2206
       * Encodes the specified Optional message, length delimited. Does not implicitly {@link
2207
       * onnx.TypeProto.Optional.verify|verify} messages.
2208
       * @param message Optional message or plain object to encode
2209
       * @param [writer] Writer to encode to
2210
       * @returns Writer
2211
       */
2212
      public static encodeDelimited(message: onnx.TypeProto.IOptional, writer?: $protobuf.Writer): $protobuf.Writer;
2213

2214
      /**
2215
       * Decodes an Optional message from the specified reader or buffer.
2216
       * @param reader Reader or buffer to decode from
2217
       * @param [length] Message length if known beforehand
2218
       * @returns Optional
2219
       * @throws {Error} If the payload is not a reader or valid buffer
2220
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2221
       */
2222
      public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TypeProto.Optional;
2223

2224
      /**
2225
       * Decodes an Optional message from the specified reader or buffer, length delimited.
2226
       * @param reader Reader or buffer to decode from
2227
       * @returns Optional
2228
       * @throws {Error} If the payload is not a reader or valid buffer
2229
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2230
       */
2231
      public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TypeProto.Optional;
2232

2233
      /**
2234
       * Verifies an Optional message.
2235
       * @param message Plain object to verify
2236
       * @returns `null` if valid, otherwise the reason why it is not
2237
       */
2238
      public static verify(message: {[k: string]: any}): (string|null);
2239

2240
      /**
2241
       * Creates an Optional message from a plain object. Also converts values to their respective internal types.
2242
       * @param object Plain object
2243
       * @returns Optional
2244
       */
2245
      public static fromObject(object: {[k: string]: any}): onnx.TypeProto.Optional;
2246

2247
      /**
2248
       * Creates a plain object from an Optional message. Also converts values to other types if specified.
2249
       * @param message Optional
2250
       * @param [options] Conversion options
2251
       * @returns Plain object
2252
       */
2253
      public static toObject(message: onnx.TypeProto.Optional, options?: $protobuf.IConversionOptions):
2254
          {[k: string]: any};
2255

2256
      /**
2257
       * Converts this Optional to JSON.
2258
       * @returns JSON object
2259
       */
2260
      public toJSON(): {[k: string]: any};
2261

2262
      /**
2263
       * Gets the default type url for Optional
2264
       * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2265
       * @returns The default type url
2266
       */
2267
      public static getTypeUrl(typeUrlPrefix?: string): string;
2268
    }
2269

2270
    /** Properties of a SparseTensor. */
2271
    interface ISparseTensor {
2272
      /** SparseTensor elemType */
2273
      elemType?: (number|null);
2274

2275
      /** SparseTensor shape */
2276
      shape?: (onnx.ITensorShapeProto|null);
2277
    }
2278

2279
    /** Represents a SparseTensor. */
2280
    class SparseTensor implements ISparseTensor {
2281
      /**
2282
       * Constructs a new SparseTensor.
2283
       * @param [properties] Properties to set
2284
       */
2285
      constructor(properties?: onnx.TypeProto.ISparseTensor);
2286

2287
      /** SparseTensor elemType. */
2288
      public elemType: number;
2289

2290
      /** SparseTensor shape. */
2291
      public shape?: (onnx.ITensorShapeProto|null);
2292

2293
      /**
2294
       * Creates a new SparseTensor instance using the specified properties.
2295
       * @param [properties] Properties to set
2296
       * @returns SparseTensor instance
2297
       */
2298
      public static create(properties?: onnx.TypeProto.ISparseTensor): onnx.TypeProto.SparseTensor;
2299

2300
      /**
2301
       * Encodes the specified SparseTensor message. Does not implicitly {@link
2302
       * onnx.TypeProto.SparseTensor.verify|verify} messages.
2303
       * @param message SparseTensor message or plain object to encode
2304
       * @param [writer] Writer to encode to
2305
       * @returns Writer
2306
       */
2307
      public static encode(message: onnx.TypeProto.ISparseTensor, writer?: $protobuf.Writer): $protobuf.Writer;
2308

2309
      /**
2310
       * Encodes the specified SparseTensor message, length delimited. Does not implicitly {@link
2311
       * onnx.TypeProto.SparseTensor.verify|verify} messages.
2312
       * @param message SparseTensor message or plain object to encode
2313
       * @param [writer] Writer to encode to
2314
       * @returns Writer
2315
       */
2316
      public static encodeDelimited(message: onnx.TypeProto.ISparseTensor, writer?: $protobuf.Writer): $protobuf.Writer;
2317

2318
      /**
2319
       * Decodes a SparseTensor message from the specified reader or buffer.
2320
       * @param reader Reader or buffer to decode from
2321
       * @param [length] Message length if known beforehand
2322
       * @returns SparseTensor
2323
       * @throws {Error} If the payload is not a reader or valid buffer
2324
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2325
       */
2326
      public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.TypeProto.SparseTensor;
2327

2328
      /**
2329
       * Decodes a SparseTensor message from the specified reader or buffer, length delimited.
2330
       * @param reader Reader or buffer to decode from
2331
       * @returns SparseTensor
2332
       * @throws {Error} If the payload is not a reader or valid buffer
2333
       * @throws {$protobuf.util.ProtocolError} If required fields are missing
2334
       */
2335
      public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.TypeProto.SparseTensor;
2336

2337
      /**
2338
       * Verifies a SparseTensor message.
2339
       * @param message Plain object to verify
2340
       * @returns `null` if valid, otherwise the reason why it is not
2341
       */
2342
      public static verify(message: {[k: string]: any}): (string|null);
2343

2344
      /**
2345
       * Creates a SparseTensor message from a plain object. Also converts values to their respective internal types.
2346
       * @param object Plain object
2347
       * @returns SparseTensor
2348
       */
2349
      public static fromObject(object: {[k: string]: any}): onnx.TypeProto.SparseTensor;
2350

2351
      /**
2352
       * Creates a plain object from a SparseTensor message. Also converts values to other types if specified.
2353
       * @param message SparseTensor
2354
       * @param [options] Conversion options
2355
       * @returns Plain object
2356
       */
2357
      public static toObject(message: onnx.TypeProto.SparseTensor, options?: $protobuf.IConversionOptions):
2358
          {[k: string]: any};
2359

2360
      /**
2361
       * Converts this SparseTensor to JSON.
2362
       * @returns JSON object
2363
       */
2364
      public toJSON(): {[k: string]: any};
2365

2366
      /**
2367
       * Gets the default type url for SparseTensor
2368
       * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2369
       * @returns The default type url
2370
       */
2371
      public static getTypeUrl(typeUrlPrefix?: string): string;
2372
    }
2373
  }
2374

2375
  /** Properties of an OperatorSetIdProto. */
2376
  interface IOperatorSetIdProto {
2377
    /** OperatorSetIdProto domain */
2378
    domain?: (string|null);
2379

2380
    /** OperatorSetIdProto version */
2381
    version?: (number|Long|null);
2382
  }
2383

2384
  /** Represents an OperatorSetIdProto. */
2385
  class OperatorSetIdProto implements IOperatorSetIdProto {
2386
    /**
2387
     * Constructs a new OperatorSetIdProto.
2388
     * @param [properties] Properties to set
2389
     */
2390
    constructor(properties?: onnx.IOperatorSetIdProto);
2391

2392
    /** OperatorSetIdProto domain. */
2393
    public domain: string;
2394

2395
    /** OperatorSetIdProto version. */
2396
    public version: (number|Long);
2397

2398
    /**
2399
     * Creates a new OperatorSetIdProto instance using the specified properties.
2400
     * @param [properties] Properties to set
2401
     * @returns OperatorSetIdProto instance
2402
     */
2403
    public static create(properties?: onnx.IOperatorSetIdProto): onnx.OperatorSetIdProto;
2404

2405
    /**
2406
     * Encodes the specified OperatorSetIdProto message. Does not implicitly {@link
2407
     * onnx.OperatorSetIdProto.verify|verify} messages.
2408
     * @param message OperatorSetIdProto message or plain object to encode
2409
     * @param [writer] Writer to encode to
2410
     * @returns Writer
2411
     */
2412
    public static encode(message: onnx.IOperatorSetIdProto, writer?: $protobuf.Writer): $protobuf.Writer;
2413

2414
    /**
2415
     * Encodes the specified OperatorSetIdProto message, length delimited. Does not implicitly {@link
2416
     * onnx.OperatorSetIdProto.verify|verify} messages.
2417
     * @param message OperatorSetIdProto message or plain object to encode
2418
     * @param [writer] Writer to encode to
2419
     * @returns Writer
2420
     */
2421
    public static encodeDelimited(message: onnx.IOperatorSetIdProto, writer?: $protobuf.Writer): $protobuf.Writer;
2422

2423
    /**
2424
     * Decodes an OperatorSetIdProto message from the specified reader or buffer.
2425
     * @param reader Reader or buffer to decode from
2426
     * @param [length] Message length if known beforehand
2427
     * @returns OperatorSetIdProto
2428
     * @throws {Error} If the payload is not a reader or valid buffer
2429
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
2430
     */
2431
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.OperatorSetIdProto;
2432

2433
    /**
2434
     * Decodes an OperatorSetIdProto message from the specified reader or buffer, length delimited.
2435
     * @param reader Reader or buffer to decode from
2436
     * @returns OperatorSetIdProto
2437
     * @throws {Error} If the payload is not a reader or valid buffer
2438
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
2439
     */
2440
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.OperatorSetIdProto;
2441

2442
    /**
2443
     * Verifies an OperatorSetIdProto message.
2444
     * @param message Plain object to verify
2445
     * @returns `null` if valid, otherwise the reason why it is not
2446
     */
2447
    public static verify(message: {[k: string]: any}): (string|null);
2448

2449
    /**
2450
     * Creates an OperatorSetIdProto message from a plain object. Also converts values to their respective internal
2451
     * types.
2452
     * @param object Plain object
2453
     * @returns OperatorSetIdProto
2454
     */
2455
    public static fromObject(object: {[k: string]: any}): onnx.OperatorSetIdProto;
2456

2457
    /**
2458
     * Creates a plain object from an OperatorSetIdProto message. Also converts values to other types if specified.
2459
     * @param message OperatorSetIdProto
2460
     * @param [options] Conversion options
2461
     * @returns Plain object
2462
     */
2463
    public static toObject(message: onnx.OperatorSetIdProto, options?: $protobuf.IConversionOptions):
2464
        {[k: string]: any};
2465

2466
    /**
2467
     * Converts this OperatorSetIdProto to JSON.
2468
     * @returns JSON object
2469
     */
2470
    public toJSON(): {[k: string]: any};
2471

2472
    /**
2473
     * Gets the default type url for OperatorSetIdProto
2474
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2475
     * @returns The default type url
2476
     */
2477
    public static getTypeUrl(typeUrlPrefix?: string): string;
2478
  }
2479

2480
  /** OperatorStatus enum. */
2481
  enum OperatorStatus { EXPERIMENTAL = 0, STABLE = 1 }
2482

2483
  /** Properties of a FunctionProto. */
2484
  interface IFunctionProto {
2485
    /** FunctionProto name */
2486
    name?: (string|null);
2487

2488
    /** FunctionProto input */
2489
    input?: (string[]|null);
2490

2491
    /** FunctionProto output */
2492
    output?: (string[]|null);
2493

2494
    /** FunctionProto attribute */
2495
    attribute?: (string[]|null);
2496

2497
    /** FunctionProto attributeProto */
2498
    attributeProto?: (onnx.IAttributeProto[]|null);
2499

2500
    /** FunctionProto node */
2501
    node?: (onnx.INodeProto[]|null);
2502

2503
    /** FunctionProto docString */
2504
    docString?: (string|null);
2505

2506
    /** FunctionProto opsetImport */
2507
    opsetImport?: (onnx.IOperatorSetIdProto[]|null);
2508

2509
    /** FunctionProto domain */
2510
    domain?: (string|null);
2511
  }
2512

2513
  /** Represents a FunctionProto. */
2514
  class FunctionProto implements IFunctionProto {
2515
    /**
2516
     * Constructs a new FunctionProto.
2517
     * @param [properties] Properties to set
2518
     */
2519
    constructor(properties?: onnx.IFunctionProto);
2520

2521
    /** FunctionProto name. */
2522
    public name: string;
2523

2524
    /** FunctionProto input. */
2525
    public input: string[];
2526

2527
    /** FunctionProto output. */
2528
    public output: string[];
2529

2530
    /** FunctionProto attribute. */
2531
    public attribute: string[];
2532

2533
    /** FunctionProto attributeProto. */
2534
    public attributeProto: onnx.IAttributeProto[];
2535

2536
    /** FunctionProto node. */
2537
    public node: onnx.INodeProto[];
2538

2539
    /** FunctionProto docString. */
2540
    public docString: string;
2541

2542
    /** FunctionProto opsetImport. */
2543
    public opsetImport: onnx.IOperatorSetIdProto[];
2544

2545
    /** FunctionProto domain. */
2546
    public domain: string;
2547

2548
    /**
2549
     * Creates a new FunctionProto instance using the specified properties.
2550
     * @param [properties] Properties to set
2551
     * @returns FunctionProto instance
2552
     */
2553
    public static create(properties?: onnx.IFunctionProto): onnx.FunctionProto;
2554

2555
    /**
2556
     * Encodes the specified FunctionProto message. Does not implicitly {@link onnx.FunctionProto.verify|verify}
2557
     * messages.
2558
     * @param message FunctionProto message or plain object to encode
2559
     * @param [writer] Writer to encode to
2560
     * @returns Writer
2561
     */
2562
    public static encode(message: onnx.IFunctionProto, writer?: $protobuf.Writer): $protobuf.Writer;
2563

2564
    /**
2565
     * Encodes the specified FunctionProto message, length delimited. Does not implicitly {@link
2566
     * onnx.FunctionProto.verify|verify} messages.
2567
     * @param message FunctionProto message or plain object to encode
2568
     * @param [writer] Writer to encode to
2569
     * @returns Writer
2570
     */
2571
    public static encodeDelimited(message: onnx.IFunctionProto, writer?: $protobuf.Writer): $protobuf.Writer;
2572

2573
    /**
2574
     * Decodes a FunctionProto message from the specified reader or buffer.
2575
     * @param reader Reader or buffer to decode from
2576
     * @param [length] Message length if known beforehand
2577
     * @returns FunctionProto
2578
     * @throws {Error} If the payload is not a reader or valid buffer
2579
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
2580
     */
2581
    public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): onnx.FunctionProto;
2582

2583
    /**
2584
     * Decodes a FunctionProto message from the specified reader or buffer, length delimited.
2585
     * @param reader Reader or buffer to decode from
2586
     * @returns FunctionProto
2587
     * @throws {Error} If the payload is not a reader or valid buffer
2588
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
2589
     */
2590
    public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): onnx.FunctionProto;
2591

2592
    /**
2593
     * Verifies a FunctionProto message.
2594
     * @param message Plain object to verify
2595
     * @returns `null` if valid, otherwise the reason why it is not
2596
     */
2597
    public static verify(message: {[k: string]: any}): (string|null);
2598

2599
    /**
2600
     * Creates a FunctionProto message from a plain object. Also converts values to their respective internal types.
2601
     * @param object Plain object
2602
     * @returns FunctionProto
2603
     */
2604
    public static fromObject(object: {[k: string]: any}): onnx.FunctionProto;
2605

2606
    /**
2607
     * Creates a plain object from a FunctionProto message. Also converts values to other types if specified.
2608
     * @param message FunctionProto
2609
     * @param [options] Conversion options
2610
     * @returns Plain object
2611
     */
2612
    public static toObject(message: onnx.FunctionProto, options?: $protobuf.IConversionOptions): {[k: string]: any};
2613

2614
    /**
2615
     * Converts this FunctionProto to JSON.
2616
     * @returns JSON object
2617
     */
2618
    public toJSON(): {[k: string]: any};
2619

2620
    /**
2621
     * Gets the default type url for FunctionProto
2622
     * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2623
     * @returns The default type url
2624
     */
2625
    public static getTypeUrl(typeUrlPrefix?: string): string;
2626
  }
2627
}
2628

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.