TT-MLIR
program_generated.h
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 
4 #ifndef FLATBUFFERS_GENERATED_PROGRAM_TT_TARGET_TTNN_H_
5 #define FLATBUFFERS_GENERATED_PROGRAM_TT_TARGET_TTNN_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 // Ensure the included flatbuffers.h is the same version as when this file was
10 // generated, otherwise it may not be compatible.
11 static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
12  FLATBUFFERS_VERSION_MINOR == 3 &&
13  FLATBUFFERS_VERSION_REVISION == 25,
14  "Non-compatible flatbuffers version included");
15 
16 #include "debug_info_generated.h"
17 #include "types_generated.h"
18 
19 namespace tt {
20 namespace target {
21 namespace ttnn {
22 
23 struct GetDeviceOp;
24 struct GetDeviceOpBuilder;
25 
26 struct ToMemoryConfigOp;
27 struct ToMemoryConfigOpBuilder;
28 
29 struct ToLayoutOp;
30 struct ToLayoutOpBuilder;
31 
32 struct TypecastOp;
33 struct TypecastOpBuilder;
34 
35 struct ToDeviceOp;
36 struct ToDeviceOpBuilder;
37 
38 struct UpdateCacheOp;
39 struct UpdateCacheOpBuilder;
40 
41 struct FillCacheOp;
42 struct FillCacheOpBuilder;
43 
44 struct FromDeviceOp;
45 struct FromDeviceOpBuilder;
46 
47 struct EmptyOp;
48 struct EmptyOpBuilder;
49 
50 struct OnesOp;
51 struct OnesOpBuilder;
52 
53 struct FullOp;
54 struct FullOpBuilder;
55 
56 struct ArangeOp;
57 struct ArangeOpBuilder;
58 
59 struct ClampOpParams;
60 struct ClampOpParamsBuilder;
61 
63 struct EltwiseOpWithFloatParamsBuilder;
64 
65 struct EltwiseOp;
66 struct EltwiseOpBuilder;
67 
68 struct ReductionOp;
69 struct ReductionOpBuilder;
70 
71 struct EmbeddingOp;
72 struct EmbeddingOpBuilder;
73 
74 struct EmbeddingBackwardOp;
75 struct EmbeddingBackwardOpBuilder;
76 
77 struct SoftmaxOp;
78 struct SoftmaxOpBuilder;
79 
80 struct TransposeOp;
81 struct TransposeOpBuilder;
82 
83 struct ConcatOp;
84 struct ConcatOpBuilder;
85 
86 struct ReshapeOp;
87 struct ReshapeOpBuilder;
88 
89 struct RepeatOp;
90 struct RepeatOpBuilder;
91 
92 struct SliceOp;
93 struct SliceOpBuilder;
94 
95 struct LinearOp;
96 struct LinearOpBuilder;
97 
98 struct MatmulOp;
99 struct MatmulOpBuilder;
100 
101 struct Conv2dOp;
102 struct Conv2dOpBuilder;
103 
104 struct ConvTranspose2dOp;
105 struct ConvTranspose2dOpBuilder;
106 
107 struct MaxPool2dOp;
108 struct MaxPool2dOpBuilder;
109 
110 struct DeallocateOp;
111 struct DeallocateOpBuilder;
112 
113 struct AllGatherOp;
114 struct AllGatherOpBuilder;
115 
116 struct PermuteOp;
117 struct PermuteOpBuilder;
118 
119 struct ReduceScatterOp;
120 struct ReduceScatterOpBuilder;
121 
122 struct MeshShardOp;
123 struct MeshShardOpBuilder;
124 
125 struct Operation;
126 struct OperationBuilder;
127 
128 struct Program;
129 struct ProgramBuilder;
130 
131 enum class EltwiseOpType : uint32_t {
132  Add = 0,
133  Multiply = 1,
134  Subtract = 2,
135  Relu = 3,
136  GreaterEqual = 4,
137  Sqrt = 5,
138  Div = 6,
139  Sigmoid = 7,
140  Reciprocal = 8,
141  Exp = 9,
142  Maximum = 10,
143  Abs = 11,
144  Neg = 12,
145  Rsqrt = 13,
146  Typecast = 14,
147  Equal = 15,
148  NotEqual = 16,
149  LessEqual = 17,
150  LessThan = 18,
151  GreaterThan = 19,
152  LogicalAnd = 20,
153  LogicalOr = 21,
154  LogicalXor = 22,
155  LogicalNot = 23,
156  BitwiseAnd = 24,
157  BitwiseOr = 25,
158  BitwiseXor = 26,
159  BitwiseNot = 27,
160  Cbrt = 28,
161  Minimum = 29,
162  Ceil = 30,
163  Sin = 31,
164  Cos = 32,
165  Log = 33,
166  Log1p = 34,
167  Expm1 = 35,
168  Sign = 36,
169  Remainder = 37,
170  IsFinite = 38,
171  Floor = 39,
172  Where = 40,
173  Gelu = 41,
174  Clamp = 42,
175  LeakyRelu = 43,
176  Scatter = 44,
177  Tan = 45,
178  Tanh = 46,
179  MIN = Add,
180  MAX = Tanh
181 };
182 
183 inline const EltwiseOpType (&EnumValuesEltwiseOpType())[47] {
184  static const EltwiseOpType values[] = {
232  };
233  return values;
234 }
235 
236 inline const char * const *EnumNamesEltwiseOpType() {
237  static const char * const names[48] = {
238  "Add",
239  "Multiply",
240  "Subtract",
241  "Relu",
242  "GreaterEqual",
243  "Sqrt",
244  "Div",
245  "Sigmoid",
246  "Reciprocal",
247  "Exp",
248  "Maximum",
249  "Abs",
250  "Neg",
251  "Rsqrt",
252  "Typecast",
253  "Equal",
254  "NotEqual",
255  "LessEqual",
256  "LessThan",
257  "GreaterThan",
258  "LogicalAnd",
259  "LogicalOr",
260  "LogicalXor",
261  "LogicalNot",
262  "BitwiseAnd",
263  "BitwiseOr",
264  "BitwiseXor",
265  "BitwiseNot",
266  "Cbrt",
267  "Minimum",
268  "Ceil",
269  "Sin",
270  "Cos",
271  "Log",
272  "Log1p",
273  "Expm1",
274  "Sign",
275  "Remainder",
276  "IsFinite",
277  "Floor",
278  "Where",
279  "Gelu",
280  "Clamp",
281  "LeakyRelu",
282  "Scatter",
283  "Tan",
284  "Tanh",
285  nullptr
286  };
287  return names;
288 }
289 
290 inline const char *EnumNameEltwiseOpType(EltwiseOpType e) {
291  if (::flatbuffers::IsOutRange(e, EltwiseOpType::Add, EltwiseOpType::Tanh)) return "";
292  const size_t index = static_cast<size_t>(e);
293  return EnumNamesEltwiseOpType()[index];
294 }
295 
296 enum class EltwiseOpParams : uint8_t {
297  NONE = 0,
298  ClampOpParams = 1,
300  MIN = NONE,
302 };
303 
305  static const EltwiseOpParams values[] = {
309  };
310  return values;
311 }
312 
313 inline const char * const *EnumNamesEltwiseOpParams() {
314  static const char * const names[4] = {
315  "NONE",
316  "ClampOpParams",
317  "EltwiseOpWithFloatParams",
318  nullptr
319  };
320  return names;
321 }
322 
324  if (::flatbuffers::IsOutRange(e, EltwiseOpParams::NONE, EltwiseOpParams::EltwiseOpWithFloatParams)) return "";
325  const size_t index = static_cast<size_t>(e);
326  return EnumNamesEltwiseOpParams()[index];
327 }
328 
329 template<typename T> struct EltwiseOpParamsTraits {
331 };
332 
333 template<> struct EltwiseOpParamsTraits<tt::target::ttnn::ClampOpParams> {
335 };
336 
337 template<> struct EltwiseOpParamsTraits<tt::target::ttnn::EltwiseOpWithFloatParams> {
339 };
340 
341 bool VerifyEltwiseOpParams(::flatbuffers::Verifier &verifier, const void *obj, EltwiseOpParams type);
342 bool VerifyEltwiseOpParamsVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<EltwiseOpParams> *types);
343 
344 enum class ReductionOpType : uint32_t {
345  Sum = 0,
346  Mean = 1,
347  Max = 2,
348  MIN = Sum,
349  MAX = Max
350 };
351 
353  static const ReductionOpType values[] = {
357  };
358  return values;
359 }
360 
361 inline const char * const *EnumNamesReductionOpType() {
362  static const char * const names[4] = {
363  "Sum",
364  "Mean",
365  "Max",
366  nullptr
367  };
368  return names;
369 }
370 
372  if (::flatbuffers::IsOutRange(e, ReductionOpType::Sum, ReductionOpType::Max)) return "";
373  const size_t index = static_cast<size_t>(e);
374  return EnumNamesReductionOpType()[index];
375 }
376 
377 enum class OpType : uint8_t {
378  NONE = 0,
379  GetDeviceOp = 1,
380  ToMemoryConfigOp = 2,
381  ToLayoutOp = 3,
382  TypecastOp = 4,
383  ToDeviceOp = 5,
384  FromDeviceOp = 6,
385  EmptyOp = 7,
386  OnesOp = 8,
387  FullOp = 9,
388  EltwiseOp = 10,
389  LinearOp = 11,
390  MatmulOp = 12,
391  ReductionOp = 13,
392  EmbeddingOp = 14,
393  EmbeddingBackwardOp = 15,
394  SoftmaxOp = 16,
395  TransposeOp = 17,
396  Conv2dOp = 18,
397  ConvTranspose2dOp = 19,
398  ConcatOp = 20,
399  ReshapeOp = 21,
400  SliceOp = 22,
401  MaxPool2dOp = 23,
402  DeallocateOp = 24,
403  AllGatherOp = 25,
404  ReduceScatterOp = 26,
405  MeshShardOp = 27,
406  ArangeOp = 28,
407  UpdateCacheOp = 29,
408  FillCacheOp = 30,
409  PermuteOp = 31,
410  RepeatOp = 32,
411  MIN = NONE,
412  MAX = RepeatOp
413 };
414 
415 inline const OpType (&EnumValuesOpType())[33] {
416  static const OpType values[] = {
417  OpType::NONE,
450  };
451  return values;
452 }
453 
454 inline const char * const *EnumNamesOpType() {
455  static const char * const names[34] = {
456  "NONE",
457  "GetDeviceOp",
458  "ToMemoryConfigOp",
459  "ToLayoutOp",
460  "TypecastOp",
461  "ToDeviceOp",
462  "FromDeviceOp",
463  "EmptyOp",
464  "OnesOp",
465  "FullOp",
466  "EltwiseOp",
467  "LinearOp",
468  "MatmulOp",
469  "ReductionOp",
470  "EmbeddingOp",
471  "EmbeddingBackwardOp",
472  "SoftmaxOp",
473  "TransposeOp",
474  "Conv2dOp",
475  "ConvTranspose2dOp",
476  "ConcatOp",
477  "ReshapeOp",
478  "SliceOp",
479  "MaxPool2dOp",
480  "DeallocateOp",
481  "AllGatherOp",
482  "ReduceScatterOp",
483  "MeshShardOp",
484  "ArangeOp",
485  "UpdateCacheOp",
486  "FillCacheOp",
487  "PermuteOp",
488  "RepeatOp",
489  nullptr
490  };
491  return names;
492 }
493 
494 inline const char *EnumNameOpType(OpType e) {
495  if (::flatbuffers::IsOutRange(e, OpType::NONE, OpType::RepeatOp)) return "";
496  const size_t index = static_cast<size_t>(e);
497  return EnumNamesOpType()[index];
498 }
499 
500 template<typename T> struct OpTypeTraits {
502 };
503 
504 template<> struct OpTypeTraits<tt::target::ttnn::GetDeviceOp> {
506 };
507 
508 template<> struct OpTypeTraits<tt::target::ttnn::ToMemoryConfigOp> {
510 };
511 
512 template<> struct OpTypeTraits<tt::target::ttnn::ToLayoutOp> {
514 };
515 
516 template<> struct OpTypeTraits<tt::target::ttnn::TypecastOp> {
518 };
519 
520 template<> struct OpTypeTraits<tt::target::ttnn::ToDeviceOp> {
522 };
523 
524 template<> struct OpTypeTraits<tt::target::ttnn::FromDeviceOp> {
526 };
527 
528 template<> struct OpTypeTraits<tt::target::ttnn::EmptyOp> {
530 };
531 
532 template<> struct OpTypeTraits<tt::target::ttnn::OnesOp> {
534 };
535 
536 template<> struct OpTypeTraits<tt::target::ttnn::FullOp> {
538 };
539 
540 template<> struct OpTypeTraits<tt::target::ttnn::EltwiseOp> {
542 };
543 
544 template<> struct OpTypeTraits<tt::target::ttnn::LinearOp> {
546 };
547 
548 template<> struct OpTypeTraits<tt::target::ttnn::MatmulOp> {
550 };
551 
552 template<> struct OpTypeTraits<tt::target::ttnn::ReductionOp> {
554 };
555 
556 template<> struct OpTypeTraits<tt::target::ttnn::EmbeddingOp> {
558 };
559 
560 template<> struct OpTypeTraits<tt::target::ttnn::EmbeddingBackwardOp> {
562 };
563 
564 template<> struct OpTypeTraits<tt::target::ttnn::SoftmaxOp> {
566 };
567 
568 template<> struct OpTypeTraits<tt::target::ttnn::TransposeOp> {
570 };
571 
572 template<> struct OpTypeTraits<tt::target::ttnn::Conv2dOp> {
574 };
575 
576 template<> struct OpTypeTraits<tt::target::ttnn::ConvTranspose2dOp> {
578 };
579 
580 template<> struct OpTypeTraits<tt::target::ttnn::ConcatOp> {
582 };
583 
584 template<> struct OpTypeTraits<tt::target::ttnn::ReshapeOp> {
586 };
587 
588 template<> struct OpTypeTraits<tt::target::ttnn::SliceOp> {
590 };
591 
592 template<> struct OpTypeTraits<tt::target::ttnn::MaxPool2dOp> {
594 };
595 
596 template<> struct OpTypeTraits<tt::target::ttnn::DeallocateOp> {
598 };
599 
600 template<> struct OpTypeTraits<tt::target::ttnn::AllGatherOp> {
602 };
603 
604 template<> struct OpTypeTraits<tt::target::ttnn::ReduceScatterOp> {
606 };
607 
608 template<> struct OpTypeTraits<tt::target::ttnn::MeshShardOp> {
610 };
611 
612 template<> struct OpTypeTraits<tt::target::ttnn::ArangeOp> {
614 };
615 
616 template<> struct OpTypeTraits<tt::target::ttnn::UpdateCacheOp> {
618 };
619 
620 template<> struct OpTypeTraits<tt::target::ttnn::FillCacheOp> {
622 };
623 
624 template<> struct OpTypeTraits<tt::target::ttnn::PermuteOp> {
626 };
627 
628 template<> struct OpTypeTraits<tt::target::ttnn::RepeatOp> {
630 };
631 
632 bool VerifyOpType(::flatbuffers::Verifier &verifier, const void *obj, OpType type);
633 bool VerifyOpTypeVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<OpType> *types);
634 
635 struct GetDeviceOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
637  struct Traits;
638  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
639  VT_MESH = 4,
641  VT_OUT = 8
642  };
643  const tt::target::Dim2d *mesh() const {
644  return GetStruct<const tt::target::Dim2d *>(VT_MESH);
645  }
646  const ::flatbuffers::Vector<uint32_t> *chip_ids() const {
647  return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_CHIP_IDS);
648  }
649  const tt::target::DeviceRef *out() const {
650  return GetPointer<const tt::target::DeviceRef *>(VT_OUT);
651  }
652  bool Verify(::flatbuffers::Verifier &verifier) const {
653  return VerifyTableStart(verifier) &&
654  VerifyField<tt::target::Dim2d>(verifier, VT_MESH, 4) &&
655  VerifyOffset(verifier, VT_CHIP_IDS) &&
656  verifier.VerifyVector(chip_ids()) &&
657  VerifyOffset(verifier, VT_OUT) &&
658  verifier.VerifyTable(out()) &&
659  verifier.EndTable();
660  }
661 };
662 
665  ::flatbuffers::FlatBufferBuilder &fbb_;
666  ::flatbuffers::uoffset_t start_;
667  void add_mesh(const tt::target::Dim2d *mesh) {
668  fbb_.AddStruct(GetDeviceOp::VT_MESH, mesh);
669  }
670  void add_chip_ids(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> chip_ids) {
671  fbb_.AddOffset(GetDeviceOp::VT_CHIP_IDS, chip_ids);
672  }
673  void add_out(::flatbuffers::Offset<tt::target::DeviceRef> out) {
674  fbb_.AddOffset(GetDeviceOp::VT_OUT, out);
675  }
676  explicit GetDeviceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
677  : fbb_(_fbb) {
678  start_ = fbb_.StartTable();
679  }
680  ::flatbuffers::Offset<GetDeviceOp> Finish() {
681  const auto end = fbb_.EndTable(start_);
682  auto o = ::flatbuffers::Offset<GetDeviceOp>(end);
683  return o;
684  }
685 };
686 
687 inline ::flatbuffers::Offset<GetDeviceOp> CreateGetDeviceOp(
688  ::flatbuffers::FlatBufferBuilder &_fbb,
689  const tt::target::Dim2d *mesh = nullptr,
690  ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> chip_ids = 0,
691  ::flatbuffers::Offset<tt::target::DeviceRef> out = 0) {
692  GetDeviceOpBuilder builder_(_fbb);
693  builder_.add_out(out);
694  builder_.add_chip_ids(chip_ids);
695  builder_.add_mesh(mesh);
696  return builder_.Finish();
697 }
698 
700  using type = GetDeviceOp;
701  static auto constexpr Create = CreateGetDeviceOp;
702 };
703 
704 inline ::flatbuffers::Offset<GetDeviceOp> CreateGetDeviceOpDirect(
705  ::flatbuffers::FlatBufferBuilder &_fbb,
706  const tt::target::Dim2d *mesh = nullptr,
707  const std::vector<uint32_t> *chip_ids = nullptr,
708  ::flatbuffers::Offset<tt::target::DeviceRef> out = 0) {
709  auto chip_ids__ = chip_ids ? _fbb.CreateVector<uint32_t>(*chip_ids) : 0;
711  _fbb,
712  mesh,
713  chip_ids__,
714  out);
715 }
716 
717 struct ToMemoryConfigOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
719  struct Traits;
720  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
721  VT_IN0 = 4,
723  VT_OUT = 8
724  };
725  const tt::target::TensorRef *in0() const {
726  return GetPointer<const tt::target::TensorRef *>(VT_IN0);
727  }
728  const tt::target::MemoryConfigDesc *memcfg() const {
729  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMCFG);
730  }
731  const tt::target::TensorRef *out() const {
732  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
733  }
734  bool Verify(::flatbuffers::Verifier &verifier) const {
735  return VerifyTableStart(verifier) &&
736  VerifyOffset(verifier, VT_IN0) &&
737  verifier.VerifyTable(in0()) &&
738  VerifyOffset(verifier, VT_MEMCFG) &&
739  verifier.VerifyTable(memcfg()) &&
740  VerifyOffset(verifier, VT_OUT) &&
741  verifier.VerifyTable(out()) &&
742  verifier.EndTable();
743  }
744 };
745 
748  ::flatbuffers::FlatBufferBuilder &fbb_;
749  ::flatbuffers::uoffset_t start_;
750  void add_in0(::flatbuffers::Offset<tt::target::TensorRef> in0) {
751  fbb_.AddOffset(ToMemoryConfigOp::VT_IN0, in0);
752  }
753  void add_memcfg(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg) {
754  fbb_.AddOffset(ToMemoryConfigOp::VT_MEMCFG, memcfg);
755  }
756  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
757  fbb_.AddOffset(ToMemoryConfigOp::VT_OUT, out);
758  }
759  explicit ToMemoryConfigOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
760  : fbb_(_fbb) {
761  start_ = fbb_.StartTable();
762  }
763  ::flatbuffers::Offset<ToMemoryConfigOp> Finish() {
764  const auto end = fbb_.EndTable(start_);
765  auto o = ::flatbuffers::Offset<ToMemoryConfigOp>(end);
766  return o;
767  }
768 };
769 
770 inline ::flatbuffers::Offset<ToMemoryConfigOp> CreateToMemoryConfigOp(
771  ::flatbuffers::FlatBufferBuilder &_fbb,
772  ::flatbuffers::Offset<tt::target::TensorRef> in0 = 0,
773  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
774  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
775  ToMemoryConfigOpBuilder builder_(_fbb);
776  builder_.add_out(out);
777  builder_.add_memcfg(memcfg);
778  builder_.add_in0(in0);
779  return builder_.Finish();
780 }
781 
784  static auto constexpr Create = CreateToMemoryConfigOp;
785 };
786 
787 struct ToLayoutOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
789  struct Traits;
790  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
791  VT_IN = 4,
793  VT_DTYPE = 8,
794  VT_MEMCFG = 10,
795  VT_DEVICE = 12,
796  VT_OUT = 14
797  };
798  const tt::target::TensorRef *in() const {
799  return GetPointer<const tt::target::TensorRef *>(VT_IN);
800  }
802  return static_cast<tt::target::TensorLayout>(GetField<uint16_t>(VT_LAYOUT, 0));
803  }
804  ::flatbuffers::Optional<tt::target::DataType> dtype() const {
805  return GetOptional<uint16_t, tt::target::DataType>(VT_DTYPE);
806  }
807  const tt::target::MemoryConfigDesc *memcfg() const {
808  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMCFG);
809  }
810  const tt::target::DeviceRef *device() const {
811  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
812  }
813  const tt::target::TensorRef *out() const {
814  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
815  }
816  bool Verify(::flatbuffers::Verifier &verifier) const {
817  return VerifyTableStart(verifier) &&
818  VerifyOffset(verifier, VT_IN) &&
819  verifier.VerifyTable(in()) &&
820  VerifyField<uint16_t>(verifier, VT_LAYOUT, 2) &&
821  VerifyField<uint16_t>(verifier, VT_DTYPE, 2) &&
822  VerifyOffset(verifier, VT_MEMCFG) &&
823  verifier.VerifyTable(memcfg()) &&
824  VerifyOffset(verifier, VT_DEVICE) &&
825  verifier.VerifyTable(device()) &&
826  VerifyOffset(verifier, VT_OUT) &&
827  verifier.VerifyTable(out()) &&
828  verifier.EndTable();
829  }
830 };
831 
833  typedef ToLayoutOp Table;
834  ::flatbuffers::FlatBufferBuilder &fbb_;
835  ::flatbuffers::uoffset_t start_;
836  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
837  fbb_.AddOffset(ToLayoutOp::VT_IN, in);
838  }
840  fbb_.AddElement<uint16_t>(ToLayoutOp::VT_LAYOUT, static_cast<uint16_t>(layout), 0);
841  }
843  fbb_.AddElement<uint16_t>(ToLayoutOp::VT_DTYPE, static_cast<uint16_t>(dtype));
844  }
845  void add_memcfg(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg) {
846  fbb_.AddOffset(ToLayoutOp::VT_MEMCFG, memcfg);
847  }
848  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
849  fbb_.AddOffset(ToLayoutOp::VT_DEVICE, device);
850  }
851  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
852  fbb_.AddOffset(ToLayoutOp::VT_OUT, out);
853  }
854  explicit ToLayoutOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
855  : fbb_(_fbb) {
856  start_ = fbb_.StartTable();
857  }
858  ::flatbuffers::Offset<ToLayoutOp> Finish() {
859  const auto end = fbb_.EndTable(start_);
860  auto o = ::flatbuffers::Offset<ToLayoutOp>(end);
861  return o;
862  }
863 };
864 
865 inline ::flatbuffers::Offset<ToLayoutOp> CreateToLayoutOp(
866  ::flatbuffers::FlatBufferBuilder &_fbb,
867  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
869  ::flatbuffers::Optional<tt::target::DataType> dtype = ::flatbuffers::nullopt,
870  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
871  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
872  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
873  ToLayoutOpBuilder builder_(_fbb);
874  builder_.add_out(out);
875  builder_.add_device(device);
876  builder_.add_memcfg(memcfg);
877  builder_.add_in(in);
878  if(dtype) { builder_.add_dtype(*dtype); }
879  builder_.add_layout(layout);
880  return builder_.Finish();
881 }
882 
884  using type = ToLayoutOp;
885  static auto constexpr Create = CreateToLayoutOp;
886 };
887 
888 struct TypecastOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
890  struct Traits;
891  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
892  VT_IN = 4,
893  VT_DTYPE = 6,
894  VT_OUT = 8
895  };
896  const tt::target::TensorRef *in() const {
897  return GetPointer<const tt::target::TensorRef *>(VT_IN);
898  }
900  return static_cast<tt::target::DataType>(GetField<uint16_t>(VT_DTYPE, 0));
901  }
902  const tt::target::TensorRef *out() const {
903  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
904  }
905  bool Verify(::flatbuffers::Verifier &verifier) const {
906  return VerifyTableStart(verifier) &&
907  VerifyOffset(verifier, VT_IN) &&
908  verifier.VerifyTable(in()) &&
909  VerifyField<uint16_t>(verifier, VT_DTYPE, 2) &&
910  VerifyOffset(verifier, VT_OUT) &&
911  verifier.VerifyTable(out()) &&
912  verifier.EndTable();
913  }
914 };
915 
917  typedef TypecastOp Table;
918  ::flatbuffers::FlatBufferBuilder &fbb_;
919  ::flatbuffers::uoffset_t start_;
920  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
921  fbb_.AddOffset(TypecastOp::VT_IN, in);
922  }
924  fbb_.AddElement<uint16_t>(TypecastOp::VT_DTYPE, static_cast<uint16_t>(dtype), 0);
925  }
926  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
927  fbb_.AddOffset(TypecastOp::VT_OUT, out);
928  }
929  explicit TypecastOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
930  : fbb_(_fbb) {
931  start_ = fbb_.StartTable();
932  }
933  ::flatbuffers::Offset<TypecastOp> Finish() {
934  const auto end = fbb_.EndTable(start_);
935  auto o = ::flatbuffers::Offset<TypecastOp>(end);
936  return o;
937  }
938 };
939 
940 inline ::flatbuffers::Offset<TypecastOp> CreateTypecastOp(
941  ::flatbuffers::FlatBufferBuilder &_fbb,
942  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
944  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
945  TypecastOpBuilder builder_(_fbb);
946  builder_.add_out(out);
947  builder_.add_in(in);
948  builder_.add_dtype(dtype);
949  return builder_.Finish();
950 }
951 
953  using type = TypecastOp;
954  static auto constexpr Create = CreateTypecastOp;
955 };
956 
957 struct ToDeviceOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
959  struct Traits;
960  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
961  VT_IN = 4,
962  VT_DEVICE = 6,
963  VT_MEMCFG = 8,
964  VT_OUT = 10
965  };
966  const tt::target::TensorRef *in() const {
967  return GetPointer<const tt::target::TensorRef *>(VT_IN);
968  }
969  const tt::target::DeviceRef *device() const {
970  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
971  }
972  const tt::target::MemoryConfigDesc *memcfg() const {
973  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMCFG);
974  }
975  const tt::target::TensorRef *out() const {
976  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
977  }
978  bool Verify(::flatbuffers::Verifier &verifier) const {
979  return VerifyTableStart(verifier) &&
980  VerifyOffset(verifier, VT_IN) &&
981  verifier.VerifyTable(in()) &&
982  VerifyOffset(verifier, VT_DEVICE) &&
983  verifier.VerifyTable(device()) &&
984  VerifyOffset(verifier, VT_MEMCFG) &&
985  verifier.VerifyTable(memcfg()) &&
986  VerifyOffset(verifier, VT_OUT) &&
987  verifier.VerifyTable(out()) &&
988  verifier.EndTable();
989  }
990 };
991 
993  typedef ToDeviceOp Table;
994  ::flatbuffers::FlatBufferBuilder &fbb_;
995  ::flatbuffers::uoffset_t start_;
996  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
997  fbb_.AddOffset(ToDeviceOp::VT_IN, in);
998  }
999  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
1000  fbb_.AddOffset(ToDeviceOp::VT_DEVICE, device);
1001  }
1002  void add_memcfg(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg) {
1003  fbb_.AddOffset(ToDeviceOp::VT_MEMCFG, memcfg);
1004  }
1005  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1006  fbb_.AddOffset(ToDeviceOp::VT_OUT, out);
1007  }
1008  explicit ToDeviceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1009  : fbb_(_fbb) {
1010  start_ = fbb_.StartTable();
1011  }
1012  ::flatbuffers::Offset<ToDeviceOp> Finish() {
1013  const auto end = fbb_.EndTable(start_);
1014  auto o = ::flatbuffers::Offset<ToDeviceOp>(end);
1015  return o;
1016  }
1017 };
1018 
1019 inline ::flatbuffers::Offset<ToDeviceOp> CreateToDeviceOp(
1020  ::flatbuffers::FlatBufferBuilder &_fbb,
1021  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
1022  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
1023  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
1024  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1025  ToDeviceOpBuilder builder_(_fbb);
1026  builder_.add_out(out);
1027  builder_.add_memcfg(memcfg);
1028  builder_.add_device(device);
1029  builder_.add_in(in);
1030  return builder_.Finish();
1031 }
1032 
1034  using type = ToDeviceOp;
1035  static auto constexpr Create = CreateToDeviceOp;
1036 };
1037 
1038 struct UpdateCacheOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1040  struct Traits;
1041  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1045  VT_BATCH_OFFSET = 10
1046  };
1047  const tt::target::TensorRef *cache() const {
1048  return GetPointer<const tt::target::TensorRef *>(VT_CACHE);
1049  }
1050  const tt::target::TensorRef *input() const {
1051  return GetPointer<const tt::target::TensorRef *>(VT_INPUT);
1052  }
1053  const tt::target::TensorRef *update_index() const {
1054  return GetPointer<const tt::target::TensorRef *>(VT_UPDATE_INDEX);
1055  }
1056  uint32_t batch_offset() const {
1057  return GetField<uint32_t>(VT_BATCH_OFFSET, 0);
1058  }
1059  bool Verify(::flatbuffers::Verifier &verifier) const {
1060  return VerifyTableStart(verifier) &&
1061  VerifyOffset(verifier, VT_CACHE) &&
1062  verifier.VerifyTable(cache()) &&
1063  VerifyOffset(verifier, VT_INPUT) &&
1064  verifier.VerifyTable(input()) &&
1065  VerifyOffset(verifier, VT_UPDATE_INDEX) &&
1066  verifier.VerifyTable(update_index()) &&
1067  VerifyField<uint32_t>(verifier, VT_BATCH_OFFSET, 4) &&
1068  verifier.EndTable();
1069  }
1070 };
1071 
1074  ::flatbuffers::FlatBufferBuilder &fbb_;
1075  ::flatbuffers::uoffset_t start_;
1076  void add_cache(::flatbuffers::Offset<tt::target::TensorRef> cache) {
1077  fbb_.AddOffset(UpdateCacheOp::VT_CACHE, cache);
1078  }
1079  void add_input(::flatbuffers::Offset<tt::target::TensorRef> input) {
1080  fbb_.AddOffset(UpdateCacheOp::VT_INPUT, input);
1081  }
1082  void add_update_index(::flatbuffers::Offset<tt::target::TensorRef> update_index) {
1083  fbb_.AddOffset(UpdateCacheOp::VT_UPDATE_INDEX, update_index);
1084  }
1085  void add_batch_offset(uint32_t batch_offset) {
1086  fbb_.AddElement<uint32_t>(UpdateCacheOp::VT_BATCH_OFFSET, batch_offset, 0);
1087  }
1088  explicit UpdateCacheOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1089  : fbb_(_fbb) {
1090  start_ = fbb_.StartTable();
1091  }
1092  ::flatbuffers::Offset<UpdateCacheOp> Finish() {
1093  const auto end = fbb_.EndTable(start_);
1094  auto o = ::flatbuffers::Offset<UpdateCacheOp>(end);
1095  return o;
1096  }
1097 };
1098 
1099 inline ::flatbuffers::Offset<UpdateCacheOp> CreateUpdateCacheOp(
1100  ::flatbuffers::FlatBufferBuilder &_fbb,
1101  ::flatbuffers::Offset<tt::target::TensorRef> cache = 0,
1102  ::flatbuffers::Offset<tt::target::TensorRef> input = 0,
1103  ::flatbuffers::Offset<tt::target::TensorRef> update_index = 0,
1104  uint32_t batch_offset = 0) {
1105  UpdateCacheOpBuilder builder_(_fbb);
1106  builder_.add_batch_offset(batch_offset);
1107  builder_.add_update_index(update_index);
1108  builder_.add_input(input);
1109  builder_.add_cache(cache);
1110  return builder_.Finish();
1111 }
1112 
1115  static auto constexpr Create = CreateUpdateCacheOp;
1116 };
1117 
1118 struct FillCacheOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1120  struct Traits;
1121  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1122  VT_CACHE = 4,
1123  VT_INPUT = 6,
1124  VT_BATCH_OFFSET = 8
1125  };
1126  const tt::target::TensorRef *cache() const {
1127  return GetPointer<const tt::target::TensorRef *>(VT_CACHE);
1128  }
1129  const tt::target::TensorRef *input() const {
1130  return GetPointer<const tt::target::TensorRef *>(VT_INPUT);
1131  }
1132  uint32_t batch_offset() const {
1133  return GetField<uint32_t>(VT_BATCH_OFFSET, 0);
1134  }
1135  bool Verify(::flatbuffers::Verifier &verifier) const {
1136  return VerifyTableStart(verifier) &&
1137  VerifyOffset(verifier, VT_CACHE) &&
1138  verifier.VerifyTable(cache()) &&
1139  VerifyOffset(verifier, VT_INPUT) &&
1140  verifier.VerifyTable(input()) &&
1141  VerifyField<uint32_t>(verifier, VT_BATCH_OFFSET, 4) &&
1142  verifier.EndTable();
1143  }
1144 };
1145 
1148  ::flatbuffers::FlatBufferBuilder &fbb_;
1149  ::flatbuffers::uoffset_t start_;
1150  void add_cache(::flatbuffers::Offset<tt::target::TensorRef> cache) {
1151  fbb_.AddOffset(FillCacheOp::VT_CACHE, cache);
1152  }
1153  void add_input(::flatbuffers::Offset<tt::target::TensorRef> input) {
1154  fbb_.AddOffset(FillCacheOp::VT_INPUT, input);
1155  }
1156  void add_batch_offset(uint32_t batch_offset) {
1157  fbb_.AddElement<uint32_t>(FillCacheOp::VT_BATCH_OFFSET, batch_offset, 0);
1158  }
1159  explicit FillCacheOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1160  : fbb_(_fbb) {
1161  start_ = fbb_.StartTable();
1162  }
1163  ::flatbuffers::Offset<FillCacheOp> Finish() {
1164  const auto end = fbb_.EndTable(start_);
1165  auto o = ::flatbuffers::Offset<FillCacheOp>(end);
1166  return o;
1167  }
1168 };
1169 
1170 inline ::flatbuffers::Offset<FillCacheOp> CreateFillCacheOp(
1171  ::flatbuffers::FlatBufferBuilder &_fbb,
1172  ::flatbuffers::Offset<tt::target::TensorRef> cache = 0,
1173  ::flatbuffers::Offset<tt::target::TensorRef> input = 0,
1174  uint32_t batch_offset = 0) {
1175  FillCacheOpBuilder builder_(_fbb);
1176  builder_.add_batch_offset(batch_offset);
1177  builder_.add_input(input);
1178  builder_.add_cache(cache);
1179  return builder_.Finish();
1180 }
1181 
1184  static auto constexpr Create = CreateFillCacheOp;
1185 };
1186 
1187 struct FromDeviceOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1189  struct Traits;
1190  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1191  VT_IN = 4,
1192  VT_OUT = 6
1193  };
1194  const tt::target::TensorRef *in() const {
1195  return GetPointer<const tt::target::TensorRef *>(VT_IN);
1196  }
1197  const tt::target::TensorRef *out() const {
1198  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
1199  }
1200  bool Verify(::flatbuffers::Verifier &verifier) const {
1201  return VerifyTableStart(verifier) &&
1202  VerifyOffset(verifier, VT_IN) &&
1203  verifier.VerifyTable(in()) &&
1204  VerifyOffset(verifier, VT_OUT) &&
1205  verifier.VerifyTable(out()) &&
1206  verifier.EndTable();
1207  }
1208 };
1209 
1212  ::flatbuffers::FlatBufferBuilder &fbb_;
1213  ::flatbuffers::uoffset_t start_;
1214  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
1215  fbb_.AddOffset(FromDeviceOp::VT_IN, in);
1216  }
1217  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1218  fbb_.AddOffset(FromDeviceOp::VT_OUT, out);
1219  }
1220  explicit FromDeviceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1221  : fbb_(_fbb) {
1222  start_ = fbb_.StartTable();
1223  }
1224  ::flatbuffers::Offset<FromDeviceOp> Finish() {
1225  const auto end = fbb_.EndTable(start_);
1226  auto o = ::flatbuffers::Offset<FromDeviceOp>(end);
1227  return o;
1228  }
1229 };
1230 
1231 inline ::flatbuffers::Offset<FromDeviceOp> CreateFromDeviceOp(
1232  ::flatbuffers::FlatBufferBuilder &_fbb,
1233  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
1234  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1235  FromDeviceOpBuilder builder_(_fbb);
1236  builder_.add_out(out);
1237  builder_.add_in(in);
1238  return builder_.Finish();
1239 }
1240 
1243  static auto constexpr Create = CreateFromDeviceOp;
1244 };
1245 
1246 struct EmptyOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1248  struct Traits;
1249  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1251  VT_DTYPE = 6,
1252  VT_LAYOUT = 8,
1254  VT_DEVICE = 12,
1255  VT_MEMCFG = 14,
1257  VT_OUT = 18
1258  };
1259  const ::flatbuffers::Vector<int64_t> *shape() const {
1260  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_SHAPE);
1261  }
1263  return static_cast<tt::target::DataType>(GetField<uint16_t>(VT_DTYPE, 0));
1264  }
1266  return static_cast<tt::target::TensorLayout>(GetField<uint16_t>(VT_LAYOUT, 0));
1267  }
1268  uint32_t num_shards() const {
1269  return GetField<uint32_t>(VT_NUM_SHARDS, 0);
1270  }
1271  const tt::target::DeviceRef *device() const {
1272  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
1273  }
1274  const tt::target::MemoryConfigDesc *memcfg() const {
1275  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMCFG);
1276  }
1277  const tt::target::DistributionStrategy *strategy() const {
1278  return GetPointer<const tt::target::DistributionStrategy *>(VT_STRATEGY);
1279  }
1280  const tt::target::TensorRef *out() const {
1281  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
1282  }
1283  bool Verify(::flatbuffers::Verifier &verifier) const {
1284  return VerifyTableStart(verifier) &&
1285  VerifyOffset(verifier, VT_SHAPE) &&
1286  verifier.VerifyVector(shape()) &&
1287  VerifyField<uint16_t>(verifier, VT_DTYPE, 2) &&
1288  VerifyField<uint16_t>(verifier, VT_LAYOUT, 2) &&
1289  VerifyField<uint32_t>(verifier, VT_NUM_SHARDS, 4) &&
1290  VerifyOffset(verifier, VT_DEVICE) &&
1291  verifier.VerifyTable(device()) &&
1292  VerifyOffset(verifier, VT_MEMCFG) &&
1293  verifier.VerifyTable(memcfg()) &&
1294  VerifyOffset(verifier, VT_STRATEGY) &&
1295  verifier.VerifyTable(strategy()) &&
1296  VerifyOffset(verifier, VT_OUT) &&
1297  verifier.VerifyTable(out()) &&
1298  verifier.EndTable();
1299  }
1300 };
1301 
1303  typedef EmptyOp Table;
1304  ::flatbuffers::FlatBufferBuilder &fbb_;
1305  ::flatbuffers::uoffset_t start_;
1306  void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shape) {
1307  fbb_.AddOffset(EmptyOp::VT_SHAPE, shape);
1308  }
1310  fbb_.AddElement<uint16_t>(EmptyOp::VT_DTYPE, static_cast<uint16_t>(dtype), 0);
1311  }
1313  fbb_.AddElement<uint16_t>(EmptyOp::VT_LAYOUT, static_cast<uint16_t>(layout), 0);
1314  }
1315  void add_num_shards(uint32_t num_shards) {
1316  fbb_.AddElement<uint32_t>(EmptyOp::VT_NUM_SHARDS, num_shards, 0);
1317  }
1318  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
1319  fbb_.AddOffset(EmptyOp::VT_DEVICE, device);
1320  }
1321  void add_memcfg(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg) {
1322  fbb_.AddOffset(EmptyOp::VT_MEMCFG, memcfg);
1323  }
1324  void add_strategy(::flatbuffers::Offset<tt::target::DistributionStrategy> strategy) {
1325  fbb_.AddOffset(EmptyOp::VT_STRATEGY, strategy);
1326  }
1327  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1328  fbb_.AddOffset(EmptyOp::VT_OUT, out);
1329  }
1330  explicit EmptyOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1331  : fbb_(_fbb) {
1332  start_ = fbb_.StartTable();
1333  }
1334  ::flatbuffers::Offset<EmptyOp> Finish() {
1335  const auto end = fbb_.EndTable(start_);
1336  auto o = ::flatbuffers::Offset<EmptyOp>(end);
1337  return o;
1338  }
1339 };
1340 
1341 inline ::flatbuffers::Offset<EmptyOp> CreateEmptyOp(
1342  ::flatbuffers::FlatBufferBuilder &_fbb,
1343  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shape = 0,
1346  uint32_t num_shards = 0,
1347  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
1348  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
1349  ::flatbuffers::Offset<tt::target::DistributionStrategy> strategy = 0,
1350  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1351  EmptyOpBuilder builder_(_fbb);
1352  builder_.add_out(out);
1353  builder_.add_strategy(strategy);
1354  builder_.add_memcfg(memcfg);
1355  builder_.add_device(device);
1356  builder_.add_num_shards(num_shards);
1357  builder_.add_shape(shape);
1358  builder_.add_layout(layout);
1359  builder_.add_dtype(dtype);
1360  return builder_.Finish();
1361 }
1362 
1364  using type = EmptyOp;
1365  static auto constexpr Create = CreateEmptyOp;
1366 };
1367 
1368 inline ::flatbuffers::Offset<EmptyOp> CreateEmptyOpDirect(
1369  ::flatbuffers::FlatBufferBuilder &_fbb,
1370  const std::vector<int64_t> *shape = nullptr,
1373  uint32_t num_shards = 0,
1374  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
1375  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
1376  ::flatbuffers::Offset<tt::target::DistributionStrategy> strategy = 0,
1377  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1378  auto shape__ = shape ? _fbb.CreateVector<int64_t>(*shape) : 0;
1380  _fbb,
1381  shape__,
1382  dtype,
1383  layout,
1384  num_shards,
1385  device,
1386  memcfg,
1387  strategy,
1388  out);
1389 }
1390 
1391 struct OnesOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1393  struct Traits;
1394  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1395  VT_SHAPE = 4,
1396  VT_DTYPE = 6,
1397  VT_LAYOUT = 8,
1398  VT_DEVICE = 10,
1399  VT_MEMCFG = 12,
1400  VT_OUT = 14
1401  };
1402  const ::flatbuffers::Vector<int64_t> *shape() const {
1403  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_SHAPE);
1404  }
1405  ::flatbuffers::Optional<tt::target::DataType> dtype() const {
1406  return GetOptional<uint16_t, tt::target::DataType>(VT_DTYPE);
1407  }
1408  ::flatbuffers::Optional<tt::target::TensorLayout> layout() const {
1409  return GetOptional<uint16_t, tt::target::TensorLayout>(VT_LAYOUT);
1410  }
1411  const tt::target::DeviceRef *device() const {
1412  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
1413  }
1414  const tt::target::MemoryConfigDesc *memcfg() const {
1415  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMCFG);
1416  }
1417  const tt::target::TensorRef *out() const {
1418  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
1419  }
1420  bool Verify(::flatbuffers::Verifier &verifier) const {
1421  return VerifyTableStart(verifier) &&
1422  VerifyOffset(verifier, VT_SHAPE) &&
1423  verifier.VerifyVector(shape()) &&
1424  VerifyField<uint16_t>(verifier, VT_DTYPE, 2) &&
1425  VerifyField<uint16_t>(verifier, VT_LAYOUT, 2) &&
1426  VerifyOffset(verifier, VT_DEVICE) &&
1427  verifier.VerifyTable(device()) &&
1428  VerifyOffset(verifier, VT_MEMCFG) &&
1429  verifier.VerifyTable(memcfg()) &&
1430  VerifyOffset(verifier, VT_OUT) &&
1431  verifier.VerifyTable(out()) &&
1432  verifier.EndTable();
1433  }
1434 };
1435 
1437  typedef OnesOp Table;
1438  ::flatbuffers::FlatBufferBuilder &fbb_;
1439  ::flatbuffers::uoffset_t start_;
1440  void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shape) {
1441  fbb_.AddOffset(OnesOp::VT_SHAPE, shape);
1442  }
1444  fbb_.AddElement<uint16_t>(OnesOp::VT_DTYPE, static_cast<uint16_t>(dtype));
1445  }
1447  fbb_.AddElement<uint16_t>(OnesOp::VT_LAYOUT, static_cast<uint16_t>(layout));
1448  }
1449  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
1450  fbb_.AddOffset(OnesOp::VT_DEVICE, device);
1451  }
1452  void add_memcfg(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg) {
1453  fbb_.AddOffset(OnesOp::VT_MEMCFG, memcfg);
1454  }
1455  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1456  fbb_.AddOffset(OnesOp::VT_OUT, out);
1457  }
1458  explicit OnesOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1459  : fbb_(_fbb) {
1460  start_ = fbb_.StartTable();
1461  }
1462  ::flatbuffers::Offset<OnesOp> Finish() {
1463  const auto end = fbb_.EndTable(start_);
1464  auto o = ::flatbuffers::Offset<OnesOp>(end);
1465  return o;
1466  }
1467 };
1468 
1469 inline ::flatbuffers::Offset<OnesOp> CreateOnesOp(
1470  ::flatbuffers::FlatBufferBuilder &_fbb,
1471  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shape = 0,
1472  ::flatbuffers::Optional<tt::target::DataType> dtype = ::flatbuffers::nullopt,
1473  ::flatbuffers::Optional<tt::target::TensorLayout> layout = ::flatbuffers::nullopt,
1474  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
1475  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
1476  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1477  OnesOpBuilder builder_(_fbb);
1478  builder_.add_out(out);
1479  builder_.add_memcfg(memcfg);
1480  builder_.add_device(device);
1481  builder_.add_shape(shape);
1482  if(layout) { builder_.add_layout(*layout); }
1483  if(dtype) { builder_.add_dtype(*dtype); }
1484  return builder_.Finish();
1485 }
1486 
1488  using type = OnesOp;
1489  static auto constexpr Create = CreateOnesOp;
1490 };
1491 
1492 inline ::flatbuffers::Offset<OnesOp> CreateOnesOpDirect(
1493  ::flatbuffers::FlatBufferBuilder &_fbb,
1494  const std::vector<int64_t> *shape = nullptr,
1495  ::flatbuffers::Optional<tt::target::DataType> dtype = ::flatbuffers::nullopt,
1496  ::flatbuffers::Optional<tt::target::TensorLayout> layout = ::flatbuffers::nullopt,
1497  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
1498  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
1499  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1500  auto shape__ = shape ? _fbb.CreateVector<int64_t>(*shape) : 0;
1502  _fbb,
1503  shape__,
1504  dtype,
1505  layout,
1506  device,
1507  memcfg,
1508  out);
1509 }
1510 
1511 struct FullOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1513  struct Traits;
1514  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1515  VT_DEVICE = 4,
1517  VT_NUM_SHARDS = 8,
1518  VT_STRATEGY = 10,
1519  VT_OUT = 12
1520  };
1521  const tt::target::DeviceRef *device() const {
1522  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
1523  }
1524  float fill_value() const {
1525  return GetField<float>(VT_FILL_VALUE, 0.0f);
1526  }
1527  uint32_t num_shards() const {
1528  return GetField<uint32_t>(VT_NUM_SHARDS, 0);
1529  }
1530  const tt::target::DistributionStrategy *strategy() const {
1531  return GetPointer<const tt::target::DistributionStrategy *>(VT_STRATEGY);
1532  }
1533  const tt::target::TensorRef *out() const {
1534  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
1535  }
1536  bool Verify(::flatbuffers::Verifier &verifier) const {
1537  return VerifyTableStart(verifier) &&
1538  VerifyOffset(verifier, VT_DEVICE) &&
1539  verifier.VerifyTable(device()) &&
1540  VerifyField<float>(verifier, VT_FILL_VALUE, 4) &&
1541  VerifyField<uint32_t>(verifier, VT_NUM_SHARDS, 4) &&
1542  VerifyOffset(verifier, VT_STRATEGY) &&
1543  verifier.VerifyTable(strategy()) &&
1544  VerifyOffset(verifier, VT_OUT) &&
1545  verifier.VerifyTable(out()) &&
1546  verifier.EndTable();
1547  }
1548 };
1549 
1551  typedef FullOp Table;
1552  ::flatbuffers::FlatBufferBuilder &fbb_;
1553  ::flatbuffers::uoffset_t start_;
1554  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
1555  fbb_.AddOffset(FullOp::VT_DEVICE, device);
1556  }
1557  void add_fill_value(float fill_value) {
1558  fbb_.AddElement<float>(FullOp::VT_FILL_VALUE, fill_value, 0.0f);
1559  }
1560  void add_num_shards(uint32_t num_shards) {
1561  fbb_.AddElement<uint32_t>(FullOp::VT_NUM_SHARDS, num_shards, 0);
1562  }
1563  void add_strategy(::flatbuffers::Offset<tt::target::DistributionStrategy> strategy) {
1564  fbb_.AddOffset(FullOp::VT_STRATEGY, strategy);
1565  }
1566  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1567  fbb_.AddOffset(FullOp::VT_OUT, out);
1568  }
1569  explicit FullOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1570  : fbb_(_fbb) {
1571  start_ = fbb_.StartTable();
1572  }
1573  ::flatbuffers::Offset<FullOp> Finish() {
1574  const auto end = fbb_.EndTable(start_);
1575  auto o = ::flatbuffers::Offset<FullOp>(end);
1576  return o;
1577  }
1578 };
1579 
1580 inline ::flatbuffers::Offset<FullOp> CreateFullOp(
1581  ::flatbuffers::FlatBufferBuilder &_fbb,
1582  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
1583  float fill_value = 0.0f,
1584  uint32_t num_shards = 0,
1585  ::flatbuffers::Offset<tt::target::DistributionStrategy> strategy = 0,
1586  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1587  FullOpBuilder builder_(_fbb);
1588  builder_.add_out(out);
1589  builder_.add_strategy(strategy);
1590  builder_.add_num_shards(num_shards);
1591  builder_.add_fill_value(fill_value);
1592  builder_.add_device(device);
1593  return builder_.Finish();
1594 }
1595 
1597  using type = FullOp;
1598  static auto constexpr Create = CreateFullOp;
1599 };
1600 
1601 struct ArangeOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1603  struct Traits;
1604  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1606  VT_END = 6,
1607  VT_STEP = 8,
1608  VT_DTYPE = 10,
1609  VT_DEVICE = 12,
1610  VT_MEMCFG = 14,
1611  VT_OUT = 16
1612  };
1613  float start() const {
1614  return GetField<float>(VT_START, 0.0f);
1615  }
1616  float end() const {
1617  return GetField<float>(VT_END, 0.0f);
1618  }
1619  float step() const {
1620  return GetField<float>(VT_STEP, 0.0f);
1621  }
1622  ::flatbuffers::Optional<tt::target::DataType> dtype() const {
1623  return GetOptional<uint16_t, tt::target::DataType>(VT_DTYPE);
1624  }
1625  const tt::target::DeviceRef *device() const {
1626  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
1627  }
1628  const tt::target::MemoryConfigDesc *memcfg() const {
1629  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMCFG);
1630  }
1631  const tt::target::TensorRef *out() const {
1632  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
1633  }
1634  bool Verify(::flatbuffers::Verifier &verifier) const {
1635  return VerifyTableStart(verifier) &&
1636  VerifyField<float>(verifier, VT_START, 4) &&
1637  VerifyField<float>(verifier, VT_END, 4) &&
1638  VerifyField<float>(verifier, VT_STEP, 4) &&
1639  VerifyField<uint16_t>(verifier, VT_DTYPE, 2) &&
1640  VerifyOffset(verifier, VT_DEVICE) &&
1641  verifier.VerifyTable(device()) &&
1642  VerifyOffset(verifier, VT_MEMCFG) &&
1643  verifier.VerifyTable(memcfg()) &&
1644  VerifyOffset(verifier, VT_OUT) &&
1645  verifier.VerifyTable(out()) &&
1646  verifier.EndTable();
1647  }
1648 };
1649 
1651  typedef ArangeOp Table;
1652  ::flatbuffers::FlatBufferBuilder &fbb_;
1653  ::flatbuffers::uoffset_t start_;
1654  void add_start(float start) {
1655  fbb_.AddElement<float>(ArangeOp::VT_START, start, 0.0f);
1656  }
1657  void add_end(float end) {
1658  fbb_.AddElement<float>(ArangeOp::VT_END, end, 0.0f);
1659  }
1660  void add_step(float step) {
1661  fbb_.AddElement<float>(ArangeOp::VT_STEP, step, 0.0f);
1662  }
1664  fbb_.AddElement<uint16_t>(ArangeOp::VT_DTYPE, static_cast<uint16_t>(dtype));
1665  }
1666  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
1667  fbb_.AddOffset(ArangeOp::VT_DEVICE, device);
1668  }
1669  void add_memcfg(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg) {
1670  fbb_.AddOffset(ArangeOp::VT_MEMCFG, memcfg);
1671  }
1672  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1673  fbb_.AddOffset(ArangeOp::VT_OUT, out);
1674  }
1675  explicit ArangeOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1676  : fbb_(_fbb) {
1677  start_ = fbb_.StartTable();
1678  }
1679  ::flatbuffers::Offset<ArangeOp> Finish() {
1680  const auto end = fbb_.EndTable(start_);
1681  auto o = ::flatbuffers::Offset<ArangeOp>(end);
1682  return o;
1683  }
1684 };
1685 
1686 inline ::flatbuffers::Offset<ArangeOp> CreateArangeOp(
1687  ::flatbuffers::FlatBufferBuilder &_fbb,
1688  float start = 0.0f,
1689  float end = 0.0f,
1690  float step = 0.0f,
1691  ::flatbuffers::Optional<tt::target::DataType> dtype = ::flatbuffers::nullopt,
1692  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
1693  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
1694  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
1695  ArangeOpBuilder builder_(_fbb);
1696  builder_.add_out(out);
1697  builder_.add_memcfg(memcfg);
1698  builder_.add_device(device);
1699  builder_.add_step(step);
1700  builder_.add_end(end);
1701  builder_.add_start(start);
1702  if(dtype) { builder_.add_dtype(*dtype); }
1703  return builder_.Finish();
1704 }
1705 
1707  using type = ArangeOp;
1708  static auto constexpr Create = CreateArangeOp;
1709 };
1710 
1711 struct ClampOpParams FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1713  struct Traits;
1714  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1715  VT_MIN = 4,
1716  VT_MAX = 6
1717  };
1718  float min() const {
1719  return GetField<float>(VT_MIN, 0.0f);
1720  }
1721  float max() const {
1722  return GetField<float>(VT_MAX, 0.0f);
1723  }
1724  bool Verify(::flatbuffers::Verifier &verifier) const {
1725  return VerifyTableStart(verifier) &&
1726  VerifyField<float>(verifier, VT_MIN, 4) &&
1727  VerifyField<float>(verifier, VT_MAX, 4) &&
1728  verifier.EndTable();
1729  }
1730 };
1731 
1734  ::flatbuffers::FlatBufferBuilder &fbb_;
1735  ::flatbuffers::uoffset_t start_;
1736  void add_min(float min) {
1737  fbb_.AddElement<float>(ClampOpParams::VT_MIN, min, 0.0f);
1738  }
1739  void add_max(float max) {
1740  fbb_.AddElement<float>(ClampOpParams::VT_MAX, max, 0.0f);
1741  }
1742  explicit ClampOpParamsBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1743  : fbb_(_fbb) {
1744  start_ = fbb_.StartTable();
1745  }
1746  ::flatbuffers::Offset<ClampOpParams> Finish() {
1747  const auto end = fbb_.EndTable(start_);
1748  auto o = ::flatbuffers::Offset<ClampOpParams>(end);
1749  return o;
1750  }
1751 };
1752 
1753 inline ::flatbuffers::Offset<ClampOpParams> CreateClampOpParams(
1754  ::flatbuffers::FlatBufferBuilder &_fbb,
1755  float min = 0.0f,
1756  float max = 0.0f) {
1757  ClampOpParamsBuilder builder_(_fbb);
1758  builder_.add_max(max);
1759  builder_.add_min(min);
1760  return builder_.Finish();
1761 }
1762 
1765  static auto constexpr Create = CreateClampOpParams;
1766 };
1767 
1768 struct EltwiseOpWithFloatParams FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1770  struct Traits;
1771  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1772  VT_PARAMETER = 4
1773  };
1774  float parameter() const {
1775  return GetField<float>(VT_PARAMETER, 0.0f);
1776  }
1777  bool Verify(::flatbuffers::Verifier &verifier) const {
1778  return VerifyTableStart(verifier) &&
1779  VerifyField<float>(verifier, VT_PARAMETER, 4) &&
1780  verifier.EndTable();
1781  }
1782 };
1783 
1786  ::flatbuffers::FlatBufferBuilder &fbb_;
1787  ::flatbuffers::uoffset_t start_;
1788  void add_parameter(float parameter) {
1789  fbb_.AddElement<float>(EltwiseOpWithFloatParams::VT_PARAMETER, parameter, 0.0f);
1790  }
1791  explicit EltwiseOpWithFloatParamsBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1792  : fbb_(_fbb) {
1793  start_ = fbb_.StartTable();
1794  }
1795  ::flatbuffers::Offset<EltwiseOpWithFloatParams> Finish() {
1796  const auto end = fbb_.EndTable(start_);
1797  auto o = ::flatbuffers::Offset<EltwiseOpWithFloatParams>(end);
1798  return o;
1799  }
1800 };
1801 
1802 inline ::flatbuffers::Offset<EltwiseOpWithFloatParams> CreateEltwiseOpWithFloatParams(
1803  ::flatbuffers::FlatBufferBuilder &_fbb,
1804  float parameter = 0.0f) {
1805  EltwiseOpWithFloatParamsBuilder builder_(_fbb);
1806  builder_.add_parameter(parameter);
1807  return builder_.Finish();
1808 }
1809 
1812  static auto constexpr Create = CreateEltwiseOpWithFloatParams;
1813 };
1814 
1815 struct EltwiseOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1817  struct Traits;
1818  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1819  VT_TYPE = 4,
1820  VT_INS = 6,
1821  VT_OUT = 8,
1823  VT_PARAMS = 12
1824  };
1826  return static_cast<tt::target::ttnn::EltwiseOpType>(GetField<uint32_t>(VT_TYPE, 0));
1827  }
1828  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *ins() const {
1829  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_INS);
1830  }
1831  const tt::target::TensorRef *out() const {
1832  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
1833  }
1835  return static_cast<tt::target::ttnn::EltwiseOpParams>(GetField<uint8_t>(VT_PARAMS_TYPE, 0));
1836  }
1837  const void *params() const {
1838  return GetPointer<const void *>(VT_PARAMS);
1839  }
1840  template<typename T> const T *params_as() const;
1841  const tt::target::ttnn::ClampOpParams *params_as_ClampOpParams() const {
1842  return params_type() == tt::target::ttnn::EltwiseOpParams::ClampOpParams ? static_cast<const tt::target::ttnn::ClampOpParams *>(params()) : nullptr;
1843  }
1844  const tt::target::ttnn::EltwiseOpWithFloatParams *params_as_EltwiseOpWithFloatParams() const {
1845  return params_type() == tt::target::ttnn::EltwiseOpParams::EltwiseOpWithFloatParams ? static_cast<const tt::target::ttnn::EltwiseOpWithFloatParams *>(params()) : nullptr;
1846  }
1847  bool Verify(::flatbuffers::Verifier &verifier) const {
1848  return VerifyTableStart(verifier) &&
1849  VerifyField<uint32_t>(verifier, VT_TYPE, 4) &&
1850  VerifyOffset(verifier, VT_INS) &&
1851  verifier.VerifyVector(ins()) &&
1852  verifier.VerifyVectorOfTables(ins()) &&
1853  VerifyOffset(verifier, VT_OUT) &&
1854  verifier.VerifyTable(out()) &&
1855  VerifyField<uint8_t>(verifier, VT_PARAMS_TYPE, 1) &&
1856  VerifyOffset(verifier, VT_PARAMS) &&
1857  VerifyEltwiseOpParams(verifier, params(), params_type()) &&
1858  verifier.EndTable();
1859  }
1860 };
1861 
1862 template<> inline const tt::target::ttnn::ClampOpParams *EltwiseOp::params_as<tt::target::ttnn::ClampOpParams>() const {
1863  return params_as_ClampOpParams();
1864 }
1865 
1866 template<> inline const tt::target::ttnn::EltwiseOpWithFloatParams *EltwiseOp::params_as<tt::target::ttnn::EltwiseOpWithFloatParams>() const {
1867  return params_as_EltwiseOpWithFloatParams();
1868 }
1869 
1871  typedef EltwiseOp Table;
1872  ::flatbuffers::FlatBufferBuilder &fbb_;
1873  ::flatbuffers::uoffset_t start_;
1875  fbb_.AddElement<uint32_t>(EltwiseOp::VT_TYPE, static_cast<uint32_t>(type), 0);
1876  }
1877  void add_ins(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> ins) {
1878  fbb_.AddOffset(EltwiseOp::VT_INS, ins);
1879  }
1880  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1881  fbb_.AddOffset(EltwiseOp::VT_OUT, out);
1882  }
1884  fbb_.AddElement<uint8_t>(EltwiseOp::VT_PARAMS_TYPE, static_cast<uint8_t>(params_type), 0);
1885  }
1886  void add_params(::flatbuffers::Offset<void> params) {
1887  fbb_.AddOffset(EltwiseOp::VT_PARAMS, params);
1888  }
1889  explicit EltwiseOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1890  : fbb_(_fbb) {
1891  start_ = fbb_.StartTable();
1892  }
1893  ::flatbuffers::Offset<EltwiseOp> Finish() {
1894  const auto end = fbb_.EndTable(start_);
1895  auto o = ::flatbuffers::Offset<EltwiseOp>(end);
1896  return o;
1897  }
1898 };
1899 
1900 inline ::flatbuffers::Offset<EltwiseOp> CreateEltwiseOp(
1901  ::flatbuffers::FlatBufferBuilder &_fbb,
1903  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> ins = 0,
1904  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
1906  ::flatbuffers::Offset<void> params = 0) {
1907  EltwiseOpBuilder builder_(_fbb);
1908  builder_.add_params(params);
1909  builder_.add_out(out);
1910  builder_.add_ins(ins);
1911  builder_.add_type(type);
1912  builder_.add_params_type(params_type);
1913  return builder_.Finish();
1914 }
1915 
1917  using type = EltwiseOp;
1918  static auto constexpr Create = CreateEltwiseOp;
1919 };
1920 
1921 inline ::flatbuffers::Offset<EltwiseOp> CreateEltwiseOpDirect(
1922  ::flatbuffers::FlatBufferBuilder &_fbb,
1924  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *ins = nullptr,
1925  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
1927  ::flatbuffers::Offset<void> params = 0) {
1928  auto ins__ = ins ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*ins) : 0;
1930  _fbb,
1931  type,
1932  ins__,
1933  out,
1934  params_type,
1935  params);
1936 }
1937 
1938 struct ReductionOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1940  struct Traits;
1941  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1942  VT_TYPE = 4,
1943  VT_IN = 6,
1944  VT_OUT = 8,
1946  VT_KEEP_DIM = 12
1947  };
1949  return static_cast<tt::target::ttnn::ReductionOpType>(GetField<uint32_t>(VT_TYPE, 0));
1950  }
1951  const tt::target::TensorRef *in() const {
1952  return GetPointer<const tt::target::TensorRef *>(VT_IN);
1953  }
1954  const tt::target::TensorRef *out() const {
1955  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
1956  }
1957  const ::flatbuffers::Vector<int32_t> *dim_arg() const {
1958  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_DIM_ARG);
1959  }
1960  bool keep_dim() const {
1961  return GetField<uint8_t>(VT_KEEP_DIM, 0) != 0;
1962  }
1963  bool Verify(::flatbuffers::Verifier &verifier) const {
1964  return VerifyTableStart(verifier) &&
1965  VerifyField<uint32_t>(verifier, VT_TYPE, 4) &&
1966  VerifyOffset(verifier, VT_IN) &&
1967  verifier.VerifyTable(in()) &&
1968  VerifyOffset(verifier, VT_OUT) &&
1969  verifier.VerifyTable(out()) &&
1970  VerifyOffset(verifier, VT_DIM_ARG) &&
1971  verifier.VerifyVector(dim_arg()) &&
1972  VerifyField<uint8_t>(verifier, VT_KEEP_DIM, 1) &&
1973  verifier.EndTable();
1974  }
1975 };
1976 
1979  ::flatbuffers::FlatBufferBuilder &fbb_;
1980  ::flatbuffers::uoffset_t start_;
1982  fbb_.AddElement<uint32_t>(ReductionOp::VT_TYPE, static_cast<uint32_t>(type), 0);
1983  }
1984  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
1985  fbb_.AddOffset(ReductionOp::VT_IN, in);
1986  }
1987  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
1988  fbb_.AddOffset(ReductionOp::VT_OUT, out);
1989  }
1990  void add_dim_arg(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> dim_arg) {
1991  fbb_.AddOffset(ReductionOp::VT_DIM_ARG, dim_arg);
1992  }
1993  void add_keep_dim(bool keep_dim) {
1994  fbb_.AddElement<uint8_t>(ReductionOp::VT_KEEP_DIM, static_cast<uint8_t>(keep_dim), 0);
1995  }
1996  explicit ReductionOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1997  : fbb_(_fbb) {
1998  start_ = fbb_.StartTable();
1999  }
2000  ::flatbuffers::Offset<ReductionOp> Finish() {
2001  const auto end = fbb_.EndTable(start_);
2002  auto o = ::flatbuffers::Offset<ReductionOp>(end);
2003  return o;
2004  }
2005 };
2006 
2007 inline ::flatbuffers::Offset<ReductionOp> CreateReductionOp(
2008  ::flatbuffers::FlatBufferBuilder &_fbb,
2010  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2011  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2012  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> dim_arg = 0,
2013  bool keep_dim = false) {
2014  ReductionOpBuilder builder_(_fbb);
2015  builder_.add_dim_arg(dim_arg);
2016  builder_.add_out(out);
2017  builder_.add_in(in);
2018  builder_.add_type(type);
2019  builder_.add_keep_dim(keep_dim);
2020  return builder_.Finish();
2021 }
2022 
2025  static auto constexpr Create = CreateReductionOp;
2026 };
2027 
2028 inline ::flatbuffers::Offset<ReductionOp> CreateReductionOpDirect(
2029  ::flatbuffers::FlatBufferBuilder &_fbb,
2031  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2032  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2033  const std::vector<int32_t> *dim_arg = nullptr,
2034  bool keep_dim = false) {
2035  auto dim_arg__ = dim_arg ? _fbb.CreateVector<int32_t>(*dim_arg) : 0;
2037  _fbb,
2038  type,
2039  in,
2040  out,
2041  dim_arg__,
2042  keep_dim);
2043 }
2044 
2045 struct EmbeddingOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2047  struct Traits;
2048  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2049  VT_INPUT = 4,
2051  VT_OUT = 8
2052  };
2053  const tt::target::TensorRef *input() const {
2054  return GetPointer<const tt::target::TensorRef *>(VT_INPUT);
2055  }
2056  const tt::target::TensorRef *weight() const {
2057  return GetPointer<const tt::target::TensorRef *>(VT_WEIGHT);
2058  }
2059  const tt::target::TensorRef *out() const {
2060  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2061  }
2062  bool Verify(::flatbuffers::Verifier &verifier) const {
2063  return VerifyTableStart(verifier) &&
2064  VerifyOffset(verifier, VT_INPUT) &&
2065  verifier.VerifyTable(input()) &&
2066  VerifyOffset(verifier, VT_WEIGHT) &&
2067  verifier.VerifyTable(weight()) &&
2068  VerifyOffset(verifier, VT_OUT) &&
2069  verifier.VerifyTable(out()) &&
2070  verifier.EndTable();
2071  }
2072 };
2073 
2076  ::flatbuffers::FlatBufferBuilder &fbb_;
2077  ::flatbuffers::uoffset_t start_;
2078  void add_input(::flatbuffers::Offset<tt::target::TensorRef> input) {
2079  fbb_.AddOffset(EmbeddingOp::VT_INPUT, input);
2080  }
2081  void add_weight(::flatbuffers::Offset<tt::target::TensorRef> weight) {
2082  fbb_.AddOffset(EmbeddingOp::VT_WEIGHT, weight);
2083  }
2084  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2085  fbb_.AddOffset(EmbeddingOp::VT_OUT, out);
2086  }
2087  explicit EmbeddingOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2088  : fbb_(_fbb) {
2089  start_ = fbb_.StartTable();
2090  }
2091  ::flatbuffers::Offset<EmbeddingOp> Finish() {
2092  const auto end = fbb_.EndTable(start_);
2093  auto o = ::flatbuffers::Offset<EmbeddingOp>(end);
2094  return o;
2095  }
2096 };
2097 
2098 inline ::flatbuffers::Offset<EmbeddingOp> CreateEmbeddingOp(
2099  ::flatbuffers::FlatBufferBuilder &_fbb,
2100  ::flatbuffers::Offset<tt::target::TensorRef> input = 0,
2101  ::flatbuffers::Offset<tt::target::TensorRef> weight = 0,
2102  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
2103  EmbeddingOpBuilder builder_(_fbb);
2104  builder_.add_out(out);
2105  builder_.add_weight(weight);
2106  builder_.add_input(input);
2107  return builder_.Finish();
2108 }
2109 
2112  static auto constexpr Create = CreateEmbeddingOp;
2113 };
2114 
2115 struct EmbeddingBackwardOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2117  struct Traits;
2118  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2119  VT_INPUT = 4,
2120  VT_WEIGHT = 6,
2122  VT_DTYPE = 10,
2123  VT_MEMCFG = 12,
2124  VT_OUT = 14
2125  };
2126  const tt::target::TensorRef *input() const {
2127  return GetPointer<const tt::target::TensorRef *>(VT_INPUT);
2128  }
2129  const tt::target::TensorRef *weight() const {
2130  return GetPointer<const tt::target::TensorRef *>(VT_WEIGHT);
2131  }
2132  const tt::target::TensorRef *in_grad() const {
2133  return GetPointer<const tt::target::TensorRef *>(VT_IN_GRAD);
2134  }
2135  ::flatbuffers::Optional<tt::target::DataType> dtype() const {
2136  return GetOptional<uint16_t, tt::target::DataType>(VT_DTYPE);
2137  }
2138  const tt::target::MemoryConfigDesc *memcfg() const {
2139  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMCFG);
2140  }
2141  const tt::target::TensorRef *out() const {
2142  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2143  }
2144  bool Verify(::flatbuffers::Verifier &verifier) const {
2145  return VerifyTableStart(verifier) &&
2146  VerifyOffset(verifier, VT_INPUT) &&
2147  verifier.VerifyTable(input()) &&
2148  VerifyOffset(verifier, VT_WEIGHT) &&
2149  verifier.VerifyTable(weight()) &&
2150  VerifyOffset(verifier, VT_IN_GRAD) &&
2151  verifier.VerifyTable(in_grad()) &&
2152  VerifyField<uint16_t>(verifier, VT_DTYPE, 2) &&
2153  VerifyOffset(verifier, VT_MEMCFG) &&
2154  verifier.VerifyTable(memcfg()) &&
2155  VerifyOffset(verifier, VT_OUT) &&
2156  verifier.VerifyTable(out()) &&
2157  verifier.EndTable();
2158  }
2159 };
2160 
2163  ::flatbuffers::FlatBufferBuilder &fbb_;
2164  ::flatbuffers::uoffset_t start_;
2165  void add_input(::flatbuffers::Offset<tt::target::TensorRef> input) {
2166  fbb_.AddOffset(EmbeddingBackwardOp::VT_INPUT, input);
2167  }
2168  void add_weight(::flatbuffers::Offset<tt::target::TensorRef> weight) {
2169  fbb_.AddOffset(EmbeddingBackwardOp::VT_WEIGHT, weight);
2170  }
2171  void add_in_grad(::flatbuffers::Offset<tt::target::TensorRef> in_grad) {
2172  fbb_.AddOffset(EmbeddingBackwardOp::VT_IN_GRAD, in_grad);
2173  }
2175  fbb_.AddElement<uint16_t>(EmbeddingBackwardOp::VT_DTYPE, static_cast<uint16_t>(dtype));
2176  }
2177  void add_memcfg(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg) {
2178  fbb_.AddOffset(EmbeddingBackwardOp::VT_MEMCFG, memcfg);
2179  }
2180  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2181  fbb_.AddOffset(EmbeddingBackwardOp::VT_OUT, out);
2182  }
2183  explicit EmbeddingBackwardOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2184  : fbb_(_fbb) {
2185  start_ = fbb_.StartTable();
2186  }
2187  ::flatbuffers::Offset<EmbeddingBackwardOp> Finish() {
2188  const auto end = fbb_.EndTable(start_);
2189  auto o = ::flatbuffers::Offset<EmbeddingBackwardOp>(end);
2190  return o;
2191  }
2192 };
2193 
2194 inline ::flatbuffers::Offset<EmbeddingBackwardOp> CreateEmbeddingBackwardOp(
2195  ::flatbuffers::FlatBufferBuilder &_fbb,
2196  ::flatbuffers::Offset<tt::target::TensorRef> input = 0,
2197  ::flatbuffers::Offset<tt::target::TensorRef> weight = 0,
2198  ::flatbuffers::Offset<tt::target::TensorRef> in_grad = 0,
2199  ::flatbuffers::Optional<tt::target::DataType> dtype = ::flatbuffers::nullopt,
2200  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memcfg = 0,
2201  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
2202  EmbeddingBackwardOpBuilder builder_(_fbb);
2203  builder_.add_out(out);
2204  builder_.add_memcfg(memcfg);
2205  builder_.add_in_grad(in_grad);
2206  builder_.add_weight(weight);
2207  builder_.add_input(input);
2208  if(dtype) { builder_.add_dtype(*dtype); }
2209  return builder_.Finish();
2210 }
2211 
2214  static auto constexpr Create = CreateEmbeddingBackwardOp;
2215 };
2216 
2217 struct SoftmaxOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2219  struct Traits;
2220  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2221  VT_IN = 4,
2222  VT_OUT = 6,
2223  VT_DIMENSION = 8
2224  };
2225  const tt::target::TensorRef *in() const {
2226  return GetPointer<const tt::target::TensorRef *>(VT_IN);
2227  }
2228  const tt::target::TensorRef *out() const {
2229  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2230  }
2231  int32_t dimension() const {
2232  return GetField<int32_t>(VT_DIMENSION, 0);
2233  }
2234  bool Verify(::flatbuffers::Verifier &verifier) const {
2235  return VerifyTableStart(verifier) &&
2236  VerifyOffset(verifier, VT_IN) &&
2237  verifier.VerifyTable(in()) &&
2238  VerifyOffset(verifier, VT_OUT) &&
2239  verifier.VerifyTable(out()) &&
2240  VerifyField<int32_t>(verifier, VT_DIMENSION, 4) &&
2241  verifier.EndTable();
2242  }
2243 };
2244 
2246  typedef SoftmaxOp Table;
2247  ::flatbuffers::FlatBufferBuilder &fbb_;
2248  ::flatbuffers::uoffset_t start_;
2249  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
2250  fbb_.AddOffset(SoftmaxOp::VT_IN, in);
2251  }
2252  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2253  fbb_.AddOffset(SoftmaxOp::VT_OUT, out);
2254  }
2255  void add_dimension(int32_t dimension) {
2256  fbb_.AddElement<int32_t>(SoftmaxOp::VT_DIMENSION, dimension, 0);
2257  }
2258  explicit SoftmaxOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2259  : fbb_(_fbb) {
2260  start_ = fbb_.StartTable();
2261  }
2262  ::flatbuffers::Offset<SoftmaxOp> Finish() {
2263  const auto end = fbb_.EndTable(start_);
2264  auto o = ::flatbuffers::Offset<SoftmaxOp>(end);
2265  return o;
2266  }
2267 };
2268 
2269 inline ::flatbuffers::Offset<SoftmaxOp> CreateSoftmaxOp(
2270  ::flatbuffers::FlatBufferBuilder &_fbb,
2271  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2272  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2273  int32_t dimension = 0) {
2274  SoftmaxOpBuilder builder_(_fbb);
2275  builder_.add_dimension(dimension);
2276  builder_.add_out(out);
2277  builder_.add_in(in);
2278  return builder_.Finish();
2279 }
2280 
2282  using type = SoftmaxOp;
2283  static auto constexpr Create = CreateSoftmaxOp;
2284 };
2285 
2286 struct TransposeOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2288  struct Traits;
2289  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2290  VT_IN = 4,
2291  VT_OUT = 6,
2292  VT_DIM0 = 8,
2293  VT_DIM1 = 10
2294  };
2295  const tt::target::TensorRef *in() const {
2296  return GetPointer<const tt::target::TensorRef *>(VT_IN);
2297  }
2298  const tt::target::TensorRef *out() const {
2299  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2300  }
2301  int32_t dim0() const {
2302  return GetField<int32_t>(VT_DIM0, 0);
2303  }
2304  int32_t dim1() const {
2305  return GetField<int32_t>(VT_DIM1, 0);
2306  }
2307  bool Verify(::flatbuffers::Verifier &verifier) const {
2308  return VerifyTableStart(verifier) &&
2309  VerifyOffset(verifier, VT_IN) &&
2310  verifier.VerifyTable(in()) &&
2311  VerifyOffset(verifier, VT_OUT) &&
2312  verifier.VerifyTable(out()) &&
2313  VerifyField<int32_t>(verifier, VT_DIM0, 4) &&
2314  VerifyField<int32_t>(verifier, VT_DIM1, 4) &&
2315  verifier.EndTable();
2316  }
2317 };
2318 
2321  ::flatbuffers::FlatBufferBuilder &fbb_;
2322  ::flatbuffers::uoffset_t start_;
2323  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
2324  fbb_.AddOffset(TransposeOp::VT_IN, in);
2325  }
2326  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2327  fbb_.AddOffset(TransposeOp::VT_OUT, out);
2328  }
2329  void add_dim0(int32_t dim0) {
2330  fbb_.AddElement<int32_t>(TransposeOp::VT_DIM0, dim0, 0);
2331  }
2332  void add_dim1(int32_t dim1) {
2333  fbb_.AddElement<int32_t>(TransposeOp::VT_DIM1, dim1, 0);
2334  }
2335  explicit TransposeOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2336  : fbb_(_fbb) {
2337  start_ = fbb_.StartTable();
2338  }
2339  ::flatbuffers::Offset<TransposeOp> Finish() {
2340  const auto end = fbb_.EndTable(start_);
2341  auto o = ::flatbuffers::Offset<TransposeOp>(end);
2342  return o;
2343  }
2344 };
2345 
2346 inline ::flatbuffers::Offset<TransposeOp> CreateTransposeOp(
2347  ::flatbuffers::FlatBufferBuilder &_fbb,
2348  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2349  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2350  int32_t dim0 = 0,
2351  int32_t dim1 = 0) {
2352  TransposeOpBuilder builder_(_fbb);
2353  builder_.add_dim1(dim1);
2354  builder_.add_dim0(dim0);
2355  builder_.add_out(out);
2356  builder_.add_in(in);
2357  return builder_.Finish();
2358 }
2359 
2362  static auto constexpr Create = CreateTransposeOp;
2363 };
2364 
2365 struct ConcatOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2367  struct Traits;
2368  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2370  VT_OUT = 6,
2371  VT_DIM = 8
2372  };
2373  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs() const {
2374  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_INPUTS);
2375  }
2376  const tt::target::TensorRef *out() const {
2377  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2378  }
2379  int32_t dim() const {
2380  return GetField<int32_t>(VT_DIM, 0);
2381  }
2382  bool Verify(::flatbuffers::Verifier &verifier) const {
2383  return VerifyTableStart(verifier) &&
2384  VerifyOffset(verifier, VT_INPUTS) &&
2385  verifier.VerifyVector(inputs()) &&
2386  verifier.VerifyVectorOfTables(inputs()) &&
2387  VerifyOffset(verifier, VT_OUT) &&
2388  verifier.VerifyTable(out()) &&
2389  VerifyField<int32_t>(verifier, VT_DIM, 4) &&
2390  verifier.EndTable();
2391  }
2392 };
2393 
2395  typedef ConcatOp Table;
2396  ::flatbuffers::FlatBufferBuilder &fbb_;
2397  ::flatbuffers::uoffset_t start_;
2398  void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs) {
2399  fbb_.AddOffset(ConcatOp::VT_INPUTS, inputs);
2400  }
2401  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2402  fbb_.AddOffset(ConcatOp::VT_OUT, out);
2403  }
2404  void add_dim(int32_t dim) {
2405  fbb_.AddElement<int32_t>(ConcatOp::VT_DIM, dim, 0);
2406  }
2407  explicit ConcatOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2408  : fbb_(_fbb) {
2409  start_ = fbb_.StartTable();
2410  }
2411  ::flatbuffers::Offset<ConcatOp> Finish() {
2412  const auto end = fbb_.EndTable(start_);
2413  auto o = ::flatbuffers::Offset<ConcatOp>(end);
2414  return o;
2415  }
2416 };
2417 
2418 inline ::flatbuffers::Offset<ConcatOp> CreateConcatOp(
2419  ::flatbuffers::FlatBufferBuilder &_fbb,
2420  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs = 0,
2421  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2422  int32_t dim = 0) {
2423  ConcatOpBuilder builder_(_fbb);
2424  builder_.add_dim(dim);
2425  builder_.add_out(out);
2426  builder_.add_inputs(inputs);
2427  return builder_.Finish();
2428 }
2429 
2431  using type = ConcatOp;
2432  static auto constexpr Create = CreateConcatOp;
2433 };
2434 
2435 inline ::flatbuffers::Offset<ConcatOp> CreateConcatOpDirect(
2436  ::flatbuffers::FlatBufferBuilder &_fbb,
2437  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs = nullptr,
2438  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2439  int32_t dim = 0) {
2440  auto inputs__ = inputs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*inputs) : 0;
2442  _fbb,
2443  inputs__,
2444  out,
2445  dim);
2446 }
2447 
2448 struct ReshapeOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2450  struct Traits;
2451  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2452  VT_IN = 4,
2453  VT_OUT = 6,
2454  VT_SHAPE = 8
2455  };
2456  const tt::target::TensorRef *in() const {
2457  return GetPointer<const tt::target::TensorRef *>(VT_IN);
2458  }
2459  const tt::target::TensorRef *out() const {
2460  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2461  }
2462  const ::flatbuffers::Vector<int32_t> *shape() const {
2463  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_SHAPE);
2464  }
2465  bool Verify(::flatbuffers::Verifier &verifier) const {
2466  return VerifyTableStart(verifier) &&
2467  VerifyOffset(verifier, VT_IN) &&
2468  verifier.VerifyTable(in()) &&
2469  VerifyOffset(verifier, VT_OUT) &&
2470  verifier.VerifyTable(out()) &&
2471  VerifyOffset(verifier, VT_SHAPE) &&
2472  verifier.VerifyVector(shape()) &&
2473  verifier.EndTable();
2474  }
2475 };
2476 
2478  typedef ReshapeOp Table;
2479  ::flatbuffers::FlatBufferBuilder &fbb_;
2480  ::flatbuffers::uoffset_t start_;
2481  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
2482  fbb_.AddOffset(ReshapeOp::VT_IN, in);
2483  }
2484  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2485  fbb_.AddOffset(ReshapeOp::VT_OUT, out);
2486  }
2487  void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape) {
2488  fbb_.AddOffset(ReshapeOp::VT_SHAPE, shape);
2489  }
2490  explicit ReshapeOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2491  : fbb_(_fbb) {
2492  start_ = fbb_.StartTable();
2493  }
2494  ::flatbuffers::Offset<ReshapeOp> Finish() {
2495  const auto end = fbb_.EndTable(start_);
2496  auto o = ::flatbuffers::Offset<ReshapeOp>(end);
2497  return o;
2498  }
2499 };
2500 
2501 inline ::flatbuffers::Offset<ReshapeOp> CreateReshapeOp(
2502  ::flatbuffers::FlatBufferBuilder &_fbb,
2503  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2504  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2505  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape = 0) {
2506  ReshapeOpBuilder builder_(_fbb);
2507  builder_.add_shape(shape);
2508  builder_.add_out(out);
2509  builder_.add_in(in);
2510  return builder_.Finish();
2511 }
2512 
2514  using type = ReshapeOp;
2515  static auto constexpr Create = CreateReshapeOp;
2516 };
2517 
2518 inline ::flatbuffers::Offset<ReshapeOp> CreateReshapeOpDirect(
2519  ::flatbuffers::FlatBufferBuilder &_fbb,
2520  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2521  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2522  const std::vector<int32_t> *shape = nullptr) {
2523  auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0;
2525  _fbb,
2526  in,
2527  out,
2528  shape__);
2529 }
2530 
2531 struct RepeatOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2533  struct Traits;
2534  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2535  VT_IN = 4,
2536  VT_OUT = 6,
2537  VT_SHAPE = 8
2538  };
2539  const tt::target::TensorRef *in() const {
2540  return GetPointer<const tt::target::TensorRef *>(VT_IN);
2541  }
2542  const tt::target::TensorRef *out() const {
2543  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2544  }
2545  const ::flatbuffers::Vector<uint32_t> *shape() const {
2546  return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_SHAPE);
2547  }
2548  bool Verify(::flatbuffers::Verifier &verifier) const {
2549  return VerifyTableStart(verifier) &&
2550  VerifyOffset(verifier, VT_IN) &&
2551  verifier.VerifyTable(in()) &&
2552  VerifyOffset(verifier, VT_OUT) &&
2553  verifier.VerifyTable(out()) &&
2554  VerifyOffset(verifier, VT_SHAPE) &&
2555  verifier.VerifyVector(shape()) &&
2556  verifier.EndTable();
2557  }
2558 };
2559 
2561  typedef RepeatOp Table;
2562  ::flatbuffers::FlatBufferBuilder &fbb_;
2563  ::flatbuffers::uoffset_t start_;
2564  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
2565  fbb_.AddOffset(RepeatOp::VT_IN, in);
2566  }
2567  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2568  fbb_.AddOffset(RepeatOp::VT_OUT, out);
2569  }
2570  void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> shape) {
2571  fbb_.AddOffset(RepeatOp::VT_SHAPE, shape);
2572  }
2573  explicit RepeatOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2574  : fbb_(_fbb) {
2575  start_ = fbb_.StartTable();
2576  }
2577  ::flatbuffers::Offset<RepeatOp> Finish() {
2578  const auto end = fbb_.EndTable(start_);
2579  auto o = ::flatbuffers::Offset<RepeatOp>(end);
2580  return o;
2581  }
2582 };
2583 
2584 inline ::flatbuffers::Offset<RepeatOp> CreateRepeatOp(
2585  ::flatbuffers::FlatBufferBuilder &_fbb,
2586  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2587  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2588  ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> shape = 0) {
2589  RepeatOpBuilder builder_(_fbb);
2590  builder_.add_shape(shape);
2591  builder_.add_out(out);
2592  builder_.add_in(in);
2593  return builder_.Finish();
2594 }
2595 
2597  using type = RepeatOp;
2598  static auto constexpr Create = CreateRepeatOp;
2599 };
2600 
2601 inline ::flatbuffers::Offset<RepeatOp> CreateRepeatOpDirect(
2602  ::flatbuffers::FlatBufferBuilder &_fbb,
2603  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2604  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2605  const std::vector<uint32_t> *shape = nullptr) {
2606  auto shape__ = shape ? _fbb.CreateVector<uint32_t>(*shape) : 0;
2608  _fbb,
2609  in,
2610  out,
2611  shape__);
2612 }
2613 
2614 struct SliceOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2616  struct Traits;
2617  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2618  VT_IN = 4,
2619  VT_OUT = 6,
2621  VT_ENDS = 10,
2622  VT_STEP = 12
2623  };
2624  const tt::target::TensorRef *in() const {
2625  return GetPointer<const tt::target::TensorRef *>(VT_IN);
2626  }
2627  const tt::target::TensorRef *out() const {
2628  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2629  }
2630  const ::flatbuffers::Vector<int64_t> *begins() const {
2631  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_BEGINS);
2632  }
2633  const ::flatbuffers::Vector<int64_t> *ends() const {
2634  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_ENDS);
2635  }
2636  const ::flatbuffers::Vector<int64_t> *step() const {
2637  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_STEP);
2638  }
2639  bool Verify(::flatbuffers::Verifier &verifier) const {
2640  return VerifyTableStart(verifier) &&
2641  VerifyOffset(verifier, VT_IN) &&
2642  verifier.VerifyTable(in()) &&
2643  VerifyOffset(verifier, VT_OUT) &&
2644  verifier.VerifyTable(out()) &&
2645  VerifyOffset(verifier, VT_BEGINS) &&
2646  verifier.VerifyVector(begins()) &&
2647  VerifyOffset(verifier, VT_ENDS) &&
2648  verifier.VerifyVector(ends()) &&
2649  VerifyOffset(verifier, VT_STEP) &&
2650  verifier.VerifyVector(step()) &&
2651  verifier.EndTable();
2652  }
2653 };
2654 
2656  typedef SliceOp Table;
2657  ::flatbuffers::FlatBufferBuilder &fbb_;
2658  ::flatbuffers::uoffset_t start_;
2659  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
2660  fbb_.AddOffset(SliceOp::VT_IN, in);
2661  }
2662  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2663  fbb_.AddOffset(SliceOp::VT_OUT, out);
2664  }
2665  void add_begins(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> begins) {
2666  fbb_.AddOffset(SliceOp::VT_BEGINS, begins);
2667  }
2668  void add_ends(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> ends) {
2669  fbb_.AddOffset(SliceOp::VT_ENDS, ends);
2670  }
2671  void add_step(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> step) {
2672  fbb_.AddOffset(SliceOp::VT_STEP, step);
2673  }
2674  explicit SliceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2675  : fbb_(_fbb) {
2676  start_ = fbb_.StartTable();
2677  }
2678  ::flatbuffers::Offset<SliceOp> Finish() {
2679  const auto end = fbb_.EndTable(start_);
2680  auto o = ::flatbuffers::Offset<SliceOp>(end);
2681  return o;
2682  }
2683 };
2684 
2685 inline ::flatbuffers::Offset<SliceOp> CreateSliceOp(
2686  ::flatbuffers::FlatBufferBuilder &_fbb,
2687  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2688  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2689  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> begins = 0,
2690  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> ends = 0,
2691  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> step = 0) {
2692  SliceOpBuilder builder_(_fbb);
2693  builder_.add_step(step);
2694  builder_.add_ends(ends);
2695  builder_.add_begins(begins);
2696  builder_.add_out(out);
2697  builder_.add_in(in);
2698  return builder_.Finish();
2699 }
2700 
2702  using type = SliceOp;
2703  static auto constexpr Create = CreateSliceOp;
2704 };
2705 
2706 inline ::flatbuffers::Offset<SliceOp> CreateSliceOpDirect(
2707  ::flatbuffers::FlatBufferBuilder &_fbb,
2708  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
2709  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
2710  const std::vector<int64_t> *begins = nullptr,
2711  const std::vector<int64_t> *ends = nullptr,
2712  const std::vector<int64_t> *step = nullptr) {
2713  auto begins__ = begins ? _fbb.CreateVector<int64_t>(*begins) : 0;
2714  auto ends__ = ends ? _fbb.CreateVector<int64_t>(*ends) : 0;
2715  auto step__ = step ? _fbb.CreateVector<int64_t>(*step) : 0;
2717  _fbb,
2718  in,
2719  out,
2720  begins__,
2721  ends__,
2722  step__);
2723 }
2724 
2725 struct LinearOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2727  struct Traits;
2728  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2729  VT_IN0 = 4,
2730  VT_IN1 = 6,
2731  VT_BIAS = 8,
2732  VT_OUT = 10
2733  };
2734  const tt::target::TensorRef *in0() const {
2735  return GetPointer<const tt::target::TensorRef *>(VT_IN0);
2736  }
2737  const tt::target::TensorRef *in1() const {
2738  return GetPointer<const tt::target::TensorRef *>(VT_IN1);
2739  }
2740  const tt::target::TensorRef *bias() const {
2741  return GetPointer<const tt::target::TensorRef *>(VT_BIAS);
2742  }
2743  const tt::target::TensorRef *out() const {
2744  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2745  }
2746  bool Verify(::flatbuffers::Verifier &verifier) const {
2747  return VerifyTableStart(verifier) &&
2748  VerifyOffset(verifier, VT_IN0) &&
2749  verifier.VerifyTable(in0()) &&
2750  VerifyOffset(verifier, VT_IN1) &&
2751  verifier.VerifyTable(in1()) &&
2752  VerifyOffset(verifier, VT_BIAS) &&
2753  verifier.VerifyTable(bias()) &&
2754  VerifyOffset(verifier, VT_OUT) &&
2755  verifier.VerifyTable(out()) &&
2756  verifier.EndTable();
2757  }
2758 };
2759 
2761  typedef LinearOp Table;
2762  ::flatbuffers::FlatBufferBuilder &fbb_;
2763  ::flatbuffers::uoffset_t start_;
2764  void add_in0(::flatbuffers::Offset<tt::target::TensorRef> in0) {
2765  fbb_.AddOffset(LinearOp::VT_IN0, in0);
2766  }
2767  void add_in1(::flatbuffers::Offset<tt::target::TensorRef> in1) {
2768  fbb_.AddOffset(LinearOp::VT_IN1, in1);
2769  }
2770  void add_bias(::flatbuffers::Offset<tt::target::TensorRef> bias) {
2771  fbb_.AddOffset(LinearOp::VT_BIAS, bias);
2772  }
2773  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2774  fbb_.AddOffset(LinearOp::VT_OUT, out);
2775  }
2776  explicit LinearOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2777  : fbb_(_fbb) {
2778  start_ = fbb_.StartTable();
2779  }
2780  ::flatbuffers::Offset<LinearOp> Finish() {
2781  const auto end = fbb_.EndTable(start_);
2782  auto o = ::flatbuffers::Offset<LinearOp>(end);
2783  return o;
2784  }
2785 };
2786 
2787 inline ::flatbuffers::Offset<LinearOp> CreateLinearOp(
2788  ::flatbuffers::FlatBufferBuilder &_fbb,
2789  ::flatbuffers::Offset<tt::target::TensorRef> in0 = 0,
2790  ::flatbuffers::Offset<tt::target::TensorRef> in1 = 0,
2791  ::flatbuffers::Offset<tt::target::TensorRef> bias = 0,
2792  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
2793  LinearOpBuilder builder_(_fbb);
2794  builder_.add_out(out);
2795  builder_.add_bias(bias);
2796  builder_.add_in1(in1);
2797  builder_.add_in0(in0);
2798  return builder_.Finish();
2799 }
2800 
2802  using type = LinearOp;
2803  static auto constexpr Create = CreateLinearOp;
2804 };
2805 
2806 struct MatmulOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2808  struct Traits;
2809  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2810  VT_IN0 = 4,
2811  VT_IN1 = 6,
2812  VT_OUT = 8
2813  };
2814  const tt::target::TensorRef *in0() const {
2815  return GetPointer<const tt::target::TensorRef *>(VT_IN0);
2816  }
2817  const tt::target::TensorRef *in1() const {
2818  return GetPointer<const tt::target::TensorRef *>(VT_IN1);
2819  }
2820  const tt::target::TensorRef *out() const {
2821  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2822  }
2823  bool Verify(::flatbuffers::Verifier &verifier) const {
2824  return VerifyTableStart(verifier) &&
2825  VerifyOffset(verifier, VT_IN0) &&
2826  verifier.VerifyTable(in0()) &&
2827  VerifyOffset(verifier, VT_IN1) &&
2828  verifier.VerifyTable(in1()) &&
2829  VerifyOffset(verifier, VT_OUT) &&
2830  verifier.VerifyTable(out()) &&
2831  verifier.EndTable();
2832  }
2833 };
2834 
2836  typedef MatmulOp Table;
2837  ::flatbuffers::FlatBufferBuilder &fbb_;
2838  ::flatbuffers::uoffset_t start_;
2839  void add_in0(::flatbuffers::Offset<tt::target::TensorRef> in0) {
2840  fbb_.AddOffset(MatmulOp::VT_IN0, in0);
2841  }
2842  void add_in1(::flatbuffers::Offset<tt::target::TensorRef> in1) {
2843  fbb_.AddOffset(MatmulOp::VT_IN1, in1);
2844  }
2845  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
2846  fbb_.AddOffset(MatmulOp::VT_OUT, out);
2847  }
2848  explicit MatmulOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2849  : fbb_(_fbb) {
2850  start_ = fbb_.StartTable();
2851  }
2852  ::flatbuffers::Offset<MatmulOp> Finish() {
2853  const auto end = fbb_.EndTable(start_);
2854  auto o = ::flatbuffers::Offset<MatmulOp>(end);
2855  return o;
2856  }
2857 };
2858 
2859 inline ::flatbuffers::Offset<MatmulOp> CreateMatmulOp(
2860  ::flatbuffers::FlatBufferBuilder &_fbb,
2861  ::flatbuffers::Offset<tt::target::TensorRef> in0 = 0,
2862  ::flatbuffers::Offset<tt::target::TensorRef> in1 = 0,
2863  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
2864  MatmulOpBuilder builder_(_fbb);
2865  builder_.add_out(out);
2866  builder_.add_in1(in1);
2867  builder_.add_in0(in0);
2868  return builder_.Finish();
2869 }
2870 
2872  using type = MatmulOp;
2873  static auto constexpr Create = CreateMatmulOp;
2874 };
2875 
2876 struct Conv2dOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2878  struct Traits;
2879  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2880  VT_INPUT = 4,
2881  VT_WEIGHT = 6,
2882  VT_BIAS = 8,
2883  VT_OUT = 10,
2884  VT_DEVICE = 12,
2898  VT_GROUPS = 40
2899  };
2900  const tt::target::TensorRef *input() const {
2901  return GetPointer<const tt::target::TensorRef *>(VT_INPUT);
2902  }
2903  const tt::target::TensorRef *weight() const {
2904  return GetPointer<const tt::target::TensorRef *>(VT_WEIGHT);
2905  }
2906  const tt::target::TensorRef *bias() const {
2907  return GetPointer<const tt::target::TensorRef *>(VT_BIAS);
2908  }
2909  const tt::target::TensorRef *out() const {
2910  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
2911  }
2912  const tt::target::DeviceRef *device() const {
2913  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
2914  }
2915  uint32_t in_channels() const {
2916  return GetField<uint32_t>(VT_IN_CHANNELS, 0);
2917  }
2918  uint32_t out_channels() const {
2919  return GetField<uint32_t>(VT_OUT_CHANNELS, 0);
2920  }
2921  uint32_t batch_size() const {
2922  return GetField<uint32_t>(VT_BATCH_SIZE, 0);
2923  }
2924  uint32_t input_height() const {
2925  return GetField<uint32_t>(VT_INPUT_HEIGHT, 0);
2926  }
2927  uint32_t input_width() const {
2928  return GetField<uint32_t>(VT_INPUT_WIDTH, 0);
2929  }
2930  uint32_t kernel_height() const {
2931  return GetField<uint32_t>(VT_KERNEL_HEIGHT, 0);
2932  }
2933  uint32_t kernel_width() const {
2934  return GetField<uint32_t>(VT_KERNEL_WIDTH, 0);
2935  }
2936  uint32_t stride_height() const {
2937  return GetField<uint32_t>(VT_STRIDE_HEIGHT, 0);
2938  }
2939  uint32_t stride_width() const {
2940  return GetField<uint32_t>(VT_STRIDE_WIDTH, 0);
2941  }
2942  uint32_t padding_height() const {
2943  return GetField<uint32_t>(VT_PADDING_HEIGHT, 0);
2944  }
2945  uint32_t padding_width() const {
2946  return GetField<uint32_t>(VT_PADDING_WIDTH, 0);
2947  }
2948  uint32_t dilation_height() const {
2949  return GetField<uint32_t>(VT_DILATION_HEIGHT, 0);
2950  }
2951  uint32_t dilation_width() const {
2952  return GetField<uint32_t>(VT_DILATION_WIDTH, 0);
2953  }
2954  uint32_t groups() const {
2955  return GetField<uint32_t>(VT_GROUPS, 0);
2956  }
2957  bool Verify(::flatbuffers::Verifier &verifier) const {
2958  return VerifyTableStart(verifier) &&
2959  VerifyOffset(verifier, VT_INPUT) &&
2960  verifier.VerifyTable(input()) &&
2961  VerifyOffset(verifier, VT_WEIGHT) &&
2962  verifier.VerifyTable(weight()) &&
2963  VerifyOffset(verifier, VT_BIAS) &&
2964  verifier.VerifyTable(bias()) &&
2965  VerifyOffset(verifier, VT_OUT) &&
2966  verifier.VerifyTable(out()) &&
2967  VerifyOffset(verifier, VT_DEVICE) &&
2968  verifier.VerifyTable(device()) &&
2969  VerifyField<uint32_t>(verifier, VT_IN_CHANNELS, 4) &&
2970  VerifyField<uint32_t>(verifier, VT_OUT_CHANNELS, 4) &&
2971  VerifyField<uint32_t>(verifier, VT_BATCH_SIZE, 4) &&
2972  VerifyField<uint32_t>(verifier, VT_INPUT_HEIGHT, 4) &&
2973  VerifyField<uint32_t>(verifier, VT_INPUT_WIDTH, 4) &&
2974  VerifyField<uint32_t>(verifier, VT_KERNEL_HEIGHT, 4) &&
2975  VerifyField<uint32_t>(verifier, VT_KERNEL_WIDTH, 4) &&
2976  VerifyField<uint32_t>(verifier, VT_STRIDE_HEIGHT, 4) &&
2977  VerifyField<uint32_t>(verifier, VT_STRIDE_WIDTH, 4) &&
2978  VerifyField<uint32_t>(verifier, VT_PADDING_HEIGHT, 4) &&
2979  VerifyField<uint32_t>(verifier, VT_PADDING_WIDTH, 4) &&
2980  VerifyField<uint32_t>(verifier, VT_DILATION_HEIGHT, 4) &&
2981  VerifyField<uint32_t>(verifier, VT_DILATION_WIDTH, 4) &&
2982  VerifyField<uint32_t>(verifier, VT_GROUPS, 4) &&
2983  verifier.EndTable();
2984  }
2985 };
2986 
2988  typedef Conv2dOp Table;
2989  ::flatbuffers::FlatBufferBuilder &fbb_;
2990  ::flatbuffers::uoffset_t start_;
2991  void add_input(::flatbuffers::Offset<tt::target::TensorRef> input) {
2992  fbb_.AddOffset(Conv2dOp::VT_INPUT, input);
2993  }
2994  void add_weight(::flatbuffers::Offset<tt::target::TensorRef> weight) {
2995  fbb_.AddOffset(Conv2dOp::VT_WEIGHT, weight);
2996  }
2997  void add_bias(::flatbuffers::Offset<tt::target::TensorRef> bias) {
2998  fbb_.AddOffset(Conv2dOp::VT_BIAS, bias);
2999  }
3000  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
3001  fbb_.AddOffset(Conv2dOp::VT_OUT, out);
3002  }
3003  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
3004  fbb_.AddOffset(Conv2dOp::VT_DEVICE, device);
3005  }
3006  void add_in_channels(uint32_t in_channels) {
3007  fbb_.AddElement<uint32_t>(Conv2dOp::VT_IN_CHANNELS, in_channels, 0);
3008  }
3009  void add_out_channels(uint32_t out_channels) {
3010  fbb_.AddElement<uint32_t>(Conv2dOp::VT_OUT_CHANNELS, out_channels, 0);
3011  }
3012  void add_batch_size(uint32_t batch_size) {
3013  fbb_.AddElement<uint32_t>(Conv2dOp::VT_BATCH_SIZE, batch_size, 0);
3014  }
3015  void add_input_height(uint32_t input_height) {
3016  fbb_.AddElement<uint32_t>(Conv2dOp::VT_INPUT_HEIGHT, input_height, 0);
3017  }
3018  void add_input_width(uint32_t input_width) {
3019  fbb_.AddElement<uint32_t>(Conv2dOp::VT_INPUT_WIDTH, input_width, 0);
3020  }
3021  void add_kernel_height(uint32_t kernel_height) {
3022  fbb_.AddElement<uint32_t>(Conv2dOp::VT_KERNEL_HEIGHT, kernel_height, 0);
3023  }
3024  void add_kernel_width(uint32_t kernel_width) {
3025  fbb_.AddElement<uint32_t>(Conv2dOp::VT_KERNEL_WIDTH, kernel_width, 0);
3026  }
3027  void add_stride_height(uint32_t stride_height) {
3028  fbb_.AddElement<uint32_t>(Conv2dOp::VT_STRIDE_HEIGHT, stride_height, 0);
3029  }
3030  void add_stride_width(uint32_t stride_width) {
3031  fbb_.AddElement<uint32_t>(Conv2dOp::VT_STRIDE_WIDTH, stride_width, 0);
3032  }
3033  void add_padding_height(uint32_t padding_height) {
3034  fbb_.AddElement<uint32_t>(Conv2dOp::VT_PADDING_HEIGHT, padding_height, 0);
3035  }
3036  void add_padding_width(uint32_t padding_width) {
3037  fbb_.AddElement<uint32_t>(Conv2dOp::VT_PADDING_WIDTH, padding_width, 0);
3038  }
3039  void add_dilation_height(uint32_t dilation_height) {
3040  fbb_.AddElement<uint32_t>(Conv2dOp::VT_DILATION_HEIGHT, dilation_height, 0);
3041  }
3042  void add_dilation_width(uint32_t dilation_width) {
3043  fbb_.AddElement<uint32_t>(Conv2dOp::VT_DILATION_WIDTH, dilation_width, 0);
3044  }
3045  void add_groups(uint32_t groups) {
3046  fbb_.AddElement<uint32_t>(Conv2dOp::VT_GROUPS, groups, 0);
3047  }
3048  explicit Conv2dOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3049  : fbb_(_fbb) {
3050  start_ = fbb_.StartTable();
3051  }
3052  ::flatbuffers::Offset<Conv2dOp> Finish() {
3053  const auto end = fbb_.EndTable(start_);
3054  auto o = ::flatbuffers::Offset<Conv2dOp>(end);
3055  return o;
3056  }
3057 };
3058 
3059 inline ::flatbuffers::Offset<Conv2dOp> CreateConv2dOp(
3060  ::flatbuffers::FlatBufferBuilder &_fbb,
3061  ::flatbuffers::Offset<tt::target::TensorRef> input = 0,
3062  ::flatbuffers::Offset<tt::target::TensorRef> weight = 0,
3063  ::flatbuffers::Offset<tt::target::TensorRef> bias = 0,
3064  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
3065  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
3066  uint32_t in_channels = 0,
3067  uint32_t out_channels = 0,
3068  uint32_t batch_size = 0,
3069  uint32_t input_height = 0,
3070  uint32_t input_width = 0,
3071  uint32_t kernel_height = 0,
3072  uint32_t kernel_width = 0,
3073  uint32_t stride_height = 0,
3074  uint32_t stride_width = 0,
3075  uint32_t padding_height = 0,
3076  uint32_t padding_width = 0,
3077  uint32_t dilation_height = 0,
3078  uint32_t dilation_width = 0,
3079  uint32_t groups = 0) {
3080  Conv2dOpBuilder builder_(_fbb);
3081  builder_.add_groups(groups);
3082  builder_.add_dilation_width(dilation_width);
3083  builder_.add_dilation_height(dilation_height);
3084  builder_.add_padding_width(padding_width);
3085  builder_.add_padding_height(padding_height);
3086  builder_.add_stride_width(stride_width);
3087  builder_.add_stride_height(stride_height);
3088  builder_.add_kernel_width(kernel_width);
3089  builder_.add_kernel_height(kernel_height);
3090  builder_.add_input_width(input_width);
3091  builder_.add_input_height(input_height);
3092  builder_.add_batch_size(batch_size);
3093  builder_.add_out_channels(out_channels);
3094  builder_.add_in_channels(in_channels);
3095  builder_.add_device(device);
3096  builder_.add_out(out);
3097  builder_.add_bias(bias);
3098  builder_.add_weight(weight);
3099  builder_.add_input(input);
3100  return builder_.Finish();
3101 }
3102 
3104  using type = Conv2dOp;
3105  static auto constexpr Create = CreateConv2dOp;
3106 };
3107 
3108 struct ConvTranspose2dOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
3110  struct Traits;
3111  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
3112  VT_INPUT = 4,
3113  VT_WEIGHT = 6,
3114  VT_BIAS = 8,
3115  VT_OUT = 10,
3116  VT_DEVICE = 12,
3117  VT_IN_CHANNELS = 14,
3118  VT_OUT_CHANNELS = 16,
3119  VT_BATCH_SIZE = 18,
3120  VT_INPUT_HEIGHT = 20,
3121  VT_INPUT_WIDTH = 22,
3127  VT_GROUPS = 34
3128  };
3129  const tt::target::TensorRef *input() const {
3130  return GetPointer<const tt::target::TensorRef *>(VT_INPUT);
3131  }
3132  const tt::target::TensorRef *weight() const {
3133  return GetPointer<const tt::target::TensorRef *>(VT_WEIGHT);
3134  }
3135  const tt::target::TensorRef *bias() const {
3136  return GetPointer<const tt::target::TensorRef *>(VT_BIAS);
3137  }
3138  const tt::target::TensorRef *out() const {
3139  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
3140  }
3141  const tt::target::DeviceRef *device() const {
3142  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
3143  }
3144  uint32_t in_channels() const {
3145  return GetField<uint32_t>(VT_IN_CHANNELS, 0);
3146  }
3147  uint32_t out_channels() const {
3148  return GetField<uint32_t>(VT_OUT_CHANNELS, 0);
3149  }
3150  uint32_t batch_size() const {
3151  return GetField<uint32_t>(VT_BATCH_SIZE, 0);
3152  }
3153  uint32_t input_height() const {
3154  return GetField<uint32_t>(VT_INPUT_HEIGHT, 0);
3155  }
3156  uint32_t input_width() const {
3157  return GetField<uint32_t>(VT_INPUT_WIDTH, 0);
3158  }
3159  const ::flatbuffers::Vector<int32_t> *kernel_size() const {
3160  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_KERNEL_SIZE);
3161  }
3162  const ::flatbuffers::Vector<int32_t> *stride() const {
3163  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_STRIDE);
3164  }
3165  const ::flatbuffers::Vector<int32_t> *padding() const {
3166  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_PADDING);
3167  }
3168  const ::flatbuffers::Vector<int32_t> *output_padding() const {
3169  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_OUTPUT_PADDING);
3170  }
3171  const ::flatbuffers::Vector<int32_t> *dilation() const {
3172  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_DILATION);
3173  }
3174  uint32_t groups() const {
3175  return GetField<uint32_t>(VT_GROUPS, 0);
3176  }
3177  bool Verify(::flatbuffers::Verifier &verifier) const {
3178  return VerifyTableStart(verifier) &&
3179  VerifyOffset(verifier, VT_INPUT) &&
3180  verifier.VerifyTable(input()) &&
3181  VerifyOffset(verifier, VT_WEIGHT) &&
3182  verifier.VerifyTable(weight()) &&
3183  VerifyOffset(verifier, VT_BIAS) &&
3184  verifier.VerifyTable(bias()) &&
3185  VerifyOffset(verifier, VT_OUT) &&
3186  verifier.VerifyTable(out()) &&
3187  VerifyOffset(verifier, VT_DEVICE) &&
3188  verifier.VerifyTable(device()) &&
3189  VerifyField<uint32_t>(verifier, VT_IN_CHANNELS, 4) &&
3190  VerifyField<uint32_t>(verifier, VT_OUT_CHANNELS, 4) &&
3191  VerifyField<uint32_t>(verifier, VT_BATCH_SIZE, 4) &&
3192  VerifyField<uint32_t>(verifier, VT_INPUT_HEIGHT, 4) &&
3193  VerifyField<uint32_t>(verifier, VT_INPUT_WIDTH, 4) &&
3194  VerifyOffset(verifier, VT_KERNEL_SIZE) &&
3195  verifier.VerifyVector(kernel_size()) &&
3196  VerifyOffset(verifier, VT_STRIDE) &&
3197  verifier.VerifyVector(stride()) &&
3198  VerifyOffset(verifier, VT_PADDING) &&
3199  verifier.VerifyVector(padding()) &&
3200  VerifyOffset(verifier, VT_OUTPUT_PADDING) &&
3201  verifier.VerifyVector(output_padding()) &&
3202  VerifyOffset(verifier, VT_DILATION) &&
3203  verifier.VerifyVector(dilation()) &&
3204  VerifyField<uint32_t>(verifier, VT_GROUPS, 4) &&
3205  verifier.EndTable();
3206  }
3207 };
3208 
3211  ::flatbuffers::FlatBufferBuilder &fbb_;
3212  ::flatbuffers::uoffset_t start_;
3213  void add_input(::flatbuffers::Offset<tt::target::TensorRef> input) {
3214  fbb_.AddOffset(ConvTranspose2dOp::VT_INPUT, input);
3215  }
3216  void add_weight(::flatbuffers::Offset<tt::target::TensorRef> weight) {
3217  fbb_.AddOffset(ConvTranspose2dOp::VT_WEIGHT, weight);
3218  }
3219  void add_bias(::flatbuffers::Offset<tt::target::TensorRef> bias) {
3220  fbb_.AddOffset(ConvTranspose2dOp::VT_BIAS, bias);
3221  }
3222  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
3223  fbb_.AddOffset(ConvTranspose2dOp::VT_OUT, out);
3224  }
3225  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
3226  fbb_.AddOffset(ConvTranspose2dOp::VT_DEVICE, device);
3227  }
3228  void add_in_channels(uint32_t in_channels) {
3229  fbb_.AddElement<uint32_t>(ConvTranspose2dOp::VT_IN_CHANNELS, in_channels, 0);
3230  }
3231  void add_out_channels(uint32_t out_channels) {
3232  fbb_.AddElement<uint32_t>(ConvTranspose2dOp::VT_OUT_CHANNELS, out_channels, 0);
3233  }
3234  void add_batch_size(uint32_t batch_size) {
3235  fbb_.AddElement<uint32_t>(ConvTranspose2dOp::VT_BATCH_SIZE, batch_size, 0);
3236  }
3237  void add_input_height(uint32_t input_height) {
3238  fbb_.AddElement<uint32_t>(ConvTranspose2dOp::VT_INPUT_HEIGHT, input_height, 0);
3239  }
3240  void add_input_width(uint32_t input_width) {
3241  fbb_.AddElement<uint32_t>(ConvTranspose2dOp::VT_INPUT_WIDTH, input_width, 0);
3242  }
3243  void add_kernel_size(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> kernel_size) {
3244  fbb_.AddOffset(ConvTranspose2dOp::VT_KERNEL_SIZE, kernel_size);
3245  }
3246  void add_stride(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> stride) {
3247  fbb_.AddOffset(ConvTranspose2dOp::VT_STRIDE, stride);
3248  }
3249  void add_padding(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> padding) {
3250  fbb_.AddOffset(ConvTranspose2dOp::VT_PADDING, padding);
3251  }
3252  void add_output_padding(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> output_padding) {
3253  fbb_.AddOffset(ConvTranspose2dOp::VT_OUTPUT_PADDING, output_padding);
3254  }
3255  void add_dilation(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> dilation) {
3256  fbb_.AddOffset(ConvTranspose2dOp::VT_DILATION, dilation);
3257  }
3258  void add_groups(uint32_t groups) {
3259  fbb_.AddElement<uint32_t>(ConvTranspose2dOp::VT_GROUPS, groups, 0);
3260  }
3261  explicit ConvTranspose2dOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3262  : fbb_(_fbb) {
3263  start_ = fbb_.StartTable();
3264  }
3265  ::flatbuffers::Offset<ConvTranspose2dOp> Finish() {
3266  const auto end = fbb_.EndTable(start_);
3267  auto o = ::flatbuffers::Offset<ConvTranspose2dOp>(end);
3268  return o;
3269  }
3270 };
3271 
3272 inline ::flatbuffers::Offset<ConvTranspose2dOp> CreateConvTranspose2dOp(
3273  ::flatbuffers::FlatBufferBuilder &_fbb,
3274  ::flatbuffers::Offset<tt::target::TensorRef> input = 0,
3275  ::flatbuffers::Offset<tt::target::TensorRef> weight = 0,
3276  ::flatbuffers::Offset<tt::target::TensorRef> bias = 0,
3277  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
3278  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
3279  uint32_t in_channels = 0,
3280  uint32_t out_channels = 0,
3281  uint32_t batch_size = 0,
3282  uint32_t input_height = 0,
3283  uint32_t input_width = 0,
3284  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> kernel_size = 0,
3285  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> stride = 0,
3286  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> padding = 0,
3287  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> output_padding = 0,
3288  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> dilation = 0,
3289  uint32_t groups = 0) {
3290  ConvTranspose2dOpBuilder builder_(_fbb);
3291  builder_.add_groups(groups);
3292  builder_.add_dilation(dilation);
3293  builder_.add_output_padding(output_padding);
3294  builder_.add_padding(padding);
3295  builder_.add_stride(stride);
3296  builder_.add_kernel_size(kernel_size);
3297  builder_.add_input_width(input_width);
3298  builder_.add_input_height(input_height);
3299  builder_.add_batch_size(batch_size);
3300  builder_.add_out_channels(out_channels);
3301  builder_.add_in_channels(in_channels);
3302  builder_.add_device(device);
3303  builder_.add_out(out);
3304  builder_.add_bias(bias);
3305  builder_.add_weight(weight);
3306  builder_.add_input(input);
3307  return builder_.Finish();
3308 }
3309 
3312  static auto constexpr Create = CreateConvTranspose2dOp;
3313 };
3314 
3315 inline ::flatbuffers::Offset<ConvTranspose2dOp> CreateConvTranspose2dOpDirect(
3316  ::flatbuffers::FlatBufferBuilder &_fbb,
3317  ::flatbuffers::Offset<tt::target::TensorRef> input = 0,
3318  ::flatbuffers::Offset<tt::target::TensorRef> weight = 0,
3319  ::flatbuffers::Offset<tt::target::TensorRef> bias = 0,
3320  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
3321  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
3322  uint32_t in_channels = 0,
3323  uint32_t out_channels = 0,
3324  uint32_t batch_size = 0,
3325  uint32_t input_height = 0,
3326  uint32_t input_width = 0,
3327  const std::vector<int32_t> *kernel_size = nullptr,
3328  const std::vector<int32_t> *stride = nullptr,
3329  const std::vector<int32_t> *padding = nullptr,
3330  const std::vector<int32_t> *output_padding = nullptr,
3331  const std::vector<int32_t> *dilation = nullptr,
3332  uint32_t groups = 0) {
3333  auto kernel_size__ = kernel_size ? _fbb.CreateVector<int32_t>(*kernel_size) : 0;
3334  auto stride__ = stride ? _fbb.CreateVector<int32_t>(*stride) : 0;
3335  auto padding__ = padding ? _fbb.CreateVector<int32_t>(*padding) : 0;
3336  auto output_padding__ = output_padding ? _fbb.CreateVector<int32_t>(*output_padding) : 0;
3337  auto dilation__ = dilation ? _fbb.CreateVector<int32_t>(*dilation) : 0;
3339  _fbb,
3340  input,
3341  weight,
3342  bias,
3343  out,
3344  device,
3345  in_channels,
3346  out_channels,
3347  batch_size,
3348  input_height,
3349  input_width,
3350  kernel_size__,
3351  stride__,
3352  padding__,
3353  output_padding__,
3354  dilation__,
3355  groups);
3356 }
3357 
3358 struct MaxPool2dOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
3360  struct Traits;
3361  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
3362  VT_IN = 4,
3363  VT_OUT = 6,
3364  VT_DEVICE = 8,
3365  VT_BATCH_SIZE = 10,
3366  VT_INPUT_HEIGHT = 12,
3367  VT_INPUT_WIDTH = 14,
3369  VT_KERNEL_HEIGHT = 18,
3370  VT_KERNEL_WIDTH = 20,
3371  VT_STRIDE_HEIGHT = 22,
3372  VT_STRIDE_WIDTH = 24,
3373  VT_DILATION_HEIGHT = 26,
3374  VT_DILATION_WIDTH = 28,
3376  VT_PADDING_HEIGHT = 32,
3377  VT_PADDING_WIDTH = 34
3378  };
3379  const tt::target::TensorRef *in() const {
3380  return GetPointer<const tt::target::TensorRef *>(VT_IN);
3381  }
3382  const tt::target::TensorRef *out() const {
3383  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
3384  }
3385  const tt::target::DeviceRef *device() const {
3386  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
3387  }
3388  uint32_t batch_size() const {
3389  return GetField<uint32_t>(VT_BATCH_SIZE, 0);
3390  }
3391  uint32_t input_height() const {
3392  return GetField<uint32_t>(VT_INPUT_HEIGHT, 0);
3393  }
3394  uint32_t input_width() const {
3395  return GetField<uint32_t>(VT_INPUT_WIDTH, 0);
3396  }
3397  uint32_t channels() const {
3398  return GetField<uint32_t>(VT_CHANNELS, 0);
3399  }
3400  uint32_t kernel_height() const {
3401  return GetField<uint32_t>(VT_KERNEL_HEIGHT, 0);
3402  }
3403  uint32_t kernel_width() const {
3404  return GetField<uint32_t>(VT_KERNEL_WIDTH, 0);
3405  }
3406  uint32_t stride_height() const {
3407  return GetField<uint32_t>(VT_STRIDE_HEIGHT, 0);
3408  }
3409  uint32_t stride_width() const {
3410  return GetField<uint32_t>(VT_STRIDE_WIDTH, 0);
3411  }
3412  uint32_t dilation_height() const {
3413  return GetField<uint32_t>(VT_DILATION_HEIGHT, 0);
3414  }
3415  uint32_t dilation_width() const {
3416  return GetField<uint32_t>(VT_DILATION_WIDTH, 0);
3417  }
3418  bool ceil_mode() const {
3419  return GetField<uint8_t>(VT_CEIL_MODE, 0) != 0;
3420  }
3421  uint32_t padding_height() const {
3422  return GetField<uint32_t>(VT_PADDING_HEIGHT, 0);
3423  }
3424  uint32_t padding_width() const {
3425  return GetField<uint32_t>(VT_PADDING_WIDTH, 0);
3426  }
3427  bool Verify(::flatbuffers::Verifier &verifier) const {
3428  return VerifyTableStart(verifier) &&
3429  VerifyOffset(verifier, VT_IN) &&
3430  verifier.VerifyTable(in()) &&
3431  VerifyOffset(verifier, VT_OUT) &&
3432  verifier.VerifyTable(out()) &&
3433  VerifyOffset(verifier, VT_DEVICE) &&
3434  verifier.VerifyTable(device()) &&
3435  VerifyField<uint32_t>(verifier, VT_BATCH_SIZE, 4) &&
3436  VerifyField<uint32_t>(verifier, VT_INPUT_HEIGHT, 4) &&
3437  VerifyField<uint32_t>(verifier, VT_INPUT_WIDTH, 4) &&
3438  VerifyField<uint32_t>(verifier, VT_CHANNELS, 4) &&
3439  VerifyField<uint32_t>(verifier, VT_KERNEL_HEIGHT, 4) &&
3440  VerifyField<uint32_t>(verifier, VT_KERNEL_WIDTH, 4) &&
3441  VerifyField<uint32_t>(verifier, VT_STRIDE_HEIGHT, 4) &&
3442  VerifyField<uint32_t>(verifier, VT_STRIDE_WIDTH, 4) &&
3443  VerifyField<uint32_t>(verifier, VT_DILATION_HEIGHT, 4) &&
3444  VerifyField<uint32_t>(verifier, VT_DILATION_WIDTH, 4) &&
3445  VerifyField<uint8_t>(verifier, VT_CEIL_MODE, 1) &&
3446  VerifyField<uint32_t>(verifier, VT_PADDING_HEIGHT, 4) &&
3447  VerifyField<uint32_t>(verifier, VT_PADDING_WIDTH, 4) &&
3448  verifier.EndTable();
3449  }
3450 };
3451 
3454  ::flatbuffers::FlatBufferBuilder &fbb_;
3455  ::flatbuffers::uoffset_t start_;
3456  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
3457  fbb_.AddOffset(MaxPool2dOp::VT_IN, in);
3458  }
3459  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
3460  fbb_.AddOffset(MaxPool2dOp::VT_OUT, out);
3461  }
3462  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
3463  fbb_.AddOffset(MaxPool2dOp::VT_DEVICE, device);
3464  }
3465  void add_batch_size(uint32_t batch_size) {
3466  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_BATCH_SIZE, batch_size, 0);
3467  }
3468  void add_input_height(uint32_t input_height) {
3469  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_INPUT_HEIGHT, input_height, 0);
3470  }
3471  void add_input_width(uint32_t input_width) {
3472  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_INPUT_WIDTH, input_width, 0);
3473  }
3474  void add_channels(uint32_t channels) {
3475  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_CHANNELS, channels, 0);
3476  }
3477  void add_kernel_height(uint32_t kernel_height) {
3478  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_KERNEL_HEIGHT, kernel_height, 0);
3479  }
3480  void add_kernel_width(uint32_t kernel_width) {
3481  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_KERNEL_WIDTH, kernel_width, 0);
3482  }
3483  void add_stride_height(uint32_t stride_height) {
3484  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_STRIDE_HEIGHT, stride_height, 0);
3485  }
3486  void add_stride_width(uint32_t stride_width) {
3487  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_STRIDE_WIDTH, stride_width, 0);
3488  }
3489  void add_dilation_height(uint32_t dilation_height) {
3490  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_DILATION_HEIGHT, dilation_height, 0);
3491  }
3492  void add_dilation_width(uint32_t dilation_width) {
3493  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_DILATION_WIDTH, dilation_width, 0);
3494  }
3495  void add_ceil_mode(bool ceil_mode) {
3496  fbb_.AddElement<uint8_t>(MaxPool2dOp::VT_CEIL_MODE, static_cast<uint8_t>(ceil_mode), 0);
3497  }
3498  void add_padding_height(uint32_t padding_height) {
3499  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_PADDING_HEIGHT, padding_height, 0);
3500  }
3501  void add_padding_width(uint32_t padding_width) {
3502  fbb_.AddElement<uint32_t>(MaxPool2dOp::VT_PADDING_WIDTH, padding_width, 0);
3503  }
3504  explicit MaxPool2dOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3505  : fbb_(_fbb) {
3506  start_ = fbb_.StartTable();
3507  }
3508  ::flatbuffers::Offset<MaxPool2dOp> Finish() {
3509  const auto end = fbb_.EndTable(start_);
3510  auto o = ::flatbuffers::Offset<MaxPool2dOp>(end);
3511  return o;
3512  }
3513 };
3514 
3515 inline ::flatbuffers::Offset<MaxPool2dOp> CreateMaxPool2dOp(
3516  ::flatbuffers::FlatBufferBuilder &_fbb,
3517  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
3518  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
3519  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
3520  uint32_t batch_size = 0,
3521  uint32_t input_height = 0,
3522  uint32_t input_width = 0,
3523  uint32_t channels = 0,
3524  uint32_t kernel_height = 0,
3525  uint32_t kernel_width = 0,
3526  uint32_t stride_height = 0,
3527  uint32_t stride_width = 0,
3528  uint32_t dilation_height = 0,
3529  uint32_t dilation_width = 0,
3530  bool ceil_mode = false,
3531  uint32_t padding_height = 0,
3532  uint32_t padding_width = 0) {
3533  MaxPool2dOpBuilder builder_(_fbb);
3534  builder_.add_padding_width(padding_width);
3535  builder_.add_padding_height(padding_height);
3536  builder_.add_dilation_width(dilation_width);
3537  builder_.add_dilation_height(dilation_height);
3538  builder_.add_stride_width(stride_width);
3539  builder_.add_stride_height(stride_height);
3540  builder_.add_kernel_width(kernel_width);
3541  builder_.add_kernel_height(kernel_height);
3542  builder_.add_channels(channels);
3543  builder_.add_input_width(input_width);
3544  builder_.add_input_height(input_height);
3545  builder_.add_batch_size(batch_size);
3546  builder_.add_device(device);
3547  builder_.add_out(out);
3548  builder_.add_in(in);
3549  builder_.add_ceil_mode(ceil_mode);
3550  return builder_.Finish();
3551 }
3552 
3555  static auto constexpr Create = CreateMaxPool2dOp;
3556 };
3557 
3558 struct DeallocateOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
3560  struct Traits;
3561  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
3562  VT_IN = 4,
3563  VT_FORCE = 6
3564  };
3565  const tt::target::TensorRef *in() const {
3566  return GetPointer<const tt::target::TensorRef *>(VT_IN);
3567  }
3568  bool force() const {
3569  return GetField<uint8_t>(VT_FORCE, 0) != 0;
3570  }
3571  bool Verify(::flatbuffers::Verifier &verifier) const {
3572  return VerifyTableStart(verifier) &&
3573  VerifyOffset(verifier, VT_IN) &&
3574  verifier.VerifyTable(in()) &&
3575  VerifyField<uint8_t>(verifier, VT_FORCE, 1) &&
3576  verifier.EndTable();
3577  }
3578 };
3579 
3582  ::flatbuffers::FlatBufferBuilder &fbb_;
3583  ::flatbuffers::uoffset_t start_;
3584  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
3585  fbb_.AddOffset(DeallocateOp::VT_IN, in);
3586  }
3587  void add_force(bool force) {
3588  fbb_.AddElement<uint8_t>(DeallocateOp::VT_FORCE, static_cast<uint8_t>(force), 0);
3589  }
3590  explicit DeallocateOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3591  : fbb_(_fbb) {
3592  start_ = fbb_.StartTable();
3593  }
3594  ::flatbuffers::Offset<DeallocateOp> Finish() {
3595  const auto end = fbb_.EndTable(start_);
3596  auto o = ::flatbuffers::Offset<DeallocateOp>(end);
3597  return o;
3598  }
3599 };
3600 
3601 inline ::flatbuffers::Offset<DeallocateOp> CreateDeallocateOp(
3602  ::flatbuffers::FlatBufferBuilder &_fbb,
3603  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
3604  bool force = false) {
3605  DeallocateOpBuilder builder_(_fbb);
3606  builder_.add_in(in);
3607  builder_.add_force(force);
3608  return builder_.Finish();
3609 }
3610 
3613  static auto constexpr Create = CreateDeallocateOp;
3614 };
3615 
3616 struct AllGatherOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
3618  struct Traits;
3619  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
3620  VT_IN = 4,
3621  VT_OUT = 6,
3622  VT_DEVICE = 8,
3623  VT_DIM = 10,
3624  VT_NUM_LINKS = 12
3625  };
3626  const tt::target::TensorRef *in() const {
3627  return GetPointer<const tt::target::TensorRef *>(VT_IN);
3628  }
3629  const tt::target::TensorRef *out() const {
3630  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
3631  }
3632  const tt::target::DeviceRef *device() const {
3633  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
3634  }
3635  uint32_t dim() const {
3636  return GetField<uint32_t>(VT_DIM, 0);
3637  }
3638  uint32_t num_links() const {
3639  return GetField<uint32_t>(VT_NUM_LINKS, 0);
3640  }
3641  bool Verify(::flatbuffers::Verifier &verifier) const {
3642  return VerifyTableStart(verifier) &&
3643  VerifyOffset(verifier, VT_IN) &&
3644  verifier.VerifyTable(in()) &&
3645  VerifyOffset(verifier, VT_OUT) &&
3646  verifier.VerifyTable(out()) &&
3647  VerifyOffset(verifier, VT_DEVICE) &&
3648  verifier.VerifyTable(device()) &&
3649  VerifyField<uint32_t>(verifier, VT_DIM, 4) &&
3650  VerifyField<uint32_t>(verifier, VT_NUM_LINKS, 4) &&
3651  verifier.EndTable();
3652  }
3653 };
3654 
3657  ::flatbuffers::FlatBufferBuilder &fbb_;
3658  ::flatbuffers::uoffset_t start_;
3659  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
3660  fbb_.AddOffset(AllGatherOp::VT_IN, in);
3661  }
3662  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
3663  fbb_.AddOffset(AllGatherOp::VT_OUT, out);
3664  }
3665  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
3666  fbb_.AddOffset(AllGatherOp::VT_DEVICE, device);
3667  }
3668  void add_dim(uint32_t dim) {
3669  fbb_.AddElement<uint32_t>(AllGatherOp::VT_DIM, dim, 0);
3670  }
3671  void add_num_links(uint32_t num_links) {
3672  fbb_.AddElement<uint32_t>(AllGatherOp::VT_NUM_LINKS, num_links, 0);
3673  }
3674  explicit AllGatherOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3675  : fbb_(_fbb) {
3676  start_ = fbb_.StartTable();
3677  }
3678  ::flatbuffers::Offset<AllGatherOp> Finish() {
3679  const auto end = fbb_.EndTable(start_);
3680  auto o = ::flatbuffers::Offset<AllGatherOp>(end);
3681  return o;
3682  }
3683 };
3684 
3685 inline ::flatbuffers::Offset<AllGatherOp> CreateAllGatherOp(
3686  ::flatbuffers::FlatBufferBuilder &_fbb,
3687  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
3688  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
3689  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
3690  uint32_t dim = 0,
3691  uint32_t num_links = 0) {
3692  AllGatherOpBuilder builder_(_fbb);
3693  builder_.add_num_links(num_links);
3694  builder_.add_dim(dim);
3695  builder_.add_device(device);
3696  builder_.add_out(out);
3697  builder_.add_in(in);
3698  return builder_.Finish();
3699 }
3700 
3703  static auto constexpr Create = CreateAllGatherOp;
3704 };
3705 
3706 struct PermuteOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
3708  struct Traits;
3709  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
3710  VT_IN = 4,
3714  VT_OUT = 12
3715  };
3716  const tt::target::TensorRef *in() const {
3717  return GetPointer<const tt::target::TensorRef *>(VT_IN);
3718  }
3719  const ::flatbuffers::Vector<int64_t> *permutation() const {
3720  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_PERMUTATION);
3721  }
3722  const tt::target::MemoryConfigDesc *memory_config() const {
3723  return GetPointer<const tt::target::MemoryConfigDesc *>(VT_MEMORY_CONFIG);
3724  }
3725  float pad_value() const {
3726  return GetField<float>(VT_PAD_VALUE, 0.0f);
3727  }
3728  const tt::target::TensorRef *out() const {
3729  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
3730  }
3731  bool Verify(::flatbuffers::Verifier &verifier) const {
3732  return VerifyTableStart(verifier) &&
3733  VerifyOffset(verifier, VT_IN) &&
3734  verifier.VerifyTable(in()) &&
3735  VerifyOffset(verifier, VT_PERMUTATION) &&
3736  verifier.VerifyVector(permutation()) &&
3737  VerifyOffset(verifier, VT_MEMORY_CONFIG) &&
3738  verifier.VerifyTable(memory_config()) &&
3739  VerifyField<float>(verifier, VT_PAD_VALUE, 4) &&
3740  VerifyOffset(verifier, VT_OUT) &&
3741  verifier.VerifyTable(out()) &&
3742  verifier.EndTable();
3743  }
3744 };
3745 
3747  typedef PermuteOp Table;
3748  ::flatbuffers::FlatBufferBuilder &fbb_;
3749  ::flatbuffers::uoffset_t start_;
3750  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
3751  fbb_.AddOffset(PermuteOp::VT_IN, in);
3752  }
3753  void add_permutation(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> permutation) {
3754  fbb_.AddOffset(PermuteOp::VT_PERMUTATION, permutation);
3755  }
3756  void add_memory_config(::flatbuffers::Offset<tt::target::MemoryConfigDesc> memory_config) {
3757  fbb_.AddOffset(PermuteOp::VT_MEMORY_CONFIG, memory_config);
3758  }
3759  void add_pad_value(float pad_value) {
3760  fbb_.AddElement<float>(PermuteOp::VT_PAD_VALUE, pad_value, 0.0f);
3761  }
3762  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
3763  fbb_.AddOffset(PermuteOp::VT_OUT, out);
3764  }
3765  explicit PermuteOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3766  : fbb_(_fbb) {
3767  start_ = fbb_.StartTable();
3768  }
3769  ::flatbuffers::Offset<PermuteOp> Finish() {
3770  const auto end = fbb_.EndTable(start_);
3771  auto o = ::flatbuffers::Offset<PermuteOp>(end);
3772  return o;
3773  }
3774 };
3775 
3776 inline ::flatbuffers::Offset<PermuteOp> CreatePermuteOp(
3777  ::flatbuffers::FlatBufferBuilder &_fbb,
3778  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
3779  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> permutation = 0,
3780  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memory_config = 0,
3781  float pad_value = 0.0f,
3782  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
3783  PermuteOpBuilder builder_(_fbb);
3784  builder_.add_out(out);
3785  builder_.add_pad_value(pad_value);
3786  builder_.add_memory_config(memory_config);
3787  builder_.add_permutation(permutation);
3788  builder_.add_in(in);
3789  return builder_.Finish();
3790 }
3791 
3793  using type = PermuteOp;
3794  static auto constexpr Create = CreatePermuteOp;
3795 };
3796 
3797 inline ::flatbuffers::Offset<PermuteOp> CreatePermuteOpDirect(
3798  ::flatbuffers::FlatBufferBuilder &_fbb,
3799  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
3800  const std::vector<int64_t> *permutation = nullptr,
3801  ::flatbuffers::Offset<tt::target::MemoryConfigDesc> memory_config = 0,
3802  float pad_value = 0.0f,
3803  ::flatbuffers::Offset<tt::target::TensorRef> out = 0) {
3804  auto permutation__ = permutation ? _fbb.CreateVector<int64_t>(*permutation) : 0;
3806  _fbb,
3807  in,
3808  permutation__,
3809  memory_config,
3810  pad_value,
3811  out);
3812 }
3813 
3814 struct ReduceScatterOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
3816  struct Traits;
3817  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
3818  VT_IN = 4,
3819  VT_OUT = 6,
3820  VT_DEVICE = 8,
3823  VT_NUM_LINKS = 14
3824  };
3825  const tt::target::TensorRef *in() const {
3826  return GetPointer<const tt::target::TensorRef *>(VT_IN);
3827  }
3828  const tt::target::TensorRef *out() const {
3829  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
3830  }
3831  const tt::target::DeviceRef *device() const {
3832  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
3833  }
3834  uint32_t scatter_split_dim() const {
3835  return GetField<uint32_t>(VT_SCATTER_SPLIT_DIM, 0);
3836  }
3837  uint32_t math_op() const {
3838  return GetField<uint32_t>(VT_MATH_OP, 0);
3839  }
3840  uint32_t num_links() const {
3841  return GetField<uint32_t>(VT_NUM_LINKS, 0);
3842  }
3843  bool Verify(::flatbuffers::Verifier &verifier) const {
3844  return VerifyTableStart(verifier) &&
3845  VerifyOffset(verifier, VT_IN) &&
3846  verifier.VerifyTable(in()) &&
3847  VerifyOffset(verifier, VT_OUT) &&
3848  verifier.VerifyTable(out()) &&
3849  VerifyOffset(verifier, VT_DEVICE) &&
3850  verifier.VerifyTable(device()) &&
3851  VerifyField<uint32_t>(verifier, VT_SCATTER_SPLIT_DIM, 4) &&
3852  VerifyField<uint32_t>(verifier, VT_MATH_OP, 4) &&
3853  VerifyField<uint32_t>(verifier, VT_NUM_LINKS, 4) &&
3854  verifier.EndTable();
3855  }
3856 };
3857 
3860  ::flatbuffers::FlatBufferBuilder &fbb_;
3861  ::flatbuffers::uoffset_t start_;
3862  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
3863  fbb_.AddOffset(ReduceScatterOp::VT_IN, in);
3864  }
3865  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
3866  fbb_.AddOffset(ReduceScatterOp::VT_OUT, out);
3867  }
3868  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
3869  fbb_.AddOffset(ReduceScatterOp::VT_DEVICE, device);
3870  }
3871  void add_scatter_split_dim(uint32_t scatter_split_dim) {
3872  fbb_.AddElement<uint32_t>(ReduceScatterOp::VT_SCATTER_SPLIT_DIM, scatter_split_dim, 0);
3873  }
3874  void add_math_op(uint32_t math_op) {
3875  fbb_.AddElement<uint32_t>(ReduceScatterOp::VT_MATH_OP, math_op, 0);
3876  }
3877  void add_num_links(uint32_t num_links) {
3878  fbb_.AddElement<uint32_t>(ReduceScatterOp::VT_NUM_LINKS, num_links, 0);
3879  }
3880  explicit ReduceScatterOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3881  : fbb_(_fbb) {
3882  start_ = fbb_.StartTable();
3883  }
3884  ::flatbuffers::Offset<ReduceScatterOp> Finish() {
3885  const auto end = fbb_.EndTable(start_);
3886  auto o = ::flatbuffers::Offset<ReduceScatterOp>(end);
3887  return o;
3888  }
3889 };
3890 
3891 inline ::flatbuffers::Offset<ReduceScatterOp> CreateReduceScatterOp(
3892  ::flatbuffers::FlatBufferBuilder &_fbb,
3893  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
3894  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
3895  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
3896  uint32_t scatter_split_dim = 0,
3897  uint32_t math_op = 0,
3898  uint32_t num_links = 0) {
3899  ReduceScatterOpBuilder builder_(_fbb);
3900  builder_.add_num_links(num_links);
3901  builder_.add_math_op(math_op);
3902  builder_.add_scatter_split_dim(scatter_split_dim);
3903  builder_.add_device(device);
3904  builder_.add_out(out);
3905  builder_.add_in(in);
3906  return builder_.Finish();
3907 }
3908 
3911  static auto constexpr Create = CreateReduceScatterOp;
3912 };
3913 
3914 struct MeshShardOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
3916  struct Traits;
3917  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
3918  VT_IN = 4,
3919  VT_OUT = 6,
3920  VT_DEVICE = 8,
3923  VT_SHARD_SHAPE = 14
3924  };
3925  const tt::target::TensorRef *in() const {
3926  return GetPointer<const tt::target::TensorRef *>(VT_IN);
3927  }
3928  const tt::target::TensorRef *out() const {
3929  return GetPointer<const tt::target::TensorRef *>(VT_OUT);
3930  }
3931  const tt::target::DeviceRef *device() const {
3932  return GetPointer<const tt::target::DeviceRef *>(VT_DEVICE);
3933  }
3935  return static_cast<tt::target::MeshShardDirection>(GetField<uint32_t>(VT_SHARD_DIRECTION, 0));
3936  }
3938  return static_cast<tt::target::MeshShardType>(GetField<uint32_t>(VT_SHARD_TYPE, 0));
3939  }
3940  const ::flatbuffers::Vector<int64_t> *shard_shape() const {
3941  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_SHARD_SHAPE);
3942  }
3943  bool Verify(::flatbuffers::Verifier &verifier) const {
3944  return VerifyTableStart(verifier) &&
3945  VerifyOffset(verifier, VT_IN) &&
3946  verifier.VerifyTable(in()) &&
3947  VerifyOffset(verifier, VT_OUT) &&
3948  verifier.VerifyTable(out()) &&
3949  VerifyOffset(verifier, VT_DEVICE) &&
3950  verifier.VerifyTable(device()) &&
3951  VerifyField<uint32_t>(verifier, VT_SHARD_DIRECTION, 4) &&
3952  VerifyField<uint32_t>(verifier, VT_SHARD_TYPE, 4) &&
3953  VerifyOffset(verifier, VT_SHARD_SHAPE) &&
3954  verifier.VerifyVector(shard_shape()) &&
3955  verifier.EndTable();
3956  }
3957 };
3958 
3961  ::flatbuffers::FlatBufferBuilder &fbb_;
3962  ::flatbuffers::uoffset_t start_;
3963  void add_in(::flatbuffers::Offset<tt::target::TensorRef> in) {
3964  fbb_.AddOffset(MeshShardOp::VT_IN, in);
3965  }
3966  void add_out(::flatbuffers::Offset<tt::target::TensorRef> out) {
3967  fbb_.AddOffset(MeshShardOp::VT_OUT, out);
3968  }
3969  void add_device(::flatbuffers::Offset<tt::target::DeviceRef> device) {
3970  fbb_.AddOffset(MeshShardOp::VT_DEVICE, device);
3971  }
3973  fbb_.AddElement<uint32_t>(MeshShardOp::VT_SHARD_DIRECTION, static_cast<uint32_t>(shard_direction), 0);
3974  }
3976  fbb_.AddElement<uint32_t>(MeshShardOp::VT_SHARD_TYPE, static_cast<uint32_t>(shard_type), 0);
3977  }
3978  void add_shard_shape(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape) {
3979  fbb_.AddOffset(MeshShardOp::VT_SHARD_SHAPE, shard_shape);
3980  }
3981  explicit MeshShardOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
3982  : fbb_(_fbb) {
3983  start_ = fbb_.StartTable();
3984  }
3985  ::flatbuffers::Offset<MeshShardOp> Finish() {
3986  const auto end = fbb_.EndTable(start_);
3987  auto o = ::flatbuffers::Offset<MeshShardOp>(end);
3988  return o;
3989  }
3990 };
3991 
3992 inline ::flatbuffers::Offset<MeshShardOp> CreateMeshShardOp(
3993  ::flatbuffers::FlatBufferBuilder &_fbb,
3994  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
3995  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
3996  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
3999  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape = 0) {
4000  MeshShardOpBuilder builder_(_fbb);
4001  builder_.add_shard_shape(shard_shape);
4002  builder_.add_shard_type(shard_type);
4003  builder_.add_shard_direction(shard_direction);
4004  builder_.add_device(device);
4005  builder_.add_out(out);
4006  builder_.add_in(in);
4007  return builder_.Finish();
4008 }
4009 
4012  static auto constexpr Create = CreateMeshShardOp;
4013 };
4014 
4015 inline ::flatbuffers::Offset<MeshShardOp> CreateMeshShardOpDirect(
4016  ::flatbuffers::FlatBufferBuilder &_fbb,
4017  ::flatbuffers::Offset<tt::target::TensorRef> in = 0,
4018  ::flatbuffers::Offset<tt::target::TensorRef> out = 0,
4019  ::flatbuffers::Offset<tt::target::DeviceRef> device = 0,
4022  const std::vector<int64_t> *shard_shape = nullptr) {
4023  auto shard_shape__ = shard_shape ? _fbb.CreateVector<int64_t>(*shard_shape) : 0;
4025  _fbb,
4026  in,
4027  out,
4028  device,
4029  shard_direction,
4030  shard_type,
4031  shard_shape__);
4032 }
4033 
4034 struct Operation FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
4036  struct Traits;
4037  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
4039  VT_TYPE = 6,
4041  VT_LOC_INFO = 10
4042  };
4044  return static_cast<tt::target::ttnn::OpType>(GetField<uint8_t>(VT_TYPE_TYPE, 0));
4045  }
4046  const void *type() const {
4047  return GetPointer<const void *>(VT_TYPE);
4048  }
4049  template<typename T> const T *type_as() const;
4050  const tt::target::ttnn::GetDeviceOp *type_as_GetDeviceOp() const {
4051  return type_type() == tt::target::ttnn::OpType::GetDeviceOp ? static_cast<const tt::target::ttnn::GetDeviceOp *>(type()) : nullptr;
4052  }
4053  const tt::target::ttnn::ToMemoryConfigOp *type_as_ToMemoryConfigOp() const {
4054  return type_type() == tt::target::ttnn::OpType::ToMemoryConfigOp ? static_cast<const tt::target::ttnn::ToMemoryConfigOp *>(type()) : nullptr;
4055  }
4056  const tt::target::ttnn::ToLayoutOp *type_as_ToLayoutOp() const {
4057  return type_type() == tt::target::ttnn::OpType::ToLayoutOp ? static_cast<const tt::target::ttnn::ToLayoutOp *>(type()) : nullptr;
4058  }
4059  const tt::target::ttnn::TypecastOp *type_as_TypecastOp() const {
4060  return type_type() == tt::target::ttnn::OpType::TypecastOp ? static_cast<const tt::target::ttnn::TypecastOp *>(type()) : nullptr;
4061  }
4062  const tt::target::ttnn::ToDeviceOp *type_as_ToDeviceOp() const {
4063  return type_type() == tt::target::ttnn::OpType::ToDeviceOp ? static_cast<const tt::target::ttnn::ToDeviceOp *>(type()) : nullptr;
4064  }
4065  const tt::target::ttnn::FromDeviceOp *type_as_FromDeviceOp() const {
4066  return type_type() == tt::target::ttnn::OpType::FromDeviceOp ? static_cast<const tt::target::ttnn::FromDeviceOp *>(type()) : nullptr;
4067  }
4068  const tt::target::ttnn::EmptyOp *type_as_EmptyOp() const {
4069  return type_type() == tt::target::ttnn::OpType::EmptyOp ? static_cast<const tt::target::ttnn::EmptyOp *>(type()) : nullptr;
4070  }
4071  const tt::target::ttnn::OnesOp *type_as_OnesOp() const {
4072  return type_type() == tt::target::ttnn::OpType::OnesOp ? static_cast<const tt::target::ttnn::OnesOp *>(type()) : nullptr;
4073  }
4074  const tt::target::ttnn::FullOp *type_as_FullOp() const {
4075  return type_type() == tt::target::ttnn::OpType::FullOp ? static_cast<const tt::target::ttnn::FullOp *>(type()) : nullptr;
4076  }
4077  const tt::target::ttnn::EltwiseOp *type_as_EltwiseOp() const {
4078  return type_type() == tt::target::ttnn::OpType::EltwiseOp ? static_cast<const tt::target::ttnn::EltwiseOp *>(type()) : nullptr;
4079  }
4080  const tt::target::ttnn::LinearOp *type_as_LinearOp() const {
4081  return type_type() == tt::target::ttnn::OpType::LinearOp ? static_cast<const tt::target::ttnn::LinearOp *>(type()) : nullptr;
4082  }
4083  const tt::target::ttnn::MatmulOp *type_as_MatmulOp() const {
4084  return type_type() == tt::target::ttnn::OpType::MatmulOp ? static_cast<const tt::target::ttnn::MatmulOp *>(type()) : nullptr;
4085  }
4086  const tt::target::ttnn::ReductionOp *type_as_ReductionOp() const {
4087  return type_type() == tt::target::ttnn::OpType::ReductionOp ? static_cast<const tt::target::ttnn::ReductionOp *>(type()) : nullptr;
4088  }
4089  const tt::target::ttnn::EmbeddingOp *type_as_EmbeddingOp() const {
4090  return type_type() == tt::target::ttnn::OpType::EmbeddingOp ? static_cast<const tt::target::ttnn::EmbeddingOp *>(type()) : nullptr;
4091  }
4092  const tt::target::ttnn::EmbeddingBackwardOp *type_as_EmbeddingBackwardOp() const {
4093  return type_type() == tt::target::ttnn::OpType::EmbeddingBackwardOp ? static_cast<const tt::target::ttnn::EmbeddingBackwardOp *>(type()) : nullptr;
4094  }
4095  const tt::target::ttnn::SoftmaxOp *type_as_SoftmaxOp() const {
4096  return type_type() == tt::target::ttnn::OpType::SoftmaxOp ? static_cast<const tt::target::ttnn::SoftmaxOp *>(type()) : nullptr;
4097  }
4098  const tt::target::ttnn::TransposeOp *type_as_TransposeOp() const {
4099  return type_type() == tt::target::ttnn::OpType::TransposeOp ? static_cast<const tt::target::ttnn::TransposeOp *>(type()) : nullptr;
4100  }
4101  const tt::target::ttnn::Conv2dOp *type_as_Conv2dOp() const {
4102  return type_type() == tt::target::ttnn::OpType::Conv2dOp ? static_cast<const tt::target::ttnn::Conv2dOp *>(type()) : nullptr;
4103  }
4104  const tt::target::ttnn::ConvTranspose2dOp *type_as_ConvTranspose2dOp() const {
4105  return type_type() == tt::target::ttnn::OpType::ConvTranspose2dOp ? static_cast<const tt::target::ttnn::ConvTranspose2dOp *>(type()) : nullptr;
4106  }
4107  const tt::target::ttnn::ConcatOp *type_as_ConcatOp() const {
4108  return type_type() == tt::target::ttnn::OpType::ConcatOp ? static_cast<const tt::target::ttnn::ConcatOp *>(type()) : nullptr;
4109  }
4110  const tt::target::ttnn::ReshapeOp *type_as_ReshapeOp() const {
4111  return type_type() == tt::target::ttnn::OpType::ReshapeOp ? static_cast<const tt::target::ttnn::ReshapeOp *>(type()) : nullptr;
4112  }
4113  const tt::target::ttnn::SliceOp *type_as_SliceOp() const {
4114  return type_type() == tt::target::ttnn::OpType::SliceOp ? static_cast<const tt::target::ttnn::SliceOp *>(type()) : nullptr;
4115  }
4116  const tt::target::ttnn::MaxPool2dOp *type_as_MaxPool2dOp() const {
4117  return type_type() == tt::target::ttnn::OpType::MaxPool2dOp ? static_cast<const tt::target::ttnn::MaxPool2dOp *>(type()) : nullptr;
4118  }
4119  const tt::target::ttnn::DeallocateOp *type_as_DeallocateOp() const {
4120  return type_type() == tt::target::ttnn::OpType::DeallocateOp ? static_cast<const tt::target::ttnn::DeallocateOp *>(type()) : nullptr;
4121  }
4122  const tt::target::ttnn::AllGatherOp *type_as_AllGatherOp() const {
4123  return type_type() == tt::target::ttnn::OpType::AllGatherOp ? static_cast<const tt::target::ttnn::AllGatherOp *>(type()) : nullptr;
4124  }
4125  const tt::target::ttnn::ReduceScatterOp *type_as_ReduceScatterOp() const {
4126  return type_type() == tt::target::ttnn::OpType::ReduceScatterOp ? static_cast<const tt::target::ttnn::ReduceScatterOp *>(type()) : nullptr;
4127  }
4128  const tt::target::ttnn::MeshShardOp *type_as_MeshShardOp() const {
4129  return type_type() == tt::target::ttnn::OpType::MeshShardOp ? static_cast<const tt::target::ttnn::MeshShardOp *>(type()) : nullptr;
4130  }
4131  const tt::target::ttnn::ArangeOp *type_as_ArangeOp() const {
4132  return type_type() == tt::target::ttnn::OpType::ArangeOp ? static_cast<const tt::target::ttnn::ArangeOp *>(type()) : nullptr;
4133  }
4134  const tt::target::ttnn::UpdateCacheOp *type_as_UpdateCacheOp() const {
4135  return type_type() == tt::target::ttnn::OpType::UpdateCacheOp ? static_cast<const tt::target::ttnn::UpdateCacheOp *>(type()) : nullptr;
4136  }
4137  const tt::target::ttnn::FillCacheOp *type_as_FillCacheOp() const {
4138  return type_type() == tt::target::ttnn::OpType::FillCacheOp ? static_cast<const tt::target::ttnn::FillCacheOp *>(type()) : nullptr;
4139  }
4140  const tt::target::ttnn::PermuteOp *type_as_PermuteOp() const {
4141  return type_type() == tt::target::ttnn::OpType::PermuteOp ? static_cast<const tt::target::ttnn::PermuteOp *>(type()) : nullptr;
4142  }
4143  const tt::target::ttnn::RepeatOp *type_as_RepeatOp() const {
4144  return type_type() == tt::target::ttnn::OpType::RepeatOp ? static_cast<const tt::target::ttnn::RepeatOp *>(type()) : nullptr;
4145  }
4146  const ::flatbuffers::String *debug_info() const {
4147  return GetPointer<const ::flatbuffers::String *>(VT_DEBUG_INFO);
4148  }
4149  const ::flatbuffers::String *loc_info() const {
4150  return GetPointer<const ::flatbuffers::String *>(VT_LOC_INFO);
4151  }
4152  bool Verify(::flatbuffers::Verifier &verifier) const {
4153  return VerifyTableStart(verifier) &&
4154  VerifyField<uint8_t>(verifier, VT_TYPE_TYPE, 1) &&
4155  VerifyOffset(verifier, VT_TYPE) &&
4156  VerifyOpType(verifier, type(), type_type()) &&
4157  VerifyOffset(verifier, VT_DEBUG_INFO) &&
4158  verifier.VerifyString(debug_info()) &&
4159  VerifyOffset(verifier, VT_LOC_INFO) &&
4160  verifier.VerifyString(loc_info()) &&
4161  verifier.EndTable();
4162  }
4163 };
4164 
4165 template<> inline const tt::target::ttnn::GetDeviceOp *Operation::type_as<tt::target::ttnn::GetDeviceOp>() const {
4166  return type_as_GetDeviceOp();
4167 }
4168 
4169 template<> inline const tt::target::ttnn::ToMemoryConfigOp *Operation::type_as<tt::target::ttnn::ToMemoryConfigOp>() const {
4170  return type_as_ToMemoryConfigOp();
4171 }
4172 
4173 template<> inline const tt::target::ttnn::ToLayoutOp *Operation::type_as<tt::target::ttnn::ToLayoutOp>() const {
4174  return type_as_ToLayoutOp();
4175 }
4176 
4177 template<> inline const tt::target::ttnn::TypecastOp *Operation::type_as<tt::target::ttnn::TypecastOp>() const {
4178  return type_as_TypecastOp();
4179 }
4180 
4181 template<> inline const tt::target::ttnn::ToDeviceOp *Operation::type_as<tt::target::ttnn::ToDeviceOp>() const {
4182  return type_as_ToDeviceOp();
4183 }
4184 
4185 template<> inline const tt::target::ttnn::FromDeviceOp *Operation::type_as<tt::target::ttnn::FromDeviceOp>() const {
4186  return type_as_FromDeviceOp();
4187 }
4188 
4189 template<> inline const tt::target::ttnn::EmptyOp *Operation::type_as<tt::target::ttnn::EmptyOp>() const {
4190  return type_as_EmptyOp();
4191 }
4192 
4193 template<> inline const tt::target::ttnn::OnesOp *Operation::type_as<tt::target::ttnn::OnesOp>() const {
4194  return type_as_OnesOp();
4195 }
4196 
4197 template<> inline const tt::target::ttnn::FullOp *Operation::type_as<tt::target::ttnn::FullOp>() const {
4198  return type_as_FullOp();
4199 }
4200 
4201 template<> inline const tt::target::ttnn::EltwiseOp *Operation::type_as<tt::target::ttnn::EltwiseOp>() const {
4202  return type_as_EltwiseOp();
4203 }
4204 
4205 template<> inline const tt::target::ttnn::LinearOp *Operation::type_as<tt::target::ttnn::LinearOp>() const {
4206  return type_as_LinearOp();
4207 }
4208 
4209 template<> inline const tt::target::ttnn::MatmulOp *Operation::type_as<tt::target::ttnn::MatmulOp>() const {
4210  return type_as_MatmulOp();
4211 }
4212 
4213 template<> inline const tt::target::ttnn::ReductionOp *Operation::type_as<tt::target::ttnn::ReductionOp>() const {
4214  return type_as_ReductionOp();
4215 }
4216 
4217 template<> inline const tt::target::ttnn::EmbeddingOp *Operation::type_as<tt::target::ttnn::EmbeddingOp>() const {
4218  return type_as_EmbeddingOp();
4219 }
4220 
4221 template<> inline const tt::target::ttnn::EmbeddingBackwardOp *Operation::type_as<tt::target::ttnn::EmbeddingBackwardOp>() const {
4222  return type_as_EmbeddingBackwardOp();
4223 }
4224 
4225 template<> inline const tt::target::ttnn::SoftmaxOp *Operation::type_as<tt::target::ttnn::SoftmaxOp>() const {
4226  return type_as_SoftmaxOp();
4227 }
4228 
4229 template<> inline const tt::target::ttnn::TransposeOp *Operation::type_as<tt::target::ttnn::TransposeOp>() const {
4230  return type_as_TransposeOp();
4231 }
4232 
4233 template<> inline const tt::target::ttnn::Conv2dOp *Operation::type_as<tt::target::ttnn::Conv2dOp>() const {
4234  return type_as_Conv2dOp();
4235 }
4236 
4237 template<> inline const tt::target::ttnn::ConvTranspose2dOp *Operation::type_as<tt::target::ttnn::ConvTranspose2dOp>() const {
4238  return type_as_ConvTranspose2dOp();
4239 }
4240 
4241 template<> inline const tt::target::ttnn::ConcatOp *Operation::type_as<tt::target::ttnn::ConcatOp>() const {
4242  return type_as_ConcatOp();
4243 }
4244 
4245 template<> inline const tt::target::ttnn::ReshapeOp *Operation::type_as<tt::target::ttnn::ReshapeOp>() const {
4246  return type_as_ReshapeOp();
4247 }
4248 
4249 template<> inline const tt::target::ttnn::SliceOp *Operation::type_as<tt::target::ttnn::SliceOp>() const {
4250  return type_as_SliceOp();
4251 }
4252 
4253 template<> inline const tt::target::ttnn::MaxPool2dOp *Operation::type_as<tt::target::ttnn::MaxPool2dOp>() const {
4254  return type_as_MaxPool2dOp();
4255 }
4256 
4257 template<> inline const tt::target::ttnn::DeallocateOp *Operation::type_as<tt::target::ttnn::DeallocateOp>() const {
4258  return type_as_DeallocateOp();
4259 }
4260 
4261 template<> inline const tt::target::ttnn::AllGatherOp *Operation::type_as<tt::target::ttnn::AllGatherOp>() const {
4262  return type_as_AllGatherOp();
4263 }
4264 
4265 template<> inline const tt::target::ttnn::ReduceScatterOp *Operation::type_as<tt::target::ttnn::ReduceScatterOp>() const {
4266  return type_as_ReduceScatterOp();
4267 }
4268 
4269 template<> inline const tt::target::ttnn::MeshShardOp *Operation::type_as<tt::target::ttnn::MeshShardOp>() const {
4270  return type_as_MeshShardOp();
4271 }
4272 
4273 template<> inline const tt::target::ttnn::ArangeOp *Operation::type_as<tt::target::ttnn::ArangeOp>() const {
4274  return type_as_ArangeOp();
4275 }
4276 
4277 template<> inline const tt::target::ttnn::UpdateCacheOp *Operation::type_as<tt::target::ttnn::UpdateCacheOp>() const {
4278  return type_as_UpdateCacheOp();
4279 }
4280 
4281 template<> inline const tt::target::ttnn::FillCacheOp *Operation::type_as<tt::target::ttnn::FillCacheOp>() const {
4282  return type_as_FillCacheOp();
4283 }
4284 
4285 template<> inline const tt::target::ttnn::PermuteOp *Operation::type_as<tt::target::ttnn::PermuteOp>() const {
4286  return type_as_PermuteOp();
4287 }
4288 
4289 template<> inline const tt::target::ttnn::RepeatOp *Operation::type_as<tt::target::ttnn::RepeatOp>() const {
4290  return type_as_RepeatOp();
4291 }
4292 
4294  typedef Operation Table;
4295  ::flatbuffers::FlatBufferBuilder &fbb_;
4296  ::flatbuffers::uoffset_t start_;
4298  fbb_.AddElement<uint8_t>(Operation::VT_TYPE_TYPE, static_cast<uint8_t>(type_type), 0);
4299  }
4300  void add_type(::flatbuffers::Offset<void> type) {
4301  fbb_.AddOffset(Operation::VT_TYPE, type);
4302  }
4303  void add_debug_info(::flatbuffers::Offset<::flatbuffers::String> debug_info) {
4304  fbb_.AddOffset(Operation::VT_DEBUG_INFO, debug_info);
4305  }
4306  void add_loc_info(::flatbuffers::Offset<::flatbuffers::String> loc_info) {
4307  fbb_.AddOffset(Operation::VT_LOC_INFO, loc_info);
4308  }
4309  explicit OperationBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
4310  : fbb_(_fbb) {
4311  start_ = fbb_.StartTable();
4312  }
4313  ::flatbuffers::Offset<Operation> Finish() {
4314  const auto end = fbb_.EndTable(start_);
4315  auto o = ::flatbuffers::Offset<Operation>(end);
4316  return o;
4317  }
4318 };
4319 
4320 inline ::flatbuffers::Offset<Operation> CreateOperation(
4321  ::flatbuffers::FlatBufferBuilder &_fbb,
4323  ::flatbuffers::Offset<void> type = 0,
4324  ::flatbuffers::Offset<::flatbuffers::String> debug_info = 0,
4325  ::flatbuffers::Offset<::flatbuffers::String> loc_info = 0) {
4326  OperationBuilder builder_(_fbb);
4327  builder_.add_loc_info(loc_info);
4328  builder_.add_debug_info(debug_info);
4329  builder_.add_type(type);
4330  builder_.add_type_type(type_type);
4331  return builder_.Finish();
4332 }
4333 
4335  using type = Operation;
4336  static auto constexpr Create = CreateOperation;
4337 };
4338 
4339 inline ::flatbuffers::Offset<Operation> CreateOperationDirect(
4340  ::flatbuffers::FlatBufferBuilder &_fbb,
4342  ::flatbuffers::Offset<void> type = 0,
4343  const char *debug_info = nullptr,
4344  const char *loc_info = nullptr) {
4345  auto debug_info__ = debug_info ? _fbb.CreateString(debug_info) : 0;
4346  auto loc_info__ = loc_info ? _fbb.CreateString(loc_info) : 0;
4348  _fbb,
4349  type_type,
4350  type,
4351  debug_info__,
4352  loc_info__);
4353 }
4354 
4355 struct Program FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
4357  struct Traits;
4358  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
4359  VT_NAME = 4,
4360  VT_INPUTS = 6,
4363  VT_DEBUG_INFO = 12
4364  };
4365  const ::flatbuffers::String *name() const {
4366  return GetPointer<const ::flatbuffers::String *>(VT_NAME);
4367  }
4368  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs() const {
4369  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_INPUTS);
4370  }
4371  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *outputs() const {
4372  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_OUTPUTS);
4373  }
4374  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Operation>> *operations() const {
4375  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Operation>> *>(VT_OPERATIONS);
4376  }
4377  const tt::target::DebugInfo *debug_info() const {
4378  return GetPointer<const tt::target::DebugInfo *>(VT_DEBUG_INFO);
4379  }
4380  bool Verify(::flatbuffers::Verifier &verifier) const {
4381  return VerifyTableStart(verifier) &&
4382  VerifyOffset(verifier, VT_NAME) &&
4383  verifier.VerifyString(name()) &&
4384  VerifyOffset(verifier, VT_INPUTS) &&
4385  verifier.VerifyVector(inputs()) &&
4386  verifier.VerifyVectorOfTables(inputs()) &&
4387  VerifyOffset(verifier, VT_OUTPUTS) &&
4388  verifier.VerifyVector(outputs()) &&
4389  verifier.VerifyVectorOfTables(outputs()) &&
4390  VerifyOffset(verifier, VT_OPERATIONS) &&
4391  verifier.VerifyVector(operations()) &&
4392  verifier.VerifyVectorOfTables(operations()) &&
4393  VerifyOffset(verifier, VT_DEBUG_INFO) &&
4394  verifier.VerifyTable(debug_info()) &&
4395  verifier.EndTable();
4396  }
4397 };
4398 
4400  typedef Program Table;
4401  ::flatbuffers::FlatBufferBuilder &fbb_;
4402  ::flatbuffers::uoffset_t start_;
4403  void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
4404  fbb_.AddOffset(Program::VT_NAME, name);
4405  }
4406  void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs) {
4407  fbb_.AddOffset(Program::VT_INPUTS, inputs);
4408  }
4409  void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs) {
4410  fbb_.AddOffset(Program::VT_OUTPUTS, outputs);
4411  }
4412  void add_operations(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Operation>>> operations) {
4413  fbb_.AddOffset(Program::VT_OPERATIONS, operations);
4414  }
4415  void add_debug_info(::flatbuffers::Offset<tt::target::DebugInfo> debug_info) {
4416  fbb_.AddOffset(Program::VT_DEBUG_INFO, debug_info);
4417  }
4418  explicit ProgramBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
4419  : fbb_(_fbb) {
4420  start_ = fbb_.StartTable();
4421  }
4422  ::flatbuffers::Offset<Program> Finish() {
4423  const auto end = fbb_.EndTable(start_);
4424  auto o = ::flatbuffers::Offset<Program>(end);
4425  return o;
4426  }
4427 };
4428 
4429 inline ::flatbuffers::Offset<Program> CreateProgram(
4430  ::flatbuffers::FlatBufferBuilder &_fbb,
4431  ::flatbuffers::Offset<::flatbuffers::String> name = 0,
4432  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs = 0,
4433  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs = 0,
4434  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Operation>>> operations = 0,
4435  ::flatbuffers::Offset<tt::target::DebugInfo> debug_info = 0) {
4436  ProgramBuilder builder_(_fbb);
4437  builder_.add_debug_info(debug_info);
4438  builder_.add_operations(operations);
4439  builder_.add_outputs(outputs);
4440  builder_.add_inputs(inputs);
4441  builder_.add_name(name);
4442  return builder_.Finish();
4443 }
4444 
4446  using type = Program;
4447  static auto constexpr Create = CreateProgram;
4448 };
4449 
4450 inline ::flatbuffers::Offset<Program> CreateProgramDirect(
4451  ::flatbuffers::FlatBufferBuilder &_fbb,
4452  const char *name = nullptr,
4453  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs = nullptr,
4454  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *outputs = nullptr,
4455  const std::vector<::flatbuffers::Offset<tt::target::ttnn::Operation>> *operations = nullptr,
4456  ::flatbuffers::Offset<tt::target::DebugInfo> debug_info = 0) {
4457  auto name__ = name ? _fbb.CreateString(name) : 0;
4458  auto inputs__ = inputs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*inputs) : 0;
4459  auto outputs__ = outputs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*outputs) : 0;
4460  auto operations__ = operations ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::ttnn::Operation>>(*operations) : 0;
4462  _fbb,
4463  name__,
4464  inputs__,
4465  outputs__,
4466  operations__,
4467  debug_info);
4468 }
4469 
4470 inline bool VerifyEltwiseOpParams(::flatbuffers::Verifier &verifier, const void *obj, EltwiseOpParams type) {
4471  switch (type) {
4472  case EltwiseOpParams::NONE: {
4473  return true;
4474  }
4476  auto ptr = reinterpret_cast<const tt::target::ttnn::ClampOpParams *>(obj);
4477  return verifier.VerifyTable(ptr);
4478  }
4480  auto ptr = reinterpret_cast<const tt::target::ttnn::EltwiseOpWithFloatParams *>(obj);
4481  return verifier.VerifyTable(ptr);
4482  }
4483  default: return true;
4484  }
4485 }
4486 
4487 inline bool VerifyEltwiseOpParamsVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<EltwiseOpParams> *types) {
4488  if (!values || !types) return !values && !types;
4489  if (values->size() != types->size()) return false;
4490  for (::flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
4491  if (!VerifyEltwiseOpParams(
4492  verifier, values->Get(i), types->GetEnum<EltwiseOpParams>(i))) {
4493  return false;
4494  }
4495  }
4496  return true;
4497 }
4498 
4499 inline bool VerifyOpType(::flatbuffers::Verifier &verifier, const void *obj, OpType type) {
4500  switch (type) {
4501  case OpType::NONE: {
4502  return true;
4503  }
4504  case OpType::GetDeviceOp: {
4505  auto ptr = reinterpret_cast<const tt::target::ttnn::GetDeviceOp *>(obj);
4506  return verifier.VerifyTable(ptr);
4507  }
4508  case OpType::ToMemoryConfigOp: {
4509  auto ptr = reinterpret_cast<const tt::target::ttnn::ToMemoryConfigOp *>(obj);
4510  return verifier.VerifyTable(ptr);
4511  }
4512  case OpType::ToLayoutOp: {
4513  auto ptr = reinterpret_cast<const tt::target::ttnn::ToLayoutOp *>(obj);
4514  return verifier.VerifyTable(ptr);
4515  }
4516  case OpType::TypecastOp: {
4517  auto ptr = reinterpret_cast<const tt::target::ttnn::TypecastOp *>(obj);
4518  return verifier.VerifyTable(ptr);
4519  }
4520  case OpType::ToDeviceOp: {
4521  auto ptr = reinterpret_cast<const tt::target::ttnn::ToDeviceOp *>(obj);
4522  return verifier.VerifyTable(ptr);
4523  }
4524  case OpType::FromDeviceOp: {
4525  auto ptr = reinterpret_cast<const tt::target::ttnn::FromDeviceOp *>(obj);
4526  return verifier.VerifyTable(ptr);
4527  }
4528  case OpType::EmptyOp: {
4529  auto ptr = reinterpret_cast<const tt::target::ttnn::EmptyOp *>(obj);
4530  return verifier.VerifyTable(ptr);
4531  }
4532  case OpType::OnesOp: {
4533  auto ptr = reinterpret_cast<const tt::target::ttnn::OnesOp *>(obj);
4534  return verifier.VerifyTable(ptr);
4535  }
4536  case OpType::FullOp: {
4537  auto ptr = reinterpret_cast<const tt::target::ttnn::FullOp *>(obj);
4538  return verifier.VerifyTable(ptr);
4539  }
4540  case OpType::EltwiseOp: {
4541  auto ptr = reinterpret_cast<const tt::target::ttnn::EltwiseOp *>(obj);
4542  return verifier.VerifyTable(ptr);
4543  }
4544  case OpType::LinearOp: {
4545  auto ptr = reinterpret_cast<const tt::target::ttnn::LinearOp *>(obj);
4546  return verifier.VerifyTable(ptr);
4547  }
4548  case OpType::MatmulOp: {
4549  auto ptr = reinterpret_cast<const tt::target::ttnn::MatmulOp *>(obj);
4550  return verifier.VerifyTable(ptr);
4551  }
4552  case OpType::ReductionOp: {
4553  auto ptr = reinterpret_cast<const tt::target::ttnn::ReductionOp *>(obj);
4554  return verifier.VerifyTable(ptr);
4555  }
4556  case OpType::EmbeddingOp: {
4557  auto ptr = reinterpret_cast<const tt::target::ttnn::EmbeddingOp *>(obj);
4558  return verifier.VerifyTable(ptr);
4559  }
4561  auto ptr = reinterpret_cast<const tt::target::ttnn::EmbeddingBackwardOp *>(obj);
4562  return verifier.VerifyTable(ptr);
4563  }
4564  case OpType::SoftmaxOp: {
4565  auto ptr = reinterpret_cast<const tt::target::ttnn::SoftmaxOp *>(obj);
4566  return verifier.VerifyTable(ptr);
4567  }
4568  case OpType::TransposeOp: {
4569  auto ptr = reinterpret_cast<const tt::target::ttnn::TransposeOp *>(obj);
4570  return verifier.VerifyTable(ptr);
4571  }
4572  case OpType::Conv2dOp: {
4573  auto ptr = reinterpret_cast<const tt::target::ttnn::Conv2dOp *>(obj);
4574  return verifier.VerifyTable(ptr);
4575  }
4577  auto ptr = reinterpret_cast<const tt::target::ttnn::ConvTranspose2dOp *>(obj);
4578  return verifier.VerifyTable(ptr);
4579  }
4580  case OpType::ConcatOp: {
4581  auto ptr = reinterpret_cast<const tt::target::ttnn::ConcatOp *>(obj);
4582  return verifier.VerifyTable(ptr);
4583  }
4584  case OpType::ReshapeOp: {
4585  auto ptr = reinterpret_cast<const tt::target::ttnn::ReshapeOp *>(obj);
4586  return verifier.VerifyTable(ptr);
4587  }
4588  case OpType::SliceOp: {
4589  auto ptr = reinterpret_cast<const tt::target::ttnn::SliceOp *>(obj);
4590  return verifier.VerifyTable(ptr);
4591  }
4592  case OpType::MaxPool2dOp: {
4593  auto ptr = reinterpret_cast<const tt::target::ttnn::MaxPool2dOp *>(obj);
4594  return verifier.VerifyTable(ptr);
4595  }
4596  case OpType::DeallocateOp: {
4597  auto ptr = reinterpret_cast<const tt::target::ttnn::DeallocateOp *>(obj);
4598  return verifier.VerifyTable(ptr);
4599  }
4600  case OpType::AllGatherOp: {
4601  auto ptr = reinterpret_cast<const tt::target::ttnn::AllGatherOp *>(obj);
4602  return verifier.VerifyTable(ptr);
4603  }
4604  case OpType::ReduceScatterOp: {
4605  auto ptr = reinterpret_cast<const tt::target::ttnn::ReduceScatterOp *>(obj);
4606  return verifier.VerifyTable(ptr);
4607  }
4608  case OpType::MeshShardOp: {
4609  auto ptr = reinterpret_cast<const tt::target::ttnn::MeshShardOp *>(obj);
4610  return verifier.VerifyTable(ptr);
4611  }
4612  case OpType::ArangeOp: {
4613  auto ptr = reinterpret_cast<const tt::target::ttnn::ArangeOp *>(obj);
4614  return verifier.VerifyTable(ptr);
4615  }
4616  case OpType::UpdateCacheOp: {
4617  auto ptr = reinterpret_cast<const tt::target::ttnn::UpdateCacheOp *>(obj);
4618  return verifier.VerifyTable(ptr);
4619  }
4620  case OpType::FillCacheOp: {
4621  auto ptr = reinterpret_cast<const tt::target::ttnn::FillCacheOp *>(obj);
4622  return verifier.VerifyTable(ptr);
4623  }
4624  case OpType::PermuteOp: {
4625  auto ptr = reinterpret_cast<const tt::target::ttnn::PermuteOp *>(obj);
4626  return verifier.VerifyTable(ptr);
4627  }
4628  case OpType::RepeatOp: {
4629  auto ptr = reinterpret_cast<const tt::target::ttnn::RepeatOp *>(obj);
4630  return verifier.VerifyTable(ptr);
4631  }
4632  default: return true;
4633  }
4634 }
4635 
4636 inline bool VerifyOpTypeVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<OpType> *types) {
4637  if (!values || !types) return !values && !types;
4638  if (values->size() != types->size()) return false;
4639  for (::flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
4640  if (!VerifyOpType(
4641  verifier, values->Get(i), types->GetEnum<OpType>(i))) {
4642  return false;
4643  }
4644  }
4645  return true;
4646 }
4647 
4648 } // namespace ttnn
4649 } // namespace target
4650 } // namespace tt
4651 
4652 #endif // FLATBUFFERS_GENERATED_PROGRAM_TT_TARGET_TTNN_H_
VT_LAYOUT
Definition: program_generated.h:792
VT_IN0
Definition: program_generated.h:721
VT_KERNEL_WIDTH
Definition: program_generated.h:2891
VT_INPUT
Definition: program_generated.h:1043
VT_DTYPE
Definition: program_generated.h:793
VT_CACHE
Definition: program_generated.h:1042
VT_NUM_SHARDS
Definition: program_generated.h:1253
VT_SCATTER_SPLIT_DIM
Definition: program_generated.h:3821
VT_STRATEGY
Definition: program_generated.h:1256
VT_SHAPE
Definition: program_generated.h:1250
VT_BEGINS
Definition: program_generated.h:2620
VT_DILATION
Definition: program_generated.h:3126
VT_PARAMS_TYPE
Definition: program_generated.h:1822
VT_START
Definition: program_generated.h:1605
VT_IN_GRAD
Definition: program_generated.h:2121
VT_PADDING
Definition: program_generated.h:3124
VT_IN1
Definition: program_generated.h:2730
VT_STRIDE_HEIGHT
Definition: program_generated.h:2892
VT_WEIGHT
Definition: program_generated.h:2050
VT_DIM0
Definition: program_generated.h:2292
VT_STRIDE
Definition: program_generated.h:3123
VT_CHANNELS
Definition: program_generated.h:3368
VT_KERNEL_SIZE
Definition: program_generated.h:3122
VT_KERNEL_HEIGHT
Definition: program_generated.h:2890
VT_BATCH_SIZE
Definition: program_generated.h:2887
VT_DIM
Definition: program_generated.h:3623
VT_MESH
Definition: program_generated.h:639
VT_DIM_ARG
Definition: program_generated.h:1945
VT_PERMUTATION
Definition: program_generated.h:3711
VT_MATH_OP
Definition: program_generated.h:3822
VT_TYPE_TYPE
Definition: program_generated.h:4038
VT_MIN
Definition: program_generated.h:1715
VT_DEBUG_INFO
Definition: program_generated.h:4040
VT_PADDING_WIDTH
Definition: program_generated.h:2895
VT_STRIDE_WIDTH
Definition: program_generated.h:2893
VT_INPUTS
Definition: program_generated.h:2369
VT_CHIP_IDS
Definition: program_generated.h:640
VT_TYPE
Definition: program_generated.h:1819
VT_UPDATE_INDEX
Definition: program_generated.h:1044
VT_INPUT_HEIGHT
Definition: program_generated.h:2888
VT_IN_CHANNELS
Definition: program_generated.h:2885
VT_OUTPUTS
Definition: program_generated.h:4361
VT_IN
Definition: program_generated.h:791
VT_PAD_VALUE
Definition: program_generated.h:3713
VT_SHARD_DIRECTION
Definition: program_generated.h:3921
VT_DEVICE
Definition: program_generated.h:795
VT_DILATION_WIDTH
Definition: program_generated.h:2897
VT_END
Definition: program_generated.h:1606
VT_FILL_VALUE
Definition: program_generated.h:1516
VT_INPUT_WIDTH
Definition: program_generated.h:2889
VT_ENDS
Definition: program_generated.h:2621
VT_DILATION_HEIGHT
Definition: program_generated.h:2896
VT_NAME
Definition: program_generated.h:4359
VT_BIAS
Definition: program_generated.h:2731
VT_OUT
Definition: program_generated.h:1821
VT_OUTPUT_PADDING
Definition: program_generated.h:3125
VT_PADDING_HEIGHT
Definition: program_generated.h:2894
VT_OPERATIONS
Definition: program_generated.h:4362
VT_OUT_CHANNELS
Definition: program_generated.h:2886
VT_INS
Definition: program_generated.h:1820
VT_MEMCFG
Definition: program_generated.h:722
VT_STEP
Definition: program_generated.h:1607
VT_SHARD_TYPE
Definition: program_generated.h:3922
VT_CEIL_MODE
Definition: program_generated.h:3375
VT_MEMORY_CONFIG
Definition: program_generated.h:3712
EltwiseOpType
Definition: program_generated.h:131
inline ::flatbuffers::Offset< SliceOp > CreateSliceOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> begins=0, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> ends=0, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> step=0)
Definition: program_generated.h:2685
bool VerifyOpTypeVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset< void >> *values, const ::flatbuffers::Vector< OpType > *types)
Definition: program_generated.h:4636
inline ::flatbuffers::Offset< Program > CreateProgram(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::String > name=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> outputs=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ttnn::Operation >>> operations=0, ::flatbuffers::Offset< tt::target::DebugInfo > debug_info=0)
Definition: program_generated.h:4429
inline ::flatbuffers::Offset< SliceOp > CreateSliceOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, const std::vector< int64_t > *begins=nullptr, const std::vector< int64_t > *ends=nullptr, const std::vector< int64_t > *step=nullptr)
Definition: program_generated.h:2706
inline ::flatbuffers::Offset< Program > CreateProgramDirect(::flatbuffers::FlatBufferBuilder &_fbb, const char *name=nullptr, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *inputs=nullptr, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *outputs=nullptr, const std::vector<::flatbuffers::Offset< tt::target::ttnn::Operation >> *operations=nullptr, ::flatbuffers::Offset< tt::target::DebugInfo > debug_info=0)
Definition: program_generated.h:4450
inline ::flatbuffers::Offset< EltwiseOp > CreateEltwiseOp(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::ttnn::EltwiseOpType type=tt::target::ttnn::EltwiseOpType::Add, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> ins=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, tt::target::ttnn::EltwiseOpParams params_type=tt::target::ttnn::EltwiseOpParams::NONE, ::flatbuffers::Offset< void > params=0)
Definition: program_generated.h:1900
EltwiseOpParams
Definition: program_generated.h:296
inline ::flatbuffers::Offset< ReductionOp > CreateReductionOp(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::ttnn::ReductionOpType type=tt::target::ttnn::ReductionOpType::Sum, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> dim_arg=0, bool keep_dim=false)
Definition: program_generated.h:2007
inline ::flatbuffers::Offset< TransposeOp > CreateTransposeOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, int32_t dim0=0, int32_t dim1=0)
Definition: program_generated.h:2346
const char * EnumNameEltwiseOpType(EltwiseOpType e)
Definition: program_generated.h:290
inline ::flatbuffers::Offset< MatmulOp > CreateMatmulOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in0=0, ::flatbuffers::Offset< tt::target::TensorRef > in1=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:2859
const EltwiseOpType(& EnumValuesEltwiseOpType())[47]
Definition: program_generated.h:183
ReductionOpType
Definition: program_generated.h:344
inline ::flatbuffers::Offset< ReduceScatterOp > CreateReduceScatterOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, uint32_t scatter_split_dim=0, uint32_t math_op=0, uint32_t num_links=0)
Definition: program_generated.h:3891
OpType
Definition: program_generated.h:377
inline ::flatbuffers::Offset< UpdateCacheOp > CreateUpdateCacheOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > cache=0, ::flatbuffers::Offset< tt::target::TensorRef > input=0, ::flatbuffers::Offset< tt::target::TensorRef > update_index=0, uint32_t batch_offset=0)
Definition: program_generated.h:1099
inline ::flatbuffers::Offset< GetDeviceOp > CreateGetDeviceOp(::flatbuffers::FlatBufferBuilder &_fbb, const tt::target::Dim2d *mesh=nullptr, ::flatbuffers::Offset<::flatbuffers::Vector< uint32_t >> chip_ids=0, ::flatbuffers::Offset< tt::target::DeviceRef > out=0)
Definition: program_generated.h:687
inline ::flatbuffers::Offset< AllGatherOp > CreateAllGatherOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, uint32_t dim=0, uint32_t num_links=0)
Definition: program_generated.h:3685
const char *const * EnumNamesEltwiseOpParams()
Definition: program_generated.h:313
inline ::flatbuffers::Offset< FillCacheOp > CreateFillCacheOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > cache=0, ::flatbuffers::Offset< tt::target::TensorRef > input=0, uint32_t batch_offset=0)
Definition: program_generated.h:1170
const char *const * EnumNamesReductionOpType()
Definition: program_generated.h:361
const char * EnumNameReductionOpType(ReductionOpType e)
Definition: program_generated.h:371
inline ::flatbuffers::Offset< RepeatOp > CreateRepeatOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset<::flatbuffers::Vector< uint32_t >> shape=0)
Definition: program_generated.h:2584
const char *const * EnumNamesEltwiseOpType()
Definition: program_generated.h:236
inline ::flatbuffers::Offset< ToLayoutOp > CreateToLayoutOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, tt::target::TensorLayout layout=tt::target::TensorLayout::RowMajor, ::flatbuffers::Optional< tt::target::DataType > dtype=::flatbuffers::nullopt, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:865
inline ::flatbuffers::Offset< GetDeviceOp > CreateGetDeviceOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, const tt::target::Dim2d *mesh=nullptr, const std::vector< uint32_t > *chip_ids=nullptr, ::flatbuffers::Offset< tt::target::DeviceRef > out=0)
Definition: program_generated.h:704
inline ::flatbuffers::Offset< ConvTranspose2dOp > CreateConvTranspose2dOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > input=0, ::flatbuffers::Offset< tt::target::TensorRef > weight=0, ::flatbuffers::Offset< tt::target::TensorRef > bias=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, uint32_t in_channels=0, uint32_t out_channels=0, uint32_t batch_size=0, uint32_t input_height=0, uint32_t input_width=0, const std::vector< int32_t > *kernel_size=nullptr, const std::vector< int32_t > *stride=nullptr, const std::vector< int32_t > *padding=nullptr, const std::vector< int32_t > *output_padding=nullptr, const std::vector< int32_t > *dilation=nullptr, uint32_t groups=0)
Definition: program_generated.h:3315
const ReductionOpType(& EnumValuesReductionOpType())[3]
Definition: program_generated.h:352
inline ::flatbuffers::Offset< ClampOpParams > CreateClampOpParams(::flatbuffers::FlatBufferBuilder &_fbb, float min=0.0f, float max=0.0f)
Definition: program_generated.h:1753
inline ::flatbuffers::Offset< FromDeviceOp > CreateFromDeviceOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1231
inline ::flatbuffers::Offset< EmptyOp > CreateEmptyOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shape=0, tt::target::DataType dtype=tt::target::DataType::Float32, tt::target::TensorLayout layout=tt::target::TensorLayout::RowMajor, uint32_t num_shards=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::DistributionStrategy > strategy=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1341
inline ::flatbuffers::Offset< LinearOp > CreateLinearOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in0=0, ::flatbuffers::Offset< tt::target::TensorRef > in1=0, ::flatbuffers::Offset< tt::target::TensorRef > bias=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:2787
inline ::flatbuffers::Offset< Conv2dOp > CreateConv2dOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > input=0, ::flatbuffers::Offset< tt::target::TensorRef > weight=0, ::flatbuffers::Offset< tt::target::TensorRef > bias=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, uint32_t in_channels=0, uint32_t out_channels=0, uint32_t batch_size=0, uint32_t input_height=0, uint32_t input_width=0, uint32_t kernel_height=0, uint32_t kernel_width=0, uint32_t stride_height=0, uint32_t stride_width=0, uint32_t padding_height=0, uint32_t padding_width=0, uint32_t dilation_height=0, uint32_t dilation_width=0, uint32_t groups=0)
Definition: program_generated.h:3059
inline ::flatbuffers::Offset< MeshShardOp > CreateMeshShardOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, tt::target::MeshShardDirection shard_direction=tt::target::MeshShardDirection::FullToShardShape, tt::target::MeshShardType shard_type=tt::target::MeshShardType::Manual, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shard_shape=0)
Definition: program_generated.h:3992
const EltwiseOpParams(& EnumValuesEltwiseOpParams())[3]
Definition: program_generated.h:304
const char *const * EnumNamesOpType()
Definition: program_generated.h:454
inline ::flatbuffers::Offset< ToMemoryConfigOp > CreateToMemoryConfigOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in0=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:770
const char * EnumNameEltwiseOpParams(EltwiseOpParams e)
Definition: program_generated.h:323
inline ::flatbuffers::Offset< FullOp > CreateFullOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, float fill_value=0.0f, uint32_t num_shards=0, ::flatbuffers::Offset< tt::target::DistributionStrategy > strategy=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1580
inline ::flatbuffers::Offset< PermuteOp > CreatePermuteOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, const std::vector< int64_t > *permutation=nullptr, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memory_config=0, float pad_value=0.0f, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:3797
inline ::flatbuffers::Offset< ConvTranspose2dOp > CreateConvTranspose2dOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > input=0, ::flatbuffers::Offset< tt::target::TensorRef > weight=0, ::flatbuffers::Offset< tt::target::TensorRef > bias=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, uint32_t in_channels=0, uint32_t out_channels=0, uint32_t batch_size=0, uint32_t input_height=0, uint32_t input_width=0, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> kernel_size=0, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> stride=0, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> padding=0, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> output_padding=0, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> dilation=0, uint32_t groups=0)
Definition: program_generated.h:3272
const char * EnumNameOpType(OpType e)
Definition: program_generated.h:494
bool VerifyOpType(::flatbuffers::Verifier &verifier, const void *obj, OpType type)
Definition: program_generated.h:4499
inline ::flatbuffers::Offset< Operation > CreateOperation(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::ttnn::OpType type_type=tt::target::ttnn::OpType::NONE, ::flatbuffers::Offset< void > type=0, ::flatbuffers::Offset<::flatbuffers::String > debug_info=0, ::flatbuffers::Offset<::flatbuffers::String > loc_info=0)
Definition: program_generated.h:4320
inline ::flatbuffers::Offset< ConcatOp > CreateConcatOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *inputs=nullptr, ::flatbuffers::Offset< tt::target::TensorRef > out=0, int32_t dim=0)
Definition: program_generated.h:2435
inline ::flatbuffers::Offset< ReshapeOp > CreateReshapeOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape=0)
Definition: program_generated.h:2501
inline ::flatbuffers::Offset< OnesOp > CreateOnesOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector< int64_t > *shape=nullptr, ::flatbuffers::Optional< tt::target::DataType > dtype=::flatbuffers::nullopt, ::flatbuffers::Optional< tt::target::TensorLayout > layout=::flatbuffers::nullopt, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1492
inline ::flatbuffers::Offset< ReshapeOp > CreateReshapeOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, const std::vector< int32_t > *shape=nullptr)
Definition: program_generated.h:2518
inline ::flatbuffers::Offset< ConcatOp > CreateConcatOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, int32_t dim=0)
Definition: program_generated.h:2418
inline ::flatbuffers::Offset< TypecastOp > CreateTypecastOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, tt::target::DataType dtype=tt::target::DataType::Float32, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:940
bool VerifyEltwiseOpParams(::flatbuffers::Verifier &verifier, const void *obj, EltwiseOpParams type)
Definition: program_generated.h:4470
inline ::flatbuffers::Offset< OnesOp > CreateOnesOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shape=0, ::flatbuffers::Optional< tt::target::DataType > dtype=::flatbuffers::nullopt, ::flatbuffers::Optional< tt::target::TensorLayout > layout=::flatbuffers::nullopt, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1469
inline ::flatbuffers::Offset< RepeatOp > CreateRepeatOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, const std::vector< uint32_t > *shape=nullptr)
Definition: program_generated.h:2601
inline ::flatbuffers::Offset< ReductionOp > CreateReductionOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::ttnn::ReductionOpType type=tt::target::ttnn::ReductionOpType::Sum, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, const std::vector< int32_t > *dim_arg=nullptr, bool keep_dim=false)
Definition: program_generated.h:2028
inline ::flatbuffers::Offset< MaxPool2dOp > CreateMaxPool2dOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, uint32_t batch_size=0, uint32_t input_height=0, uint32_t input_width=0, uint32_t channels=0, uint32_t kernel_height=0, uint32_t kernel_width=0, uint32_t stride_height=0, uint32_t stride_width=0, uint32_t dilation_height=0, uint32_t dilation_width=0, bool ceil_mode=false, uint32_t padding_height=0, uint32_t padding_width=0)
Definition: program_generated.h:3515
inline ::flatbuffers::Offset< EltwiseOpWithFloatParams > CreateEltwiseOpWithFloatParams(::flatbuffers::FlatBufferBuilder &_fbb, float parameter=0.0f)
Definition: program_generated.h:1802
inline ::flatbuffers::Offset< EmbeddingOp > CreateEmbeddingOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > input=0, ::flatbuffers::Offset< tt::target::TensorRef > weight=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:2098
bool VerifyEltwiseOpParamsVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset< void >> *values, const ::flatbuffers::Vector< EltwiseOpParams > *types)
Definition: program_generated.h:4487
inline ::flatbuffers::Offset< ToDeviceOp > CreateToDeviceOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1019
inline ::flatbuffers::Offset< EmbeddingBackwardOp > CreateEmbeddingBackwardOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > input=0, ::flatbuffers::Offset< tt::target::TensorRef > weight=0, ::flatbuffers::Offset< tt::target::TensorRef > in_grad=0, ::flatbuffers::Optional< tt::target::DataType > dtype=::flatbuffers::nullopt, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:2194
inline ::flatbuffers::Offset< MeshShardOp > CreateMeshShardOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, tt::target::MeshShardDirection shard_direction=tt::target::MeshShardDirection::FullToShardShape, tt::target::MeshShardType shard_type=tt::target::MeshShardType::Manual, const std::vector< int64_t > *shard_shape=nullptr)
Definition: program_generated.h:4015
inline ::flatbuffers::Offset< PermuteOp > CreatePermuteOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> permutation=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memory_config=0, float pad_value=0.0f, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:3776
inline ::flatbuffers::Offset< ArangeOp > CreateArangeOp(::flatbuffers::FlatBufferBuilder &_fbb, float start=0.0f, float end=0.0f, float step=0.0f, ::flatbuffers::Optional< tt::target::DataType > dtype=::flatbuffers::nullopt, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1686
inline ::flatbuffers::Offset< EmptyOp > CreateEmptyOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector< int64_t > *shape=nullptr, tt::target::DataType dtype=tt::target::DataType::Float32, tt::target::TensorLayout layout=tt::target::TensorLayout::RowMajor, uint32_t num_shards=0, ::flatbuffers::Offset< tt::target::DeviceRef > device=0, ::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg=0, ::flatbuffers::Offset< tt::target::DistributionStrategy > strategy=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0)
Definition: program_generated.h:1368
inline ::flatbuffers::Offset< DeallocateOp > CreateDeallocateOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, bool force=false)
Definition: program_generated.h:3601
inline ::flatbuffers::Offset< SoftmaxOp > CreateSoftmaxOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::TensorRef > in=0, ::flatbuffers::Offset< tt::target::TensorRef > out=0, int32_t dimension=0)
Definition: program_generated.h:2269
inline ::flatbuffers::Offset< EltwiseOp > CreateEltwiseOpDirect(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::ttnn::EltwiseOpType type=tt::target::ttnn::EltwiseOpType::Add, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *ins=nullptr, ::flatbuffers::Offset< tt::target::TensorRef > out=0, tt::target::ttnn::EltwiseOpParams params_type=tt::target::ttnn::EltwiseOpParams::NONE, ::flatbuffers::Offset< void > params=0)
Definition: program_generated.h:1921
const OpType(& EnumValuesOpType())[33]
Definition: program_generated.h:415
inline ::flatbuffers::Offset< Operation > CreateOperationDirect(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::ttnn::OpType type_type=tt::target::ttnn::OpType::NONE, ::flatbuffers::Offset< void > type=0, const char *debug_info=nullptr, const char *loc_info=nullptr)
Definition: program_generated.h:4339
TensorLayout
Definition: types_generated.h:325
MeshShardType
Definition: types_generated.h:427
MeshShardDirection
Definition: types_generated.h:397
DataType
Definition: types_generated.h:117
Definition: debug_info_generated.h:18
Definition: debug_info_generated.h:36
Definition: program_generated.h:3655
::flatbuffers::Offset< AllGatherOp > Finish()
Definition: program_generated.h:3678
void add_num_links(uint32_t num_links)
Definition: program_generated.h:3671
AllGatherOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3674
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:3665
void add_dim(uint32_t dim)
Definition: program_generated.h:3668
AllGatherOp Table
Definition: program_generated.h:3656
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:3662
::flatbuffers::uoffset_t start_
Definition: program_generated.h:3658
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:3657
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:3659
Definition: program_generated.h:3701
static constexpr auto Create
Definition: program_generated.h:3703
AllGatherOp type
Definition: program_generated.h:3702
Definition: program_generated.h:1650
ArangeOp Table
Definition: program_generated.h:1651
void add_start(float start)
Definition: program_generated.h:1654
void add_dtype(tt::target::DataType dtype)
Definition: program_generated.h:1663
void add_step(float step)
Definition: program_generated.h:1660
::flatbuffers::Offset< ArangeOp > Finish()
Definition: program_generated.h:1679
ArangeOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1675
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1652
void add_memcfg(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg)
Definition: program_generated.h:1669
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1653
void add_end(float end)
Definition: program_generated.h:1657
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:1666
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1672
Definition: program_generated.h:1706
ArangeOp type
Definition: program_generated.h:1707
static constexpr auto Create
Definition: program_generated.h:1708
Definition: program_generated.h:1732
void add_max(float max)
Definition: program_generated.h:1739
ClampOpParams Table
Definition: program_generated.h:1733
void add_min(float min)
Definition: program_generated.h:1736
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1735
::flatbuffers::Offset< ClampOpParams > Finish()
Definition: program_generated.h:1746
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1734
ClampOpParamsBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1742
Definition: program_generated.h:1763
ClampOpParams type
Definition: program_generated.h:1764
static constexpr auto Create
Definition: program_generated.h:1765
Definition: program_generated.h:2394
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2396
void add_dim(int32_t dim)
Definition: program_generated.h:2404
::flatbuffers::Offset< ConcatOp > Finish()
Definition: program_generated.h:2411
ConcatOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2407
void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs)
Definition: program_generated.h:2398
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2397
ConcatOp Table
Definition: program_generated.h:2395
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2401
Definition: program_generated.h:2430
ConcatOp type
Definition: program_generated.h:2431
static constexpr auto Create
Definition: program_generated.h:2432
Definition: program_generated.h:2987
void add_in_channels(uint32_t in_channels)
Definition: program_generated.h:3006
void add_input_width(uint32_t input_width)
Definition: program_generated.h:3018
void add_input(::flatbuffers::Offset< tt::target::TensorRef > input)
Definition: program_generated.h:2991
Conv2dOp Table
Definition: program_generated.h:2988
void add_out_channels(uint32_t out_channels)
Definition: program_generated.h:3009
::flatbuffers::Offset< Conv2dOp > Finish()
Definition: program_generated.h:3052
void add_stride_width(uint32_t stride_width)
Definition: program_generated.h:3030
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:3003
Conv2dOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3048
void add_groups(uint32_t groups)
Definition: program_generated.h:3045
void add_padding_width(uint32_t padding_width)
Definition: program_generated.h:3036
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:3000
void add_dilation_width(uint32_t dilation_width)
Definition: program_generated.h:3042
void add_kernel_width(uint32_t kernel_width)
Definition: program_generated.h:3024
void add_kernel_height(uint32_t kernel_height)
Definition: program_generated.h:3021
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2990
void add_padding_height(uint32_t padding_height)
Definition: program_generated.h:3033
void add_batch_size(uint32_t batch_size)
Definition: program_generated.h:3012
void add_bias(::flatbuffers::Offset< tt::target::TensorRef > bias)
Definition: program_generated.h:2997
void add_input_height(uint32_t input_height)
Definition: program_generated.h:3015
void add_stride_height(uint32_t stride_height)
Definition: program_generated.h:3027
void add_dilation_height(uint32_t dilation_height)
Definition: program_generated.h:3039
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2989
void add_weight(::flatbuffers::Offset< tt::target::TensorRef > weight)
Definition: program_generated.h:2994
Definition: program_generated.h:3103
static constexpr auto Create
Definition: program_generated.h:3105
Conv2dOp type
Definition: program_generated.h:3104
Definition: program_generated.h:3209
void add_input(::flatbuffers::Offset< tt::target::TensorRef > input)
Definition: program_generated.h:3213
void add_groups(uint32_t groups)
Definition: program_generated.h:3258
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:3225
ConvTranspose2dOp Table
Definition: program_generated.h:3210
void add_input_height(uint32_t input_height)
Definition: program_generated.h:3237
::flatbuffers::Offset< ConvTranspose2dOp > Finish()
Definition: program_generated.h:3265
ConvTranspose2dOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3261
::flatbuffers::uoffset_t start_
Definition: program_generated.h:3212
void add_in_channels(uint32_t in_channels)
Definition: program_generated.h:3228
void add_stride(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> stride)
Definition: program_generated.h:3246
void add_batch_size(uint32_t batch_size)
Definition: program_generated.h:3234
void add_out_channels(uint32_t out_channels)
Definition: program_generated.h:3231
void add_kernel_size(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> kernel_size)
Definition: program_generated.h:3243
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:3222
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:3211
void add_padding(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> padding)
Definition: program_generated.h:3249
void add_weight(::flatbuffers::Offset< tt::target::TensorRef > weight)
Definition: program_generated.h:3216
void add_dilation(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> dilation)
Definition: program_generated.h:3255
void add_bias(::flatbuffers::Offset< tt::target::TensorRef > bias)
Definition: program_generated.h:3219
void add_output_padding(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> output_padding)
Definition: program_generated.h:3252
void add_input_width(uint32_t input_width)
Definition: program_generated.h:3240
Definition: program_generated.h:3310
ConvTranspose2dOp type
Definition: program_generated.h:3311
static constexpr auto Create
Definition: program_generated.h:3312
Definition: program_generated.h:3580
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:3584
DeallocateOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3590
::flatbuffers::uoffset_t start_
Definition: program_generated.h:3583
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:3582
DeallocateOp Table
Definition: program_generated.h:3581
::flatbuffers::Offset< DeallocateOp > Finish()
Definition: program_generated.h:3594
void add_force(bool force)
Definition: program_generated.h:3587
Definition: program_generated.h:3611
DeallocateOp type
Definition: program_generated.h:3612
static constexpr auto Create
Definition: program_generated.h:3613
Definition: program_generated.h:1870
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1880
::flatbuffers::Offset< EltwiseOp > Finish()
Definition: program_generated.h:1893
void add_params(::flatbuffers::Offset< void > params)
Definition: program_generated.h:1886
void add_params_type(tt::target::ttnn::EltwiseOpParams params_type)
Definition: program_generated.h:1883
EltwiseOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1889
void add_ins(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> ins)
Definition: program_generated.h:1877
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1873
void add_type(tt::target::ttnn::EltwiseOpType type)
Definition: program_generated.h:1874
EltwiseOp Table
Definition: program_generated.h:1871
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1872
Definition: program_generated.h:329
static const EltwiseOpParams enum_value
Definition: program_generated.h:330
Definition: program_generated.h:1784
::flatbuffers::Offset< EltwiseOpWithFloatParams > Finish()
Definition: program_generated.h:1795
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1787
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1786
EltwiseOpWithFloatParams Table
Definition: program_generated.h:1785
EltwiseOpWithFloatParamsBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1791
void add_parameter(float parameter)
Definition: program_generated.h:1788
Definition: program_generated.h:1810
static constexpr auto Create
Definition: program_generated.h:1812
EltwiseOpWithFloatParams type
Definition: program_generated.h:1811
Definition: program_generated.h:1916
static constexpr auto Create
Definition: program_generated.h:1918
EltwiseOp type
Definition: program_generated.h:1917
Definition: program_generated.h:2161
::flatbuffers::Offset< EmbeddingBackwardOp > Finish()
Definition: program_generated.h:2187
void add_dtype(tt::target::DataType dtype)
Definition: program_generated.h:2174
void add_in_grad(::flatbuffers::Offset< tt::target::TensorRef > in_grad)
Definition: program_generated.h:2171
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2180
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2163
EmbeddingBackwardOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2183
void add_input(::flatbuffers::Offset< tt::target::TensorRef > input)
Definition: program_generated.h:2165
void add_weight(::flatbuffers::Offset< tt::target::TensorRef > weight)
Definition: program_generated.h:2168
void add_memcfg(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg)
Definition: program_generated.h:2177
EmbeddingBackwardOp Table
Definition: program_generated.h:2162
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2164
Definition: program_generated.h:2212
static constexpr auto Create
Definition: program_generated.h:2214
EmbeddingBackwardOp type
Definition: program_generated.h:2213
Definition: program_generated.h:2074
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2077
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2084
EmbeddingOp Table
Definition: program_generated.h:2075
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2076
::flatbuffers::Offset< EmbeddingOp > Finish()
Definition: program_generated.h:2091
EmbeddingOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2087
void add_input(::flatbuffers::Offset< tt::target::TensorRef > input)
Definition: program_generated.h:2078
void add_weight(::flatbuffers::Offset< tt::target::TensorRef > weight)
Definition: program_generated.h:2081
Definition: program_generated.h:2110
EmbeddingOp type
Definition: program_generated.h:2111
static constexpr auto Create
Definition: program_generated.h:2112
Definition: program_generated.h:1302
EmptyOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1330
void add_layout(tt::target::TensorLayout layout)
Definition: program_generated.h:1312
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shape)
Definition: program_generated.h:1306
::flatbuffers::Offset< EmptyOp > Finish()
Definition: program_generated.h:1334
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:1318
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1304
void add_memcfg(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg)
Definition: program_generated.h:1321
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1327
void add_strategy(::flatbuffers::Offset< tt::target::DistributionStrategy > strategy)
Definition: program_generated.h:1324
void add_dtype(tt::target::DataType dtype)
Definition: program_generated.h:1309
EmptyOp Table
Definition: program_generated.h:1303
void add_num_shards(uint32_t num_shards)
Definition: program_generated.h:1315
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1305
Definition: program_generated.h:1363
static constexpr auto Create
Definition: program_generated.h:1365
EmptyOp type
Definition: program_generated.h:1364
Definition: binary_generated.h:30
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef > > * outputs() const
Definition: program_generated.h:4371
tt::target::DataType dtype() const
Definition: program_generated.h:899
uint32_t padding_width() const
Definition: program_generated.h:2945
uint32_t in_channels() const
Definition: program_generated.h:2915
const tt::target::ttnn::ReshapeOp * type_as_ReshapeOp() const
Definition: program_generated.h:4110
UpdateCacheOpBuilder Builder
Definition: program_generated.h:1039
const ::flatbuffers::Vector< int64_t > * begins() const
Definition: program_generated.h:2630
const ::flatbuffers::Vector< uint32_t > * chip_ids() const
Definition: program_generated.h:646
const ::flatbuffers::String * name() const
Definition: program_generated.h:4365
uint32_t batch_size() const
Definition: program_generated.h:2921
DeallocateOpBuilder Builder
Definition: program_generated.h:3559
const tt::target::ttnn::SoftmaxOp * type_as_SoftmaxOp() const
Definition: program_generated.h:4095
ConvTranspose2dOpBuilder Builder
Definition: program_generated.h:3109
const tt::target::MemoryConfigDesc * memory_config() const
Definition: program_generated.h:3722
ReshapeOpBuilder Builder
Definition: program_generated.h:2449
const tt::target::TensorRef * in() const
Definition: program_generated.h:798
uint32_t input_width() const
Definition: program_generated.h:2927
const tt::target::ttnn::MaxPool2dOp * type_as_MaxPool2dOp() const
Definition: program_generated.h:4116
const ::flatbuffers::Vector< int64_t > * ends() const
Definition: program_generated.h:2633
int32_t dim() const
Definition: program_generated.h:2379
const tt::target::ttnn::ReductionOp * type_as_ReductionOp() const
Definition: program_generated.h:4086
const tt::target::TensorRef * in1() const
Definition: program_generated.h:2737
uint32_t num_links() const
Definition: program_generated.h:3638
ClampOpParamsBuilder Builder
Definition: program_generated.h:1712
::flatbuffers::Optional< tt::target::TensorLayout > layout() const
Definition: program_generated.h:1408
const tt::target::ttnn::EmbeddingOp * type_as_EmbeddingOp() const
Definition: program_generated.h:4089
ReduceScatterOpBuilder Builder
Definition: program_generated.h:3815
const tt::target::ttnn::ConcatOp * type_as_ConcatOp() const
Definition: program_generated.h:4107
const tt::target::TensorRef * weight() const
Definition: program_generated.h:2056
const tt::target::TensorRef * in0() const
Definition: program_generated.h:725
const void * type() const
Definition: program_generated.h:4046
ProgramBuilder Builder
Definition: program_generated.h:4356
uint32_t dim() const
Definition: program_generated.h:3635
const tt::target::TensorRef * bias() const
Definition: program_generated.h:2740
bool ceil_mode() const
Definition: program_generated.h:3418
EltwiseOpBuilder Builder
Definition: program_generated.h:1816
uint32_t dilation_height() const
Definition: program_generated.h:2948
float start() const
Definition: program_generated.h:1613
const ::flatbuffers::Vector< int64_t > * step() const
Definition: program_generated.h:2636
uint32_t batch_offset() const
Definition: program_generated.h:1056
tt::target::MeshShardType shard_type() const
Definition: program_generated.h:3937
const tt::target::TensorRef * update_index() const
Definition: program_generated.h:1053
const tt::target::ttnn::EmptyOp * type_as_EmptyOp() const
Definition: program_generated.h:4068
uint32_t channels() const
Definition: program_generated.h:3397
const ::flatbuffers::String * debug_info() const
Definition: program_generated.h:4146
int32_t dim1() const
Definition: program_generated.h:2304
const ::flatbuffers::Vector< int32_t > * shape() const
Definition: program_generated.h:2462
uint32_t kernel_height() const
Definition: program_generated.h:2930
const tt::target::ttnn::ClampOpParams * params_as_ClampOpParams() const
Definition: program_generated.h:1841
const tt::target::ttnn::SliceOp * type_as_SliceOp() const
Definition: program_generated.h:4113
const tt::target::ttnn::DeallocateOp * type_as_DeallocateOp() const
Definition: program_generated.h:4119
uint32_t kernel_width() const
Definition: program_generated.h:2933
uint32_t stride_width() const
Definition: program_generated.h:2939
int32_t dim0() const
Definition: program_generated.h:2301
uint32_t num_shards() const
Definition: program_generated.h:1268
const tt::target::Dim2d * mesh() const
Definition: program_generated.h:643
const tt::target::ttnn::RepeatOp * type_as_RepeatOp() const
Definition: program_generated.h:4143
const tt::target::ttnn::MeshShardOp * type_as_MeshShardOp() const
Definition: program_generated.h:4128
uint32_t padding_height() const
Definition: program_generated.h:2942
const tt::target::ttnn::ToMemoryConfigOp * type_as_ToMemoryConfigOp() const
Definition: program_generated.h:4053
uint32_t dilation_width() const
Definition: program_generated.h:2951
const tt::target::ttnn::EmbeddingBackwardOp * type_as_EmbeddingBackwardOp() const
Definition: program_generated.h:4092
const tt::target::ttnn::ToLayoutOp * type_as_ToLayoutOp() const
Definition: program_generated.h:4056
EmbeddingOpBuilder Builder
Definition: program_generated.h:2046
const tt::target::ttnn::ArangeOp * type_as_ArangeOp() const
Definition: program_generated.h:4131
const tt::target::ttnn::FromDeviceOp * type_as_FromDeviceOp() const
Definition: program_generated.h:4065
const ::flatbuffers::Vector< int32_t > * dilation() const
Definition: program_generated.h:3171
const ::flatbuffers::Vector< int64_t > * shape() const
Definition: program_generated.h:1259
SliceOpBuilder Builder
Definition: program_generated.h:2615
GetDeviceOpBuilder Builder
Definition: program_generated.h:636
tt::target::TensorLayout layout() const
Definition: program_generated.h:801
const tt::target::ttnn::EltwiseOp * type_as_EltwiseOp() const
Definition: program_generated.h:4077
EmptyOpBuilder Builder
Definition: program_generated.h:1247
const tt::target::ttnn::EltwiseOpWithFloatParams * params_as_EltwiseOpWithFloatParams() const
Definition: program_generated.h:1844
ToDeviceOpBuilder Builder
Definition: program_generated.h:958
const ::flatbuffers::String * loc_info() const
Definition: program_generated.h:4149
uint32_t math_op() const
Definition: program_generated.h:3837
const tt::target::ttnn::TransposeOp * type_as_TransposeOp() const
Definition: program_generated.h:4098
AllGatherOpBuilder Builder
Definition: program_generated.h:3617
bool keep_dim() const
Definition: program_generated.h:1960
uint32_t input_height() const
Definition: program_generated.h:2924
float fill_value() const
Definition: program_generated.h:1524
const tt::target::ttnn::FullOp * type_as_FullOp() const
Definition: program_generated.h:4074
const ::flatbuffers::Vector< int32_t > * stride() const
Definition: program_generated.h:3162
::flatbuffers::Optional< tt::target::DataType > dtype() const
Definition: program_generated.h:804
ArangeOpBuilder Builder
Definition: program_generated.h:1602
ConcatOpBuilder Builder
Definition: program_generated.h:2366
uint32_t stride_height() const
Definition: program_generated.h:2936
FullOpBuilder Builder
Definition: program_generated.h:1512
tt::target::MeshShardDirection shard_direction() const
Definition: program_generated.h:3934
const ::flatbuffers::Vector< int32_t > * padding() const
Definition: program_generated.h:3165
const tt::target::ttnn::LinearOp * type_as_LinearOp() const
Definition: program_generated.h:4080
const tt::target::ttnn::TypecastOp * type_as_TypecastOp() const
Definition: program_generated.h:4059
int32_t dimension() const
Definition: program_generated.h:2231
const ::flatbuffers::Vector< int32_t > * output_padding() const
Definition: program_generated.h:3168
const tt::target::MemoryConfigDesc * memcfg() const
Definition: program_generated.h:728
ToMemoryConfigOpBuilder Builder
Definition: program_generated.h:718
const tt::target::TensorRef * input() const
Definition: program_generated.h:1050
tt::target::ttnn::OpType type_type() const
Definition: program_generated.h:4043
Conv2dOpBuilder Builder
Definition: program_generated.h:2877
float parameter() const
Definition: program_generated.h:1774
const tt::target::ttnn::MatmulOp * type_as_MatmulOp() const
Definition: program_generated.h:4083
const ::flatbuffers::Vector< int32_t > * kernel_size() const
Definition: program_generated.h:3159
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ttnn::Operation > > * operations() const
Definition: program_generated.h:4374
bool Verify(::flatbuffers::Verifier &verifier) const
Definition: program_generated.h:652
const tt::target::ttnn::AllGatherOp * type_as_AllGatherOp() const
Definition: program_generated.h:4122
const tt::target::TensorRef * out() const
Definition: program_generated.h:731
const tt::target::ttnn::Conv2dOp * type_as_Conv2dOp() const
Definition: program_generated.h:4101
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef > > * inputs() const
Definition: program_generated.h:2373
tt::target::ttnn::EltwiseOpType type() const
Definition: program_generated.h:1825
SoftmaxOpBuilder Builder
Definition: program_generated.h:2218
const tt::target::ttnn::PermuteOp * type_as_PermuteOp() const
Definition: program_generated.h:4140
float max() const
Definition: program_generated.h:1721
MaxPool2dOpBuilder Builder
Definition: program_generated.h:3359
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef > > * ins() const
Definition: program_generated.h:1828
ReductionOpBuilder Builder
Definition: program_generated.h:1939
const ::flatbuffers::Vector< int64_t > * shard_shape() const
Definition: program_generated.h:3940
uint32_t groups() const
Definition: program_generated.h:2954
OperationBuilder Builder
Definition: program_generated.h:4035
float pad_value() const
Definition: program_generated.h:3725
const tt::target::ttnn::FillCacheOp * type_as_FillCacheOp() const
Definition: program_generated.h:4137
const tt::target::ttnn::OnesOp * type_as_OnesOp() const
Definition: program_generated.h:4071
FillCacheOpBuilder Builder
Definition: program_generated.h:1119
TransposeOpBuilder Builder
Definition: program_generated.h:2287
tt::target::ttnn::EltwiseOpParams params_type() const
Definition: program_generated.h:1834
tt::target::ttnn::ReductionOpType type() const
Definition: program_generated.h:1948
uint32_t out_channels() const
Definition: program_generated.h:2918
ToLayoutOpBuilder Builder
Definition: program_generated.h:788
const ::flatbuffers::Vector< uint32_t > * shape() const
Definition: program_generated.h:2545
float end() const
Definition: program_generated.h:1616
const tt::target::DeviceRef * out() const
Definition: program_generated.h:649
bool force() const
Definition: program_generated.h:3568
EmbeddingBackwardOpBuilder Builder
Definition: program_generated.h:2116
const void * params() const
Definition: program_generated.h:1837
const tt::target::DebugInfo * debug_info() const
Definition: program_generated.h:4377
PermuteOpBuilder Builder
Definition: program_generated.h:3707
const ::flatbuffers::Vector< int32_t > * dim_arg() const
Definition: program_generated.h:1957
const tt::target::ttnn::ConvTranspose2dOp * type_as_ConvTranspose2dOp() const
Definition: program_generated.h:4104
EltwiseOpWithFloatParamsBuilder Builder
Definition: program_generated.h:1769
float step() const
Definition: program_generated.h:1619
const tt::target::DistributionStrategy * strategy() const
Definition: program_generated.h:1277
OnesOpBuilder Builder
Definition: program_generated.h:1392
const tt::target::DeviceRef * device() const
Definition: program_generated.h:810
const ::flatbuffers::Vector< int64_t > * permutation() const
Definition: program_generated.h:3719
LinearOpBuilder Builder
Definition: program_generated.h:2726
FromDeviceOpBuilder Builder
Definition: program_generated.h:1188
const tt::target::TensorRef * cache() const
Definition: program_generated.h:1047
float min() const
Definition: program_generated.h:1718
MatmulOpBuilder Builder
Definition: program_generated.h:2807
RepeatOpBuilder Builder
Definition: program_generated.h:2532
const tt::target::ttnn::ToDeviceOp * type_as_ToDeviceOp() const
Definition: program_generated.h:4062
uint32_t scatter_split_dim() const
Definition: program_generated.h:3834
const tt::target::ttnn::ReduceScatterOp * type_as_ReduceScatterOp() const
Definition: program_generated.h:4125
const tt::target::ttnn::UpdateCacheOp * type_as_UpdateCacheOp() const
Definition: program_generated.h:4134
const tt::target::ttnn::GetDeviceOp * type_as_GetDeviceOp() const
Definition: program_generated.h:4050
const tt::target::TensorRef * in_grad() const
Definition: program_generated.h:2132
MeshShardOpBuilder Builder
Definition: program_generated.h:3915
TypecastOpBuilder Builder
Definition: program_generated.h:889
Definition: program_generated.h:1146
::flatbuffers::Offset< FillCacheOp > Finish()
Definition: program_generated.h:1163
void add_cache(::flatbuffers::Offset< tt::target::TensorRef > cache)
Definition: program_generated.h:1150
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1149
void add_batch_offset(uint32_t batch_offset)
Definition: program_generated.h:1156
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1148
void add_input(::flatbuffers::Offset< tt::target::TensorRef > input)
Definition: program_generated.h:1153
FillCacheOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1159
FillCacheOp Table
Definition: program_generated.h:1147
Definition: program_generated.h:1182
FillCacheOp type
Definition: program_generated.h:1183
static constexpr auto Create
Definition: program_generated.h:1184
Definition: program_generated.h:1210
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1212
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:1214
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1213
FromDeviceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1220
FromDeviceOp Table
Definition: program_generated.h:1211
::flatbuffers::Offset< FromDeviceOp > Finish()
Definition: program_generated.h:1224
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1217
Definition: program_generated.h:1241
static constexpr auto Create
Definition: program_generated.h:1243
FromDeviceOp type
Definition: program_generated.h:1242
Definition: program_generated.h:1550
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:1554
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1552
void add_num_shards(uint32_t num_shards)
Definition: program_generated.h:1560
::flatbuffers::Offset< FullOp > Finish()
Definition: program_generated.h:1573
void add_strategy(::flatbuffers::Offset< tt::target::DistributionStrategy > strategy)
Definition: program_generated.h:1563
void add_fill_value(float fill_value)
Definition: program_generated.h:1557
FullOp Table
Definition: program_generated.h:1551
FullOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1569
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1553
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1566
Definition: program_generated.h:1596
FullOp type
Definition: program_generated.h:1597
static constexpr auto Create
Definition: program_generated.h:1598
Definition: program_generated.h:663
GetDeviceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:676
::flatbuffers::uoffset_t start_
Definition: program_generated.h:666
::flatbuffers::Offset< GetDeviceOp > Finish()
Definition: program_generated.h:680
void add_chip_ids(::flatbuffers::Offset<::flatbuffers::Vector< uint32_t >> chip_ids)
Definition: program_generated.h:670
void add_mesh(const tt::target::Dim2d *mesh)
Definition: program_generated.h:667
GetDeviceOp Table
Definition: program_generated.h:664
void add_out(::flatbuffers::Offset< tt::target::DeviceRef > out)
Definition: program_generated.h:673
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:665
Definition: program_generated.h:699
GetDeviceOp type
Definition: program_generated.h:700
static constexpr auto Create
Definition: program_generated.h:701
Definition: program_generated.h:2760
LinearOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2776
void add_in0(::flatbuffers::Offset< tt::target::TensorRef > in0)
Definition: program_generated.h:2764
::flatbuffers::Offset< LinearOp > Finish()
Definition: program_generated.h:2780
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2763
void add_in1(::flatbuffers::Offset< tt::target::TensorRef > in1)
Definition: program_generated.h:2767
void add_bias(::flatbuffers::Offset< tt::target::TensorRef > bias)
Definition: program_generated.h:2770
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2773
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2762
LinearOp Table
Definition: program_generated.h:2761
Definition: program_generated.h:2801
static constexpr auto Create
Definition: program_generated.h:2803
LinearOp type
Definition: program_generated.h:2802
Definition: program_generated.h:2835
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2838
::flatbuffers::Offset< MatmulOp > Finish()
Definition: program_generated.h:2852
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2845
MatmulOp Table
Definition: program_generated.h:2836
void add_in1(::flatbuffers::Offset< tt::target::TensorRef > in1)
Definition: program_generated.h:2842
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2837
void add_in0(::flatbuffers::Offset< tt::target::TensorRef > in0)
Definition: program_generated.h:2839
MatmulOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2848
Definition: program_generated.h:2871
static constexpr auto Create
Definition: program_generated.h:2873
MatmulOp type
Definition: program_generated.h:2872
Definition: program_generated.h:3452
void add_input_width(uint32_t input_width)
Definition: program_generated.h:3471
::flatbuffers::uoffset_t start_
Definition: program_generated.h:3455
void add_input_height(uint32_t input_height)
Definition: program_generated.h:3468
MaxPool2dOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3504
void add_stride_height(uint32_t stride_height)
Definition: program_generated.h:3483
void add_ceil_mode(bool ceil_mode)
Definition: program_generated.h:3495
void add_dilation_width(uint32_t dilation_width)
Definition: program_generated.h:3492
void add_padding_height(uint32_t padding_height)
Definition: program_generated.h:3498
void add_kernel_height(uint32_t kernel_height)
Definition: program_generated.h:3477
MaxPool2dOp Table
Definition: program_generated.h:3453
void add_dilation_height(uint32_t dilation_height)
Definition: program_generated.h:3489
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:3456
void add_channels(uint32_t channels)
Definition: program_generated.h:3474
void add_padding_width(uint32_t padding_width)
Definition: program_generated.h:3501
::flatbuffers::Offset< MaxPool2dOp > Finish()
Definition: program_generated.h:3508
void add_kernel_width(uint32_t kernel_width)
Definition: program_generated.h:3480
void add_stride_width(uint32_t stride_width)
Definition: program_generated.h:3486
void add_batch_size(uint32_t batch_size)
Definition: program_generated.h:3465
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:3459
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:3454
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:3462
Definition: program_generated.h:3553
MaxPool2dOp type
Definition: program_generated.h:3554
static constexpr auto Create
Definition: program_generated.h:3555
Definition: program_generated.h:3959
MeshShardOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3981
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:3963
MeshShardOp Table
Definition: program_generated.h:3960
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:3969
::flatbuffers::uoffset_t start_
Definition: program_generated.h:3962
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:3966
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:3961
void add_shard_type(tt::target::MeshShardType shard_type)
Definition: program_generated.h:3975
void add_shard_direction(tt::target::MeshShardDirection shard_direction)
Definition: program_generated.h:3972
void add_shard_shape(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shard_shape)
Definition: program_generated.h:3978
::flatbuffers::Offset< MeshShardOp > Finish()
Definition: program_generated.h:3985
Definition: program_generated.h:4010
MeshShardOp type
Definition: program_generated.h:4011
static constexpr auto Create
Definition: program_generated.h:4012
Definition: program_generated.h:1436
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1455
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:1449
void add_layout(tt::target::TensorLayout layout)
Definition: program_generated.h:1446
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1439
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1438
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shape)
Definition: program_generated.h:1440
void add_dtype(tt::target::DataType dtype)
Definition: program_generated.h:1443
::flatbuffers::Offset< OnesOp > Finish()
Definition: program_generated.h:1462
OnesOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1458
void add_memcfg(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg)
Definition: program_generated.h:1452
OnesOp Table
Definition: program_generated.h:1437
Definition: program_generated.h:1487
OnesOp type
Definition: program_generated.h:1488
static constexpr auto Create
Definition: program_generated.h:1489
Definition: program_generated.h:500
static const OpType enum_value
Definition: program_generated.h:501
Definition: program_generated.h:4293
void add_type(::flatbuffers::Offset< void > type)
Definition: program_generated.h:4300
OperationBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:4309
::flatbuffers::Offset< Operation > Finish()
Definition: program_generated.h:4313
Operation Table
Definition: program_generated.h:4294
void add_debug_info(::flatbuffers::Offset<::flatbuffers::String > debug_info)
Definition: program_generated.h:4303
void add_loc_info(::flatbuffers::Offset<::flatbuffers::String > loc_info)
Definition: program_generated.h:4306
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:4295
::flatbuffers::uoffset_t start_
Definition: program_generated.h:4296
void add_type_type(tt::target::ttnn::OpType type_type)
Definition: program_generated.h:4297
Definition: program_generated.h:4334
static constexpr auto Create
Definition: program_generated.h:4336
Operation type
Definition: program_generated.h:4335
Definition: program_generated.h:3746
::flatbuffers::Offset< PermuteOp > Finish()
Definition: program_generated.h:3769
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:3750
::flatbuffers::uoffset_t start_
Definition: program_generated.h:3749
void add_permutation(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> permutation)
Definition: program_generated.h:3753
PermuteOp Table
Definition: program_generated.h:3747
void add_pad_value(float pad_value)
Definition: program_generated.h:3759
PermuteOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3765
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:3748
void add_memory_config(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memory_config)
Definition: program_generated.h:3756
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:3762
Definition: program_generated.h:3792
static constexpr auto Create
Definition: program_generated.h:3794
PermuteOp type
Definition: program_generated.h:3793
Definition: program_generated.h:4399
Program Table
Definition: program_generated.h:4400
::flatbuffers::uoffset_t start_
Definition: program_generated.h:4402
void add_name(::flatbuffers::Offset<::flatbuffers::String > name)
Definition: program_generated.h:4403
void add_debug_info(::flatbuffers::Offset< tt::target::DebugInfo > debug_info)
Definition: program_generated.h:4415
void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs)
Definition: program_generated.h:4406
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:4401
void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> outputs)
Definition: program_generated.h:4409
::flatbuffers::Offset< Program > Finish()
Definition: program_generated.h:4422
ProgramBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:4418
void add_operations(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ttnn::Operation >>> operations)
Definition: program_generated.h:4412
Definition: program_generated.h:4445
static constexpr auto Create
Definition: program_generated.h:4447
Program type
Definition: program_generated.h:4446
Definition: program_generated.h:3858
void add_num_links(uint32_t num_links)
Definition: program_generated.h:3877
ReduceScatterOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:3880
void add_scatter_split_dim(uint32_t scatter_split_dim)
Definition: program_generated.h:3871
ReduceScatterOp Table
Definition: program_generated.h:3859
void add_math_op(uint32_t math_op)
Definition: program_generated.h:3874
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:3860
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:3862
::flatbuffers::uoffset_t start_
Definition: program_generated.h:3861
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:3865
::flatbuffers::Offset< ReduceScatterOp > Finish()
Definition: program_generated.h:3884
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:3868
Definition: program_generated.h:3909
static constexpr auto Create
Definition: program_generated.h:3911
ReduceScatterOp type
Definition: program_generated.h:3910
Definition: program_generated.h:1977
ReductionOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1996
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:1984
void add_dim_arg(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> dim_arg)
Definition: program_generated.h:1990
::flatbuffers::Offset< ReductionOp > Finish()
Definition: program_generated.h:2000
void add_type(tt::target::ttnn::ReductionOpType type)
Definition: program_generated.h:1981
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1979
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1980
ReductionOp Table
Definition: program_generated.h:1978
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1987
void add_keep_dim(bool keep_dim)
Definition: program_generated.h:1993
Definition: program_generated.h:2023
ReductionOp type
Definition: program_generated.h:2024
static constexpr auto Create
Definition: program_generated.h:2025
Definition: program_generated.h:2560
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< uint32_t >> shape)
Definition: program_generated.h:2570
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2567
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2562
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:2564
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2563
RepeatOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2573
::flatbuffers::Offset< RepeatOp > Finish()
Definition: program_generated.h:2577
RepeatOp Table
Definition: program_generated.h:2561
Definition: program_generated.h:2596
static constexpr auto Create
Definition: program_generated.h:2598
RepeatOp type
Definition: program_generated.h:2597
Definition: program_generated.h:2477
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape)
Definition: program_generated.h:2487
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2480
ReshapeOp Table
Definition: program_generated.h:2478
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2479
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:2481
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2484
::flatbuffers::Offset< ReshapeOp > Finish()
Definition: program_generated.h:2494
ReshapeOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2490
Definition: program_generated.h:2513
static constexpr auto Create
Definition: program_generated.h:2515
ReshapeOp type
Definition: program_generated.h:2514
Definition: program_generated.h:2655
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2657
SliceOp Table
Definition: program_generated.h:2656
void add_step(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> step)
Definition: program_generated.h:2671
void add_begins(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> begins)
Definition: program_generated.h:2665
::flatbuffers::Offset< SliceOp > Finish()
Definition: program_generated.h:2678
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:2659
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2658
void add_ends(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> ends)
Definition: program_generated.h:2668
SliceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2674
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2662
Definition: program_generated.h:2701
SliceOp type
Definition: program_generated.h:2702
static constexpr auto Create
Definition: program_generated.h:2703
Definition: program_generated.h:2245
void add_dimension(int32_t dimension)
Definition: program_generated.h:2255
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2248
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:2249
SoftmaxOp Table
Definition: program_generated.h:2246
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2247
::flatbuffers::Offset< SoftmaxOp > Finish()
Definition: program_generated.h:2262
SoftmaxOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2258
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2252
Definition: program_generated.h:2281
static constexpr auto Create
Definition: program_generated.h:2283
SoftmaxOp type
Definition: program_generated.h:2282
Definition: program_generated.h:992
ToDeviceOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1008
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:1005
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:996
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:999
::flatbuffers::Offset< ToDeviceOp > Finish()
Definition: program_generated.h:1012
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:994
ToDeviceOp Table
Definition: program_generated.h:993
::flatbuffers::uoffset_t start_
Definition: program_generated.h:995
void add_memcfg(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg)
Definition: program_generated.h:1002
Definition: program_generated.h:1033
ToDeviceOp type
Definition: program_generated.h:1034
static constexpr auto Create
Definition: program_generated.h:1035
Definition: program_generated.h:832
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:834
ToLayoutOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:854
ToLayoutOp Table
Definition: program_generated.h:833
::flatbuffers::Offset< ToLayoutOp > Finish()
Definition: program_generated.h:858
void add_layout(tt::target::TensorLayout layout)
Definition: program_generated.h:839
void add_dtype(tt::target::DataType dtype)
Definition: program_generated.h:842
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:836
void add_memcfg(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg)
Definition: program_generated.h:845
void add_device(::flatbuffers::Offset< tt::target::DeviceRef > device)
Definition: program_generated.h:848
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:851
::flatbuffers::uoffset_t start_
Definition: program_generated.h:835
Definition: program_generated.h:883
static constexpr auto Create
Definition: program_generated.h:885
ToLayoutOp type
Definition: program_generated.h:884
Definition: program_generated.h:746
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:756
void add_memcfg(::flatbuffers::Offset< tt::target::MemoryConfigDesc > memcfg)
Definition: program_generated.h:753
::flatbuffers::uoffset_t start_
Definition: program_generated.h:749
ToMemoryConfigOp Table
Definition: program_generated.h:747
void add_in0(::flatbuffers::Offset< tt::target::TensorRef > in0)
Definition: program_generated.h:750
ToMemoryConfigOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:759
::flatbuffers::Offset< ToMemoryConfigOp > Finish()
Definition: program_generated.h:763
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:748
Definition: program_generated.h:782
ToMemoryConfigOp type
Definition: program_generated.h:783
static constexpr auto Create
Definition: program_generated.h:784
Definition: program_generated.h:2319
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:2321
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:2326
void add_dim0(int32_t dim0)
Definition: program_generated.h:2329
::flatbuffers::Offset< TransposeOp > Finish()
Definition: program_generated.h:2339
TransposeOp Table
Definition: program_generated.h:2320
TransposeOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:2335
::flatbuffers::uoffset_t start_
Definition: program_generated.h:2322
void add_dim1(int32_t dim1)
Definition: program_generated.h:2332
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:2323
Definition: program_generated.h:2360
TransposeOp type
Definition: program_generated.h:2361
static constexpr auto Create
Definition: program_generated.h:2362
Definition: program_generated.h:916
::flatbuffers::Offset< TypecastOp > Finish()
Definition: program_generated.h:933
::flatbuffers::uoffset_t start_
Definition: program_generated.h:919
void add_dtype(tt::target::DataType dtype)
Definition: program_generated.h:923
TypecastOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:929
TypecastOp Table
Definition: program_generated.h:917
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:918
void add_out(::flatbuffers::Offset< tt::target::TensorRef > out)
Definition: program_generated.h:926
void add_in(::flatbuffers::Offset< tt::target::TensorRef > in)
Definition: program_generated.h:920
Definition: program_generated.h:952
TypecastOp type
Definition: program_generated.h:953
static constexpr auto Create
Definition: program_generated.h:954
Definition: program_generated.h:1072
void add_input(::flatbuffers::Offset< tt::target::TensorRef > input)
Definition: program_generated.h:1079
void add_batch_offset(uint32_t batch_offset)
Definition: program_generated.h:1085
::flatbuffers::FlatBufferBuilder & fbb_
Definition: program_generated.h:1074
::flatbuffers::uoffset_t start_
Definition: program_generated.h:1075
::flatbuffers::Offset< UpdateCacheOp > Finish()
Definition: program_generated.h:1092
void add_cache(::flatbuffers::Offset< tt::target::TensorRef > cache)
Definition: program_generated.h:1076
UpdateCacheOp Table
Definition: program_generated.h:1073
void add_update_index(::flatbuffers::Offset< tt::target::TensorRef > update_index)
Definition: program_generated.h:1082
UpdateCacheOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: program_generated.h:1088
Definition: program_generated.h:1113
static constexpr auto Create
Definition: program_generated.h:1115
UpdateCacheOp type
Definition: program_generated.h:1114