TT-MLIR
types_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_TYPES_TT_TARGET_H_
5 #define FLATBUFFERS_GENERATED_TYPES_TT_TARGET_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 namespace tt {
17 namespace target {
18 
19 struct Dim2d;
20 
21 struct Dim2dRange;
22 
23 struct ShardSpec;
24 struct ShardSpecBuilder;
25 
26 struct MemoryConfigDesc;
27 struct MemoryConfigDescBuilder;
28 
29 struct ReplicateTensor;
30 struct ReplicateTensorBuilder;
31 
32 struct ShardTensor;
33 struct ShardTensorBuilder;
34 
35 struct ShardTensor2D;
36 struct ShardTensor2DBuilder;
37 
38 struct AllGatherTensor;
39 struct AllGatherTensorBuilder;
40 
41 struct DistributionStrategy;
42 struct DistributionStrategyBuilder;
43 
44 struct MemoryDesc;
45 struct MemoryDescBuilder;
46 
47 struct LayoutDesc;
48 struct LayoutDescBuilder;
49 
50 struct TensorDesc;
51 struct TensorDescBuilder;
52 
53 struct CBDesc;
54 struct CBDescBuilder;
55 
56 struct TensorRef;
57 struct TensorRefBuilder;
58 
59 struct CBRef;
60 struct CBRefBuilder;
61 
62 struct ChipDesc;
63 struct ChipDescBuilder;
64 
65 struct ChipCoord;
66 
67 struct ChipChannel;
68 
69 struct ChipPhysicalCores;
70 struct ChipPhysicalCoresBuilder;
71 
72 struct CPUDesc;
73 struct CPUDescBuilder;
74 
75 struct SystemDesc;
76 struct SystemDescBuilder;
77 
78 struct DeviceRef;
79 struct DeviceRefBuilder;
80 
81 struct EventRef;
82 struct EventRefBuilder;
83 
84 enum class Arch : uint32_t {
85  Grayskull = 0,
86  Wormhole_b0 = 1,
87  Blackhole = 2,
88  MIN = Grayskull,
89  MAX = Blackhole
90 };
91 
92 inline const Arch (&EnumValuesArch())[3] {
93  static const Arch values[] = {
97  };
98  return values;
99 }
100 
101 inline const char * const *EnumNamesArch() {
102  static const char * const names[4] = {
103  "Grayskull",
104  "Wormhole_b0",
105  "Blackhole",
106  nullptr
107  };
108  return names;
109 }
110 
111 inline const char *EnumNameArch(Arch e) {
112  if (::flatbuffers::IsOutRange(e, Arch::Grayskull, Arch::Blackhole)) return "";
113  const size_t index = static_cast<size_t>(e);
114  return EnumNamesArch()[index];
115 }
116 
117 enum class DataType : uint16_t {
118  Float32 = 0,
119  Float16 = 1,
120  BFloat16 = 2,
121  BFP_Float8 = 3,
122  BFP_BFloat8 = 4,
123  BFP_Float4 = 5,
124  BFP_BFloat4 = 6,
125  BFP_Float2 = 7,
126  BFP_BFloat2 = 8,
127  UInt32 = 9,
128  UInt16 = 10,
129  UInt8 = 11,
130  MIN = Float32,
131  MAX = UInt8
132 };
133 
134 inline const DataType (&EnumValuesDataType())[12] {
135  static const DataType values[] = {
148  };
149  return values;
150 }
151 
152 inline const char * const *EnumNamesDataType() {
153  static const char * const names[13] = {
154  "Float32",
155  "Float16",
156  "BFloat16",
157  "BFP_Float8",
158  "BFP_BFloat8",
159  "BFP_Float4",
160  "BFP_BFloat4",
161  "BFP_Float2",
162  "BFP_BFloat2",
163  "UInt32",
164  "UInt16",
165  "UInt8",
166  nullptr
167  };
168  return names;
169 }
170 
171 inline const char *EnumNameDataType(DataType e) {
172  if (::flatbuffers::IsOutRange(e, DataType::Float32, DataType::UInt8)) return "";
173  const size_t index = static_cast<size_t>(e);
174  return EnumNamesDataType()[index];
175 }
176 
177 enum class OOBVal : uint16_t {
178  Undef = 0,
179  Zero = 1,
180  One = 2,
181  Inf = 3,
182  NegInf = 4,
183  MIN = Undef,
184  MAX = NegInf
185 };
186 
187 inline const OOBVal (&EnumValuesOOBVal())[5] {
188  static const OOBVal values[] = {
190  OOBVal::Zero,
191  OOBVal::One,
192  OOBVal::Inf,
194  };
195  return values;
196 }
197 
198 inline const char * const *EnumNamesOOBVal() {
199  static const char * const names[6] = {
200  "Undef",
201  "Zero",
202  "One",
203  "Inf",
204  "NegInf",
205  nullptr
206  };
207  return names;
208 }
209 
210 inline const char *EnumNameOOBVal(OOBVal e) {
211  if (::flatbuffers::IsOutRange(e, OOBVal::Undef, OOBVal::NegInf)) return "";
212  const size_t index = static_cast<size_t>(e);
213  return EnumNamesOOBVal()[index];
214 }
215 
216 enum class MemorySpace : uint16_t {
217  System = 0,
218  SystemMMIO = 1,
219  DeviceDRAM = 2,
220  DeviceL1 = 3,
221  MIN = System,
222  MAX = DeviceL1
223 };
224 
225 inline const MemorySpace (&EnumValuesMemorySpace())[4] {
226  static const MemorySpace values[] = {
231  };
232  return values;
233 }
234 
235 inline const char * const *EnumNamesMemorySpace() {
236  static const char * const names[5] = {
237  "System",
238  "SystemMMIO",
239  "DeviceDRAM",
240  "DeviceL1",
241  nullptr
242  };
243  return names;
244 }
245 
246 inline const char *EnumNameMemorySpace(MemorySpace e) {
247  if (::flatbuffers::IsOutRange(e, MemorySpace::System, MemorySpace::DeviceL1)) return "";
248  const size_t index = static_cast<size_t>(e);
249  return EnumNamesMemorySpace()[index];
250 }
251 
252 enum class ChipCapability : uint32_t {
253  PCIE = 1,
254  HostMMIO = 2,
255  NONE = 0,
256  ANY = 3
257 };
258 FLATBUFFERS_DEFINE_BITMASK_OPERATORS(ChipCapability, uint32_t)
259 
261  static const ChipCapability values[] = {
264  };
265  return values;
266 }
267 
268 inline const char * const *EnumNamesChipCapability() {
269  static const char * const names[3] = {
270  "PCIE",
271  "HostMMIO",
272  nullptr
273  };
274  return names;
275 }
276 
277 inline const char *EnumNameChipCapability(ChipCapability e) {
278  if (::flatbuffers::IsOutRange(e, ChipCapability::PCIE, ChipCapability::HostMMIO)) return "";
279  const size_t index = static_cast<size_t>(e) - static_cast<size_t>(ChipCapability::PCIE);
280  return EnumNamesChipCapability()[index];
281 }
282 
283 enum class TensorMemoryLayout : uint16_t {
284  None = 0,
285  Interleaved = 1,
286  SingleBank = 2,
287  HeightSharded = 3,
288  WidthSharded = 4,
289  BlockSharded = 5,
290  MIN = None,
291  MAX = BlockSharded
292 };
293 
295  static const TensorMemoryLayout values[] = {
302  };
303  return values;
304 }
305 
306 inline const char * const *EnumNamesTensorMemoryLayout() {
307  static const char * const names[7] = {
308  "None",
309  "Interleaved",
310  "SingleBank",
311  "HeightSharded",
312  "WidthSharded",
313  "BlockSharded",
314  nullptr
315  };
316  return names;
317 }
318 
320  if (::flatbuffers::IsOutRange(e, TensorMemoryLayout::None, TensorMemoryLayout::BlockSharded)) return "";
321  const size_t index = static_cast<size_t>(e);
322  return EnumNamesTensorMemoryLayout()[index];
323 }
324 
325 enum class TensorLayout : uint16_t {
326  RowMajor = 0,
327  Tile = 1,
328  Invalid = 2,
329  MIN = RowMajor,
330  MAX = Invalid
331 };
332 
333 inline const TensorLayout (&EnumValuesTensorLayout())[3] {
334  static const TensorLayout values[] = {
338  };
339  return values;
340 }
341 
342 inline const char * const *EnumNamesTensorLayout() {
343  static const char * const names[4] = {
344  "RowMajor",
345  "Tile",
346  "Invalid",
347  nullptr
348  };
349  return names;
350 }
351 
352 inline const char *EnumNameTensorLayout(TensorLayout e) {
353  if (::flatbuffers::IsOutRange(e, TensorLayout::RowMajor, TensorLayout::Invalid)) return "";
354  const size_t index = static_cast<size_t>(e);
355  return EnumNamesTensorLayout()[index];
356 }
357 
358 enum class BufferType : uint16_t {
359  DRAM = 0,
360  L1 = 1,
361  SystemMemory = 2,
362  L1Small = 3,
363  Trace = 4,
364  MIN = DRAM,
365  MAX = Trace
366 };
367 
368 inline const BufferType (&EnumValuesBufferType())[5] {
369  static const BufferType values[] = {
375  };
376  return values;
377 }
378 
379 inline const char * const *EnumNamesBufferType() {
380  static const char * const names[6] = {
381  "DRAM",
382  "L1",
383  "SystemMemory",
384  "L1Small",
385  "Trace",
386  nullptr
387  };
388  return names;
389 }
390 
391 inline const char *EnumNameBufferType(BufferType e) {
392  if (::flatbuffers::IsOutRange(e, BufferType::DRAM, BufferType::Trace)) return "";
393  const size_t index = static_cast<size_t>(e);
394  return EnumNamesBufferType()[index];
395 }
396 
397 enum class DistributedTensorConfig : uint8_t {
398  NONE = 0,
399  ReplicateTensor = 1,
400  ShardTensor = 2,
401  ShardTensor2D = 3,
402  AllGatherTensor = 4,
403  MIN = NONE,
405 };
406 
408  static const DistributedTensorConfig values[] = {
414  };
415  return values;
416 }
417 
418 inline const char * const *EnumNamesDistributedTensorConfig() {
419  static const char * const names[6] = {
420  "NONE",
421  "ReplicateTensor",
422  "ShardTensor",
423  "ShardTensor2D",
424  "AllGatherTensor",
425  nullptr
426  };
427  return names;
428 }
429 
431  if (::flatbuffers::IsOutRange(e, DistributedTensorConfig::NONE, DistributedTensorConfig::AllGatherTensor)) return "";
432  const size_t index = static_cast<size_t>(e);
433  return EnumNamesDistributedTensorConfig()[index];
434 }
435 
436 template<typename T> struct DistributedTensorConfigTraits {
438 };
439 
440 template<> struct DistributedTensorConfigTraits<tt::target::ReplicateTensor> {
442 };
443 
444 template<> struct DistributedTensorConfigTraits<tt::target::ShardTensor> {
446 };
447 
448 template<> struct DistributedTensorConfigTraits<tt::target::ShardTensor2D> {
450 };
451 
452 template<> struct DistributedTensorConfigTraits<tt::target::AllGatherTensor> {
454 };
455 
456 bool VerifyDistributedTensorConfig(::flatbuffers::Verifier &verifier, const void *obj, DistributedTensorConfig type);
457 bool VerifyDistributedTensorConfigVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<DistributedTensorConfig> *types);
458 
459 enum class CPURole : uint8_t {
460  Host = 0,
461  Device = 1,
462  MIN = Host,
463  MAX = Device
464 };
465 
466 inline const CPURole (&EnumValuesCPURole())[2] {
467  static const CPURole values[] = {
470  };
471  return values;
472 }
473 
474 inline const char * const *EnumNamesCPURole() {
475  static const char * const names[3] = {
476  "Host",
477  "Device",
478  nullptr
479  };
480  return names;
481 }
482 
483 inline const char *EnumNameCPURole(CPURole e) {
484  if (::flatbuffers::IsOutRange(e, CPURole::Host, CPURole::Device)) return "";
485  const size_t index = static_cast<size_t>(e);
486  return EnumNamesCPURole()[index];
487 }
488 
489 enum class MathFidelity : uint8_t {
490  LoFi = 0,
491  HiFi2 = 2,
492  HiFi3 = 3,
493  HiFi4 = 4,
494  MIN = LoFi,
495  MAX = HiFi4
496 };
497 
498 inline const MathFidelity (&EnumValuesMathFidelity())[4] {
499  static const MathFidelity values[] = {
504  };
505  return values;
506 }
507 
508 inline const char * const *EnumNamesMathFidelity() {
509  static const char * const names[6] = {
510  "LoFi",
511  "",
512  "HiFi2",
513  "HiFi3",
514  "HiFi4",
515  nullptr
516  };
517  return names;
518 }
519 
520 inline const char *EnumNameMathFidelity(MathFidelity e) {
521  if (::flatbuffers::IsOutRange(e, MathFidelity::LoFi, MathFidelity::HiFi4)) return "";
522  const size_t index = static_cast<size_t>(e);
523  return EnumNamesMathFidelity()[index];
524 }
525 
527  private:
528  int32_t y_;
529  int32_t x_;
530 
531  public:
532  struct Traits;
533  Dim2d()
534  : y_(0),
535  x_(0) {
536  }
537  Dim2d(int32_t _y, int32_t _x)
538  : y_(::flatbuffers::EndianScalar(_y)),
539  x_(::flatbuffers::EndianScalar(_x)) {
540  }
541  int32_t y() const {
542  return ::flatbuffers::EndianScalar(y_);
543  }
544  int32_t x() const {
545  return ::flatbuffers::EndianScalar(x_);
546  }
547 };
549 
551  using type = Dim2d;
552 };
553 
555  private:
556  tt::target::Dim2d loc_;
557  tt::target::Dim2d size_;
558 
559  public:
560  struct Traits;
561  Dim2dRange()
562  : loc_(),
563  size_() {
564  }
565  Dim2dRange(const tt::target::Dim2d &_loc, const tt::target::Dim2d &_size)
566  : loc_(_loc),
567  size_(_size) {
568  }
569  const tt::target::Dim2d &loc() const {
570  return loc_;
571  }
572  const tt::target::Dim2d &size() const {
573  return size_;
574  }
575 };
576 FLATBUFFERS_STRUCT_END(Dim2dRange, 16);
577 
579  using type = Dim2dRange;
580 };
581 
583  private:
584  uint32_t rack_;
585  uint32_t shelf_;
586  uint32_t y_;
587  uint32_t x_;
588 
589  public:
590  struct Traits;
591  ChipCoord()
592  : rack_(0),
593  shelf_(0),
594  y_(0),
595  x_(0) {
596  }
597  ChipCoord(uint32_t _rack, uint32_t _shelf, uint32_t _y, uint32_t _x)
598  : rack_(::flatbuffers::EndianScalar(_rack)),
599  shelf_(::flatbuffers::EndianScalar(_shelf)),
600  y_(::flatbuffers::EndianScalar(_y)),
601  x_(::flatbuffers::EndianScalar(_x)) {
602  }
603  uint32_t rack() const {
604  return ::flatbuffers::EndianScalar(rack_);
605  }
606  uint32_t shelf() const {
607  return ::flatbuffers::EndianScalar(shelf_);
608  }
609  uint32_t y() const {
610  return ::flatbuffers::EndianScalar(y_);
611  }
612  uint32_t x() const {
613  return ::flatbuffers::EndianScalar(x_);
614  }
615 };
616 FLATBUFFERS_STRUCT_END(ChipCoord, 16);
617 
619  using type = ChipCoord;
620 };
621 
623  private:
624  uint32_t device_id0_;
625  tt::target::Dim2d ethernet_core_coord0_;
626  uint32_t device_id1_;
627  tt::target::Dim2d ethernet_core_coord1_;
628 
629  public:
630  struct Traits;
631  ChipChannel()
632  : device_id0_(0),
633  ethernet_core_coord0_(),
634  device_id1_(0),
635  ethernet_core_coord1_() {
636  }
637  ChipChannel(uint32_t _device_id0, const tt::target::Dim2d &_ethernet_core_coord0, uint32_t _device_id1, const tt::target::Dim2d &_ethernet_core_coord1)
638  : device_id0_(::flatbuffers::EndianScalar(_device_id0)),
639  ethernet_core_coord0_(_ethernet_core_coord0),
640  device_id1_(::flatbuffers::EndianScalar(_device_id1)),
641  ethernet_core_coord1_(_ethernet_core_coord1) {
642  }
643  uint32_t device_id0() const {
644  return ::flatbuffers::EndianScalar(device_id0_);
645  }
646  const tt::target::Dim2d &ethernet_core_coord0() const {
647  return ethernet_core_coord0_;
648  }
649  uint32_t device_id1() const {
650  return ::flatbuffers::EndianScalar(device_id1_);
651  }
652  const tt::target::Dim2d &ethernet_core_coord1() const {
653  return ethernet_core_coord1_;
654  }
655 };
656 FLATBUFFERS_STRUCT_END(ChipChannel, 24);
657 
659  using type = ChipChannel;
660 };
661 
662 struct ShardSpec FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
664  struct Traits;
665  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
666  VT_SHARD_SHAPE = 4
667  };
668  const ::flatbuffers::Vector<int64_t> *shard_shape() const {
669  return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_SHARD_SHAPE);
670  }
671  bool Verify(::flatbuffers::Verifier &verifier) const {
672  return VerifyTableStart(verifier) &&
673  VerifyOffset(verifier, VT_SHARD_SHAPE) &&
674  verifier.VerifyVector(shard_shape()) &&
675  verifier.EndTable();
676  }
677 };
678 
680  typedef ShardSpec Table;
681  ::flatbuffers::FlatBufferBuilder &fbb_;
682  ::flatbuffers::uoffset_t start_;
683  void add_shard_shape(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape) {
684  fbb_.AddOffset(ShardSpec::VT_SHARD_SHAPE, shard_shape);
685  }
686  explicit ShardSpecBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
687  : fbb_(_fbb) {
688  start_ = fbb_.StartTable();
689  }
690  ::flatbuffers::Offset<ShardSpec> Finish() {
691  const auto end = fbb_.EndTable(start_);
692  auto o = ::flatbuffers::Offset<ShardSpec>(end);
693  return o;
694  }
695 };
696 
697 inline ::flatbuffers::Offset<ShardSpec> CreateShardSpec(
698  ::flatbuffers::FlatBufferBuilder &_fbb,
699  ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape = 0) {
700  ShardSpecBuilder builder_(_fbb);
701  builder_.add_shard_shape(shard_shape);
702  return builder_.Finish();
703 }
704 
706  using type = ShardSpec;
707  static auto constexpr Create = CreateShardSpec;
708 };
709 
710 inline ::flatbuffers::Offset<ShardSpec> CreateShardSpecDirect(
711  ::flatbuffers::FlatBufferBuilder &_fbb,
712  const std::vector<int64_t> *shard_shape = nullptr) {
713  auto shard_shape__ = shard_shape ? _fbb.CreateVector<int64_t>(*shard_shape) : 0;
715  _fbb,
716  shard_shape__);
717 }
718 
719 struct MemoryConfigDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
721  struct Traits;
722  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
725  VT_SHARD_SPEC = 8
726  };
728  return static_cast<tt::target::TensorMemoryLayout>(GetField<uint16_t>(VT_TENSOR_MEMORY_LAYOUT, 0));
729  }
731  return static_cast<tt::target::BufferType>(GetField<uint16_t>(VT_BUFFER_TYPE, 0));
732  }
733  const tt::target::ShardSpec *shard_spec() const {
734  return GetPointer<const tt::target::ShardSpec *>(VT_SHARD_SPEC);
735  }
736  bool Verify(::flatbuffers::Verifier &verifier) const {
737  return VerifyTableStart(verifier) &&
738  VerifyField<uint16_t>(verifier, VT_TENSOR_MEMORY_LAYOUT, 2) &&
739  VerifyField<uint16_t>(verifier, VT_BUFFER_TYPE, 2) &&
740  VerifyOffset(verifier, VT_SHARD_SPEC) &&
741  verifier.VerifyTable(shard_spec()) &&
742  verifier.EndTable();
743  }
744 };
745 
747  typedef MemoryConfigDesc Table;
748  ::flatbuffers::FlatBufferBuilder &fbb_;
749  ::flatbuffers::uoffset_t start_;
751  fbb_.AddElement<uint16_t>(MemoryConfigDesc::VT_TENSOR_MEMORY_LAYOUT, static_cast<uint16_t>(tensor_memory_layout), 0);
752  }
754  fbb_.AddElement<uint16_t>(MemoryConfigDesc::VT_BUFFER_TYPE, static_cast<uint16_t>(buffer_type), 0);
755  }
756  void add_shard_spec(::flatbuffers::Offset<tt::target::ShardSpec> shard_spec) {
757  fbb_.AddOffset(MemoryConfigDesc::VT_SHARD_SPEC, shard_spec);
758  }
759  explicit MemoryConfigDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
760  : fbb_(_fbb) {
761  start_ = fbb_.StartTable();
762  }
763  ::flatbuffers::Offset<MemoryConfigDesc> Finish() {
764  const auto end = fbb_.EndTable(start_);
765  auto o = ::flatbuffers::Offset<MemoryConfigDesc>(end);
766  return o;
767  }
768 };
769 
770 inline ::flatbuffers::Offset<MemoryConfigDesc> CreateMemoryConfigDesc(
771  ::flatbuffers::FlatBufferBuilder &_fbb,
774  ::flatbuffers::Offset<tt::target::ShardSpec> shard_spec = 0) {
775  MemoryConfigDescBuilder builder_(_fbb);
776  builder_.add_shard_spec(shard_spec);
777  builder_.add_buffer_type(buffer_type);
778  builder_.add_tensor_memory_layout(tensor_memory_layout);
779  return builder_.Finish();
780 }
781 
783  using type = MemoryConfigDesc;
784  static auto constexpr Create = CreateMemoryConfigDesc;
785 };
786 
787 struct ReplicateTensor FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
789  struct Traits;
790  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
791  VT_REPLICATION_FACTOR = 4
792  };
793  uint32_t replication_factor() const {
794  return GetField<uint32_t>(VT_REPLICATION_FACTOR, 0);
795  }
796  bool Verify(::flatbuffers::Verifier &verifier) const {
797  return VerifyTableStart(verifier) &&
798  VerifyField<uint32_t>(verifier, VT_REPLICATION_FACTOR, 4) &&
799  verifier.EndTable();
800  }
801 };
802 
805  ::flatbuffers::FlatBufferBuilder &fbb_;
806  ::flatbuffers::uoffset_t start_;
807  void add_replication_factor(uint32_t replication_factor) {
808  fbb_.AddElement<uint32_t>(ReplicateTensor::VT_REPLICATION_FACTOR, replication_factor, 0);
809  }
810  explicit ReplicateTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
811  : fbb_(_fbb) {
812  start_ = fbb_.StartTable();
813  }
814  ::flatbuffers::Offset<ReplicateTensor> Finish() {
815  const auto end = fbb_.EndTable(start_);
816  auto o = ::flatbuffers::Offset<ReplicateTensor>(end);
817  return o;
818  }
819 };
820 
821 inline ::flatbuffers::Offset<ReplicateTensor> CreateReplicateTensor(
822  ::flatbuffers::FlatBufferBuilder &_fbb,
823  uint32_t replication_factor = 0) {
824  ReplicateTensorBuilder builder_(_fbb);
825  builder_.add_replication_factor(replication_factor);
826  return builder_.Finish();
827 }
828 
831  static auto constexpr Create = CreateReplicateTensor;
832 };
833 
834 struct ShardTensor FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
836  struct Traits;
837  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
838  VT_SHARD_DIM = 4
839  };
840  uint32_t shard_dim() const {
841  return GetField<uint32_t>(VT_SHARD_DIM, 0);
842  }
843  bool Verify(::flatbuffers::Verifier &verifier) const {
844  return VerifyTableStart(verifier) &&
845  VerifyField<uint32_t>(verifier, VT_SHARD_DIM, 4) &&
846  verifier.EndTable();
847  }
848 };
849 
852  ::flatbuffers::FlatBufferBuilder &fbb_;
853  ::flatbuffers::uoffset_t start_;
854  void add_shard_dim(uint32_t shard_dim) {
855  fbb_.AddElement<uint32_t>(ShardTensor::VT_SHARD_DIM, shard_dim, 0);
856  }
857  explicit ShardTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
858  : fbb_(_fbb) {
859  start_ = fbb_.StartTable();
860  }
861  ::flatbuffers::Offset<ShardTensor> Finish() {
862  const auto end = fbb_.EndTable(start_);
863  auto o = ::flatbuffers::Offset<ShardTensor>(end);
864  return o;
865  }
866 };
867 
868 inline ::flatbuffers::Offset<ShardTensor> CreateShardTensor(
869  ::flatbuffers::FlatBufferBuilder &_fbb,
870  uint32_t shard_dim = 0) {
871  ShardTensorBuilder builder_(_fbb);
872  builder_.add_shard_dim(shard_dim);
873  return builder_.Finish();
874 }
875 
877  using type = ShardTensor;
878  static auto constexpr Create = CreateShardTensor;
879 };
880 
881 struct ShardTensor2D FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
883  struct Traits;
884  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
885  VT_SHARD_MESH = 4
886  };
887  const tt::target::Dim2d *shard_mesh() const {
888  return GetStruct<const tt::target::Dim2d *>(VT_SHARD_MESH);
889  }
890  bool Verify(::flatbuffers::Verifier &verifier) const {
891  return VerifyTableStart(verifier) &&
892  VerifyField<tt::target::Dim2d>(verifier, VT_SHARD_MESH, 4) &&
893  verifier.EndTable();
894  }
895 };
896 
899  ::flatbuffers::FlatBufferBuilder &fbb_;
900  ::flatbuffers::uoffset_t start_;
901  void add_shard_mesh(const tt::target::Dim2d *shard_mesh) {
902  fbb_.AddStruct(ShardTensor2D::VT_SHARD_MESH, shard_mesh);
903  }
904  explicit ShardTensor2DBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
905  : fbb_(_fbb) {
906  start_ = fbb_.StartTable();
907  }
908  ::flatbuffers::Offset<ShardTensor2D> Finish() {
909  const auto end = fbb_.EndTable(start_);
910  auto o = ::flatbuffers::Offset<ShardTensor2D>(end);
911  return o;
912  }
913 };
914 
915 inline ::flatbuffers::Offset<ShardTensor2D> CreateShardTensor2D(
916  ::flatbuffers::FlatBufferBuilder &_fbb,
917  const tt::target::Dim2d *shard_mesh = nullptr) {
918  ShardTensor2DBuilder builder_(_fbb);
919  builder_.add_shard_mesh(shard_mesh);
920  return builder_.Finish();
921 }
922 
925  static auto constexpr Create = CreateShardTensor2D;
926 };
927 
928 struct AllGatherTensor FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
930  struct Traits;
931  bool Verify(::flatbuffers::Verifier &verifier) const {
932  return VerifyTableStart(verifier) &&
933  verifier.EndTable();
934  }
935 };
936 
939  ::flatbuffers::FlatBufferBuilder &fbb_;
940  ::flatbuffers::uoffset_t start_;
941  explicit AllGatherTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
942  : fbb_(_fbb) {
943  start_ = fbb_.StartTable();
944  }
945  ::flatbuffers::Offset<AllGatherTensor> Finish() {
946  const auto end = fbb_.EndTable(start_);
947  auto o = ::flatbuffers::Offset<AllGatherTensor>(end);
948  return o;
949  }
950 };
951 
952 inline ::flatbuffers::Offset<AllGatherTensor> CreateAllGatherTensor(
953  ::flatbuffers::FlatBufferBuilder &_fbb) {
954  AllGatherTensorBuilder builder_(_fbb);
955  return builder_.Finish();
956 }
957 
960  static auto constexpr Create = CreateAllGatherTensor;
961 };
962 
963 struct DistributionStrategy FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
965  struct Traits;
966  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
968  VT_STRATEGY = 6
969  };
971  return static_cast<tt::target::DistributedTensorConfig>(GetField<uint8_t>(VT_STRATEGY_TYPE, 0));
972  }
973  const void *strategy() const {
974  return GetPointer<const void *>(VT_STRATEGY);
975  }
976  template<typename T> const T *strategy_as() const;
977  const tt::target::ReplicateTensor *strategy_as_ReplicateTensor() const {
978  return strategy_type() == tt::target::DistributedTensorConfig::ReplicateTensor ? static_cast<const tt::target::ReplicateTensor *>(strategy()) : nullptr;
979  }
980  const tt::target::ShardTensor *strategy_as_ShardTensor() const {
981  return strategy_type() == tt::target::DistributedTensorConfig::ShardTensor ? static_cast<const tt::target::ShardTensor *>(strategy()) : nullptr;
982  }
983  const tt::target::ShardTensor2D *strategy_as_ShardTensor2D() const {
984  return strategy_type() == tt::target::DistributedTensorConfig::ShardTensor2D ? static_cast<const tt::target::ShardTensor2D *>(strategy()) : nullptr;
985  }
986  const tt::target::AllGatherTensor *strategy_as_AllGatherTensor() const {
987  return strategy_type() == tt::target::DistributedTensorConfig::AllGatherTensor ? static_cast<const tt::target::AllGatherTensor *>(strategy()) : nullptr;
988  }
989  bool Verify(::flatbuffers::Verifier &verifier) const {
990  return VerifyTableStart(verifier) &&
991  VerifyField<uint8_t>(verifier, VT_STRATEGY_TYPE, 1) &&
992  VerifyOffset(verifier, VT_STRATEGY) &&
993  VerifyDistributedTensorConfig(verifier, strategy(), strategy_type()) &&
994  verifier.EndTable();
995  }
996 };
997 
998 template<> inline const tt::target::ReplicateTensor *DistributionStrategy::strategy_as<tt::target::ReplicateTensor>() const {
999  return strategy_as_ReplicateTensor();
1000 }
1001 
1002 template<> inline const tt::target::ShardTensor *DistributionStrategy::strategy_as<tt::target::ShardTensor>() const {
1003  return strategy_as_ShardTensor();
1004 }
1005 
1006 template<> inline const tt::target::ShardTensor2D *DistributionStrategy::strategy_as<tt::target::ShardTensor2D>() const {
1007  return strategy_as_ShardTensor2D();
1008 }
1009 
1010 template<> inline const tt::target::AllGatherTensor *DistributionStrategy::strategy_as<tt::target::AllGatherTensor>() const {
1011  return strategy_as_AllGatherTensor();
1012 }
1013 
1015  typedef DistributionStrategy Table;
1016  ::flatbuffers::FlatBufferBuilder &fbb_;
1017  ::flatbuffers::uoffset_t start_;
1019  fbb_.AddElement<uint8_t>(DistributionStrategy::VT_STRATEGY_TYPE, static_cast<uint8_t>(strategy_type), 0);
1020  }
1021  void add_strategy(::flatbuffers::Offset<void> strategy) {
1022  fbb_.AddOffset(DistributionStrategy::VT_STRATEGY, strategy);
1023  }
1024  explicit DistributionStrategyBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1025  : fbb_(_fbb) {
1026  start_ = fbb_.StartTable();
1027  }
1028  ::flatbuffers::Offset<DistributionStrategy> Finish() {
1029  const auto end = fbb_.EndTable(start_);
1030  auto o = ::flatbuffers::Offset<DistributionStrategy>(end);
1031  return o;
1032  }
1033 };
1034 
1035 inline ::flatbuffers::Offset<DistributionStrategy> CreateDistributionStrategy(
1036  ::flatbuffers::FlatBufferBuilder &_fbb,
1038  ::flatbuffers::Offset<void> strategy = 0) {
1039  DistributionStrategyBuilder builder_(_fbb);
1040  builder_.add_strategy(strategy);
1041  builder_.add_strategy_type(strategy_type);
1042  return builder_.Finish();
1043 }
1044 
1046  using type = DistributionStrategy;
1047  static auto constexpr Create = CreateDistributionStrategy;
1048 };
1049 
1050 struct MemoryDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1052  struct Traits;
1053  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1059  VT_SIZE = 14
1060  };
1061  const ::flatbuffers::Vector<int32_t> *shape() const {
1062  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_SHAPE);
1063  }
1064  const tt::target::Dim2d *tile_shape() const {
1065  return GetStruct<const tt::target::Dim2d *>(VT_TILE_SHAPE);
1066  }
1068  return static_cast<tt::target::DataType>(GetField<uint16_t>(VT_DATA_TYPE, 0));
1069  }
1071  return static_cast<tt::target::MemorySpace>(GetField<uint16_t>(VT_MEMORY_SPACE, 0));
1072  }
1074  return static_cast<tt::target::TensorMemoryLayout>(GetField<uint16_t>(VT_MEMORY_LAYOUT, 0));
1075  }
1076  uint64_t size() const {
1077  return GetField<uint64_t>(VT_SIZE, 0);
1078  }
1079  bool Verify(::flatbuffers::Verifier &verifier) const {
1080  return VerifyTableStart(verifier) &&
1081  VerifyOffset(verifier, VT_SHAPE) &&
1082  verifier.VerifyVector(shape()) &&
1083  VerifyField<tt::target::Dim2d>(verifier, VT_TILE_SHAPE, 4) &&
1084  VerifyField<uint16_t>(verifier, VT_DATA_TYPE, 2) &&
1085  VerifyField<uint16_t>(verifier, VT_MEMORY_SPACE, 2) &&
1086  VerifyField<uint16_t>(verifier, VT_MEMORY_LAYOUT, 2) &&
1087  VerifyField<uint64_t>(verifier, VT_SIZE, 8) &&
1088  verifier.EndTable();
1089  }
1090 };
1091 
1093  typedef MemoryDesc Table;
1094  ::flatbuffers::FlatBufferBuilder &fbb_;
1095  ::flatbuffers::uoffset_t start_;
1096  void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape) {
1097  fbb_.AddOffset(MemoryDesc::VT_SHAPE, shape);
1098  }
1099  void add_tile_shape(const tt::target::Dim2d *tile_shape) {
1100  fbb_.AddStruct(MemoryDesc::VT_TILE_SHAPE, tile_shape);
1101  }
1103  fbb_.AddElement<uint16_t>(MemoryDesc::VT_DATA_TYPE, static_cast<uint16_t>(data_type), 0);
1104  }
1106  fbb_.AddElement<uint16_t>(MemoryDesc::VT_MEMORY_SPACE, static_cast<uint16_t>(memory_space), 0);
1107  }
1109  fbb_.AddElement<uint16_t>(MemoryDesc::VT_MEMORY_LAYOUT, static_cast<uint16_t>(memory_layout), 0);
1110  }
1111  void add_size(uint64_t size) {
1112  fbb_.AddElement<uint64_t>(MemoryDesc::VT_SIZE, size, 0);
1113  }
1114  explicit MemoryDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1115  : fbb_(_fbb) {
1116  start_ = fbb_.StartTable();
1117  }
1118  ::flatbuffers::Offset<MemoryDesc> Finish() {
1119  const auto end = fbb_.EndTable(start_);
1120  auto o = ::flatbuffers::Offset<MemoryDesc>(end);
1121  return o;
1122  }
1123 };
1124 
1125 inline ::flatbuffers::Offset<MemoryDesc> CreateMemoryDesc(
1126  ::flatbuffers::FlatBufferBuilder &_fbb,
1127  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape = 0,
1128  const tt::target::Dim2d *tile_shape = nullptr,
1132  uint64_t size = 0) {
1133  MemoryDescBuilder builder_(_fbb);
1134  builder_.add_size(size);
1135  builder_.add_tile_shape(tile_shape);
1136  builder_.add_shape(shape);
1137  builder_.add_memory_layout(memory_layout);
1138  builder_.add_memory_space(memory_space);
1139  builder_.add_data_type(data_type);
1140  return builder_.Finish();
1141 }
1142 
1144  using type = MemoryDesc;
1145  static auto constexpr Create = CreateMemoryDesc;
1146 };
1147 
1148 inline ::flatbuffers::Offset<MemoryDesc> CreateMemoryDescDirect(
1149  ::flatbuffers::FlatBufferBuilder &_fbb,
1150  const std::vector<int32_t> *shape = nullptr,
1151  const tt::target::Dim2d *tile_shape = nullptr,
1155  uint64_t size = 0) {
1156  auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0;
1158  _fbb,
1159  shape__,
1160  tile_shape,
1161  data_type,
1162  memory_space,
1163  memory_layout,
1164  size);
1165 }
1166 
1167 struct LayoutDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1169  struct Traits;
1170  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1175  VT_STRATEGY = 12
1176  };
1177  const ::flatbuffers::Vector<int32_t> *stride() const {
1178  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_STRIDE);
1179  }
1181  return static_cast<tt::target::OOBVal>(GetField<uint16_t>(VT_OOB_VAL, 0));
1182  }
1183  const ::flatbuffers::Vector<const tt::target::Dim2dRange *> *core_range_set() const {
1184  return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2dRange *> *>(VT_CORE_RANGE_SET);
1185  }
1186  const tt::target::MemoryDesc *memory_desc() const {
1187  return GetPointer<const tt::target::MemoryDesc *>(VT_MEMORY_DESC);
1188  }
1189  const tt::target::DistributionStrategy *strategy() const {
1190  return GetPointer<const tt::target::DistributionStrategy *>(VT_STRATEGY);
1191  }
1192  bool Verify(::flatbuffers::Verifier &verifier) const {
1193  return VerifyTableStart(verifier) &&
1194  VerifyOffset(verifier, VT_STRIDE) &&
1195  verifier.VerifyVector(stride()) &&
1196  VerifyField<uint16_t>(verifier, VT_OOB_VAL, 2) &&
1197  VerifyOffset(verifier, VT_CORE_RANGE_SET) &&
1198  verifier.VerifyVector(core_range_set()) &&
1199  VerifyOffset(verifier, VT_MEMORY_DESC) &&
1200  verifier.VerifyTable(memory_desc()) &&
1201  VerifyOffset(verifier, VT_STRATEGY) &&
1202  verifier.VerifyTable(strategy()) &&
1203  verifier.EndTable();
1204  }
1205 };
1206 
1208  typedef LayoutDesc Table;
1209  ::flatbuffers::FlatBufferBuilder &fbb_;
1210  ::flatbuffers::uoffset_t start_;
1211  void add_stride(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> stride) {
1212  fbb_.AddOffset(LayoutDesc::VT_STRIDE, stride);
1213  }
1215  fbb_.AddElement<uint16_t>(LayoutDesc::VT_OOB_VAL, static_cast<uint16_t>(oob_val), 0);
1216  }
1217  void add_core_range_set(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2dRange *>> core_range_set) {
1218  fbb_.AddOffset(LayoutDesc::VT_CORE_RANGE_SET, core_range_set);
1219  }
1220  void add_memory_desc(::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc) {
1221  fbb_.AddOffset(LayoutDesc::VT_MEMORY_DESC, memory_desc);
1222  }
1223  void add_strategy(::flatbuffers::Offset<tt::target::DistributionStrategy> strategy) {
1224  fbb_.AddOffset(LayoutDesc::VT_STRATEGY, strategy);
1225  }
1226  explicit LayoutDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1227  : fbb_(_fbb) {
1228  start_ = fbb_.StartTable();
1229  }
1230  ::flatbuffers::Offset<LayoutDesc> Finish() {
1231  const auto end = fbb_.EndTable(start_);
1232  auto o = ::flatbuffers::Offset<LayoutDesc>(end);
1233  return o;
1234  }
1235 };
1236 
1237 inline ::flatbuffers::Offset<LayoutDesc> CreateLayoutDesc(
1238  ::flatbuffers::FlatBufferBuilder &_fbb,
1239  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> stride = 0,
1241  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2dRange *>> core_range_set = 0,
1242  ::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc = 0,
1243  ::flatbuffers::Offset<tt::target::DistributionStrategy> strategy = 0) {
1244  LayoutDescBuilder builder_(_fbb);
1245  builder_.add_strategy(strategy);
1246  builder_.add_memory_desc(memory_desc);
1247  builder_.add_core_range_set(core_range_set);
1248  builder_.add_stride(stride);
1249  builder_.add_oob_val(oob_val);
1250  return builder_.Finish();
1251 }
1252 
1254  using type = LayoutDesc;
1255  static auto constexpr Create = CreateLayoutDesc;
1256 };
1257 
1258 inline ::flatbuffers::Offset<LayoutDesc> CreateLayoutDescDirect(
1259  ::flatbuffers::FlatBufferBuilder &_fbb,
1260  const std::vector<int32_t> *stride = nullptr,
1262  const std::vector<tt::target::Dim2dRange> *core_range_set = nullptr,
1263  ::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc = 0,
1264  ::flatbuffers::Offset<tt::target::DistributionStrategy> strategy = 0) {
1265  auto stride__ = stride ? _fbb.CreateVector<int32_t>(*stride) : 0;
1266  auto core_range_set__ = core_range_set ? _fbb.CreateVectorOfStructs<tt::target::Dim2dRange>(*core_range_set) : 0;
1268  _fbb,
1269  stride__,
1270  oob_val,
1271  core_range_set__,
1272  memory_desc,
1273  strategy);
1274 }
1275 
1276 struct TensorDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1278  struct Traits;
1279  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1280  VT_SHAPE = 4,
1281  VT_LAYOUT = 6
1282  };
1283  const ::flatbuffers::Vector<int32_t> *shape() const {
1284  return GetPointer<const ::flatbuffers::Vector<int32_t> *>(VT_SHAPE);
1285  }
1286  const tt::target::LayoutDesc *layout() const {
1287  return GetPointer<const tt::target::LayoutDesc *>(VT_LAYOUT);
1288  }
1289  bool Verify(::flatbuffers::Verifier &verifier) const {
1290  return VerifyTableStart(verifier) &&
1291  VerifyOffset(verifier, VT_SHAPE) &&
1292  verifier.VerifyVector(shape()) &&
1293  VerifyOffset(verifier, VT_LAYOUT) &&
1294  verifier.VerifyTable(layout()) &&
1295  verifier.EndTable();
1296  }
1297 };
1298 
1300  typedef TensorDesc Table;
1301  ::flatbuffers::FlatBufferBuilder &fbb_;
1302  ::flatbuffers::uoffset_t start_;
1303  void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape) {
1304  fbb_.AddOffset(TensorDesc::VT_SHAPE, shape);
1305  }
1306  void add_layout(::flatbuffers::Offset<tt::target::LayoutDesc> layout) {
1307  fbb_.AddOffset(TensorDesc::VT_LAYOUT, layout);
1308  }
1309  explicit TensorDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1310  : fbb_(_fbb) {
1311  start_ = fbb_.StartTable();
1312  }
1313  ::flatbuffers::Offset<TensorDesc> Finish() {
1314  const auto end = fbb_.EndTable(start_);
1315  auto o = ::flatbuffers::Offset<TensorDesc>(end);
1316  return o;
1317  }
1318 };
1319 
1320 inline ::flatbuffers::Offset<TensorDesc> CreateTensorDesc(
1321  ::flatbuffers::FlatBufferBuilder &_fbb,
1322  ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape = 0,
1323  ::flatbuffers::Offset<tt::target::LayoutDesc> layout = 0) {
1324  TensorDescBuilder builder_(_fbb);
1325  builder_.add_layout(layout);
1326  builder_.add_shape(shape);
1327  return builder_.Finish();
1328 }
1329 
1331  using type = TensorDesc;
1332  static auto constexpr Create = CreateTensorDesc;
1333 };
1334 
1335 inline ::flatbuffers::Offset<TensorDesc> CreateTensorDescDirect(
1336  ::flatbuffers::FlatBufferBuilder &_fbb,
1337  const std::vector<int32_t> *shape = nullptr,
1338  ::flatbuffers::Offset<tt::target::LayoutDesc> layout = 0) {
1339  auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0;
1341  _fbb,
1342  shape__,
1343  layout);
1344 }
1345 
1346 struct CBDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1348  struct Traits;
1349  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1350  VT_PORT = 4,
1351  VT_MEMORY_DESC = 6,
1353  VT_NUM_BUFFERS = 10
1354  };
1355  uint32_t port() const {
1356  return GetField<uint32_t>(VT_PORT, 0);
1357  }
1358  const tt::target::MemoryDesc *memory_desc() const {
1359  return GetPointer<const tt::target::MemoryDesc *>(VT_MEMORY_DESC);
1360  }
1361  uint64_t page_size() const {
1362  return GetField<uint64_t>(VT_PAGE_SIZE, 0);
1363  }
1364  uint64_t num_buffers() const {
1365  return GetField<uint64_t>(VT_NUM_BUFFERS, 0);
1366  }
1367  bool Verify(::flatbuffers::Verifier &verifier) const {
1368  return VerifyTableStart(verifier) &&
1369  VerifyField<uint32_t>(verifier, VT_PORT, 4) &&
1370  VerifyOffset(verifier, VT_MEMORY_DESC) &&
1371  verifier.VerifyTable(memory_desc()) &&
1372  VerifyField<uint64_t>(verifier, VT_PAGE_SIZE, 8) &&
1373  VerifyField<uint64_t>(verifier, VT_NUM_BUFFERS, 8) &&
1374  verifier.EndTable();
1375  }
1376 };
1377 
1379  typedef CBDesc Table;
1380  ::flatbuffers::FlatBufferBuilder &fbb_;
1381  ::flatbuffers::uoffset_t start_;
1382  void add_port(uint32_t port) {
1383  fbb_.AddElement<uint32_t>(CBDesc::VT_PORT, port, 0);
1384  }
1385  void add_memory_desc(::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc) {
1386  fbb_.AddOffset(CBDesc::VT_MEMORY_DESC, memory_desc);
1387  }
1388  void add_page_size(uint64_t page_size) {
1389  fbb_.AddElement<uint64_t>(CBDesc::VT_PAGE_SIZE, page_size, 0);
1390  }
1391  void add_num_buffers(uint64_t num_buffers) {
1392  fbb_.AddElement<uint64_t>(CBDesc::VT_NUM_BUFFERS, num_buffers, 0);
1393  }
1394  explicit CBDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1395  : fbb_(_fbb) {
1396  start_ = fbb_.StartTable();
1397  }
1398  ::flatbuffers::Offset<CBDesc> Finish() {
1399  const auto end = fbb_.EndTable(start_);
1400  auto o = ::flatbuffers::Offset<CBDesc>(end);
1401  return o;
1402  }
1403 };
1404 
1405 inline ::flatbuffers::Offset<CBDesc> CreateCBDesc(
1406  ::flatbuffers::FlatBufferBuilder &_fbb,
1407  uint32_t port = 0,
1408  ::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc = 0,
1409  uint64_t page_size = 0,
1410  uint64_t num_buffers = 0) {
1411  CBDescBuilder builder_(_fbb);
1412  builder_.add_num_buffers(num_buffers);
1413  builder_.add_page_size(page_size);
1414  builder_.add_memory_desc(memory_desc);
1415  builder_.add_port(port);
1416  return builder_.Finish();
1417 }
1418 
1420  using type = CBDesc;
1421  static auto constexpr Create = CreateCBDesc;
1422 };
1423 
1424 struct TensorRef FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1426  struct Traits;
1427  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1430  VT_SIZE = 8,
1431  VT_DESC = 10
1432  };
1433  uint32_t global_id() const {
1434  return GetField<uint32_t>(VT_GLOBAL_ID, 0);
1435  }
1436  uint64_t address() const {
1437  return GetField<uint64_t>(VT_ADDRESS, 0);
1438  }
1439  uint64_t size() const {
1440  return GetField<uint64_t>(VT_SIZE, 0);
1441  }
1442  const tt::target::TensorDesc *desc() const {
1443  return GetPointer<const tt::target::TensorDesc *>(VT_DESC);
1444  }
1445  bool Verify(::flatbuffers::Verifier &verifier) const {
1446  return VerifyTableStart(verifier) &&
1447  VerifyField<uint32_t>(verifier, VT_GLOBAL_ID, 4) &&
1448  VerifyField<uint64_t>(verifier, VT_ADDRESS, 8) &&
1449  VerifyField<uint64_t>(verifier, VT_SIZE, 8) &&
1450  VerifyOffset(verifier, VT_DESC) &&
1451  verifier.VerifyTable(desc()) &&
1452  verifier.EndTable();
1453  }
1454 };
1455 
1457  typedef TensorRef Table;
1458  ::flatbuffers::FlatBufferBuilder &fbb_;
1459  ::flatbuffers::uoffset_t start_;
1460  void add_global_id(uint32_t global_id) {
1461  fbb_.AddElement<uint32_t>(TensorRef::VT_GLOBAL_ID, global_id, 0);
1462  }
1463  void add_address(uint64_t address) {
1464  fbb_.AddElement<uint64_t>(TensorRef::VT_ADDRESS, address, 0);
1465  }
1466  void add_size(uint64_t size) {
1467  fbb_.AddElement<uint64_t>(TensorRef::VT_SIZE, size, 0);
1468  }
1469  void add_desc(::flatbuffers::Offset<tt::target::TensorDesc> desc) {
1470  fbb_.AddOffset(TensorRef::VT_DESC, desc);
1471  }
1472  explicit TensorRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1473  : fbb_(_fbb) {
1474  start_ = fbb_.StartTable();
1475  }
1476  ::flatbuffers::Offset<TensorRef> Finish() {
1477  const auto end = fbb_.EndTable(start_);
1478  auto o = ::flatbuffers::Offset<TensorRef>(end);
1479  return o;
1480  }
1481 };
1482 
1483 inline ::flatbuffers::Offset<TensorRef> CreateTensorRef(
1484  ::flatbuffers::FlatBufferBuilder &_fbb,
1485  uint32_t global_id = 0,
1486  uint64_t address = 0,
1487  uint64_t size = 0,
1488  ::flatbuffers::Offset<tt::target::TensorDesc> desc = 0) {
1489  TensorRefBuilder builder_(_fbb);
1490  builder_.add_size(size);
1491  builder_.add_address(address);
1492  builder_.add_desc(desc);
1493  builder_.add_global_id(global_id);
1494  return builder_.Finish();
1495 }
1496 
1498  using type = TensorRef;
1499  static auto constexpr Create = CreateTensorRef;
1500 };
1501 
1502 struct CBRef FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1504  struct Traits;
1505  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1506  VT_GLOBAL_ID = 4,
1508  VT_ADDRESS = 8,
1509  VT_DESC = 10
1510  };
1511  uint32_t global_id() const {
1512  return GetField<uint32_t>(VT_GLOBAL_ID, 0);
1513  }
1514  const tt::target::TensorRef *tensor_ref() const {
1515  return GetPointer<const tt::target::TensorRef *>(VT_TENSOR_REF);
1516  }
1517  uint64_t address() const {
1518  return GetField<uint64_t>(VT_ADDRESS, 0);
1519  }
1520  const tt::target::CBDesc *desc() const {
1521  return GetPointer<const tt::target::CBDesc *>(VT_DESC);
1522  }
1523  bool Verify(::flatbuffers::Verifier &verifier) const {
1524  return VerifyTableStart(verifier) &&
1525  VerifyField<uint32_t>(verifier, VT_GLOBAL_ID, 4) &&
1526  VerifyOffset(verifier, VT_TENSOR_REF) &&
1527  verifier.VerifyTable(tensor_ref()) &&
1528  VerifyField<uint64_t>(verifier, VT_ADDRESS, 8) &&
1529  VerifyOffset(verifier, VT_DESC) &&
1530  verifier.VerifyTable(desc()) &&
1531  verifier.EndTable();
1532  }
1533 };
1534 
1536  typedef CBRef Table;
1537  ::flatbuffers::FlatBufferBuilder &fbb_;
1538  ::flatbuffers::uoffset_t start_;
1539  void add_global_id(uint32_t global_id) {
1540  fbb_.AddElement<uint32_t>(CBRef::VT_GLOBAL_ID, global_id, 0);
1541  }
1542  void add_tensor_ref(::flatbuffers::Offset<tt::target::TensorRef> tensor_ref) {
1543  fbb_.AddOffset(CBRef::VT_TENSOR_REF, tensor_ref);
1544  }
1545  void add_address(uint64_t address) {
1546  fbb_.AddElement<uint64_t>(CBRef::VT_ADDRESS, address, 0);
1547  }
1548  void add_desc(::flatbuffers::Offset<tt::target::CBDesc> desc) {
1549  fbb_.AddOffset(CBRef::VT_DESC, desc);
1550  }
1551  explicit CBRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1552  : fbb_(_fbb) {
1553  start_ = fbb_.StartTable();
1554  }
1555  ::flatbuffers::Offset<CBRef> Finish() {
1556  const auto end = fbb_.EndTable(start_);
1557  auto o = ::flatbuffers::Offset<CBRef>(end);
1558  return o;
1559  }
1560 };
1561 
1562 inline ::flatbuffers::Offset<CBRef> CreateCBRef(
1563  ::flatbuffers::FlatBufferBuilder &_fbb,
1564  uint32_t global_id = 0,
1565  ::flatbuffers::Offset<tt::target::TensorRef> tensor_ref = 0,
1566  uint64_t address = 0,
1567  ::flatbuffers::Offset<tt::target::CBDesc> desc = 0) {
1568  CBRefBuilder builder_(_fbb);
1569  builder_.add_address(address);
1570  builder_.add_desc(desc);
1571  builder_.add_tensor_ref(tensor_ref);
1572  builder_.add_global_id(global_id);
1573  return builder_.Finish();
1574 }
1575 
1577  using type = CBRef;
1578  static auto constexpr Create = CreateCBRef;
1579 };
1580 
1581 struct ChipDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1583  struct Traits;
1584  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1585  VT_ARCH = 4,
1600  VT_NUM_CBS = 34
1601  };
1603  return static_cast<tt::target::Arch>(GetField<uint32_t>(VT_ARCH, 0));
1604  }
1605  const tt::target::Dim2d *grid_size() const {
1606  return GetStruct<const tt::target::Dim2d *>(VT_GRID_SIZE);
1607  }
1608  uint64_t l1_size() const {
1609  return GetField<uint64_t>(VT_L1_SIZE, 0);
1610  }
1611  uint32_t num_dram_channels() const {
1612  return GetField<uint32_t>(VT_NUM_DRAM_CHANNELS, 0);
1613  }
1614  uint64_t dram_channel_size() const {
1615  return GetField<uint64_t>(VT_DRAM_CHANNEL_SIZE, 0);
1616  }
1617  uint32_t noc_l1_address_align_bytes() const {
1618  return GetField<uint32_t>(VT_NOC_L1_ADDRESS_ALIGN_BYTES, 0);
1619  }
1620  uint32_t pcie_address_align_bytes() const {
1621  return GetField<uint32_t>(VT_PCIE_ADDRESS_ALIGN_BYTES, 0);
1622  }
1623  uint32_t noc_dram_address_align_bytes() const {
1624  return GetField<uint32_t>(VT_NOC_DRAM_ADDRESS_ALIGN_BYTES, 0);
1625  }
1626  uint32_t l1_unreserved_base() const {
1627  return GetField<uint32_t>(VT_L1_UNRESERVED_BASE, 0);
1628  }
1629  uint32_t erisc_l1_unreserved_base() const {
1630  return GetField<uint32_t>(VT_ERISC_L1_UNRESERVED_BASE, 0);
1631  }
1632  uint32_t dram_unreserved_base() const {
1633  return GetField<uint32_t>(VT_DRAM_UNRESERVED_BASE, 0);
1634  }
1635  uint32_t dram_unreserved_end() const {
1636  return GetField<uint32_t>(VT_DRAM_UNRESERVED_END, 0);
1637  }
1638  const tt::target::ChipPhysicalCores *physical_cores() const {
1639  return GetPointer<const tt::target::ChipPhysicalCores *>(VT_PHYSICAL_CORES);
1640  }
1641  const ::flatbuffers::Vector<tt::target::DataType> *supported_data_types() const {
1642  return GetPointer<const ::flatbuffers::Vector<tt::target::DataType> *>(VT_SUPPORTED_DATA_TYPES);
1643  }
1644  const ::flatbuffers::Vector<const tt::target::Dim2d *> *supported_tile_sizes() const {
1645  return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(VT_SUPPORTED_TILE_SIZES);
1646  }
1647  uint32_t num_cbs() const {
1648  return GetField<uint32_t>(VT_NUM_CBS, 0);
1649  }
1650  bool Verify(::flatbuffers::Verifier &verifier) const {
1651  return VerifyTableStart(verifier) &&
1652  VerifyField<uint32_t>(verifier, VT_ARCH, 4) &&
1653  VerifyField<tt::target::Dim2d>(verifier, VT_GRID_SIZE, 4) &&
1654  VerifyField<uint64_t>(verifier, VT_L1_SIZE, 8) &&
1655  VerifyField<uint32_t>(verifier, VT_NUM_DRAM_CHANNELS, 4) &&
1656  VerifyField<uint64_t>(verifier, VT_DRAM_CHANNEL_SIZE, 8) &&
1657  VerifyField<uint32_t>(verifier, VT_NOC_L1_ADDRESS_ALIGN_BYTES, 4) &&
1658  VerifyField<uint32_t>(verifier, VT_PCIE_ADDRESS_ALIGN_BYTES, 4) &&
1659  VerifyField<uint32_t>(verifier, VT_NOC_DRAM_ADDRESS_ALIGN_BYTES, 4) &&
1660  VerifyField<uint32_t>(verifier, VT_L1_UNRESERVED_BASE, 4) &&
1661  VerifyField<uint32_t>(verifier, VT_ERISC_L1_UNRESERVED_BASE, 4) &&
1662  VerifyField<uint32_t>(verifier, VT_DRAM_UNRESERVED_BASE, 4) &&
1663  VerifyField<uint32_t>(verifier, VT_DRAM_UNRESERVED_END, 4) &&
1664  VerifyOffset(verifier, VT_PHYSICAL_CORES) &&
1665  verifier.VerifyTable(physical_cores()) &&
1666  VerifyOffset(verifier, VT_SUPPORTED_DATA_TYPES) &&
1667  verifier.VerifyVector(supported_data_types()) &&
1668  VerifyOffset(verifier, VT_SUPPORTED_TILE_SIZES) &&
1669  verifier.VerifyVector(supported_tile_sizes()) &&
1670  VerifyField<uint32_t>(verifier, VT_NUM_CBS, 4) &&
1671  verifier.EndTable();
1672  }
1673 };
1674 
1676  typedef ChipDesc Table;
1677  ::flatbuffers::FlatBufferBuilder &fbb_;
1678  ::flatbuffers::uoffset_t start_;
1680  fbb_.AddElement<uint32_t>(ChipDesc::VT_ARCH, static_cast<uint32_t>(arch), 0);
1681  }
1682  void add_grid_size(const tt::target::Dim2d *grid_size) {
1683  fbb_.AddStruct(ChipDesc::VT_GRID_SIZE, grid_size);
1684  }
1685  void add_l1_size(uint64_t l1_size) {
1686  fbb_.AddElement<uint64_t>(ChipDesc::VT_L1_SIZE, l1_size, 0);
1687  }
1688  void add_num_dram_channels(uint32_t num_dram_channels) {
1689  fbb_.AddElement<uint32_t>(ChipDesc::VT_NUM_DRAM_CHANNELS, num_dram_channels, 0);
1690  }
1691  void add_dram_channel_size(uint64_t dram_channel_size) {
1692  fbb_.AddElement<uint64_t>(ChipDesc::VT_DRAM_CHANNEL_SIZE, dram_channel_size, 0);
1693  }
1694  void add_noc_l1_address_align_bytes(uint32_t noc_l1_address_align_bytes) {
1695  fbb_.AddElement<uint32_t>(ChipDesc::VT_NOC_L1_ADDRESS_ALIGN_BYTES, noc_l1_address_align_bytes, 0);
1696  }
1697  void add_pcie_address_align_bytes(uint32_t pcie_address_align_bytes) {
1698  fbb_.AddElement<uint32_t>(ChipDesc::VT_PCIE_ADDRESS_ALIGN_BYTES, pcie_address_align_bytes, 0);
1699  }
1700  void add_noc_dram_address_align_bytes(uint32_t noc_dram_address_align_bytes) {
1701  fbb_.AddElement<uint32_t>(ChipDesc::VT_NOC_DRAM_ADDRESS_ALIGN_BYTES, noc_dram_address_align_bytes, 0);
1702  }
1703  void add_l1_unreserved_base(uint32_t l1_unreserved_base) {
1704  fbb_.AddElement<uint32_t>(ChipDesc::VT_L1_UNRESERVED_BASE, l1_unreserved_base, 0);
1705  }
1706  void add_erisc_l1_unreserved_base(uint32_t erisc_l1_unreserved_base) {
1707  fbb_.AddElement<uint32_t>(ChipDesc::VT_ERISC_L1_UNRESERVED_BASE, erisc_l1_unreserved_base, 0);
1708  }
1709  void add_dram_unreserved_base(uint32_t dram_unreserved_base) {
1710  fbb_.AddElement<uint32_t>(ChipDesc::VT_DRAM_UNRESERVED_BASE, dram_unreserved_base, 0);
1711  }
1712  void add_dram_unreserved_end(uint32_t dram_unreserved_end) {
1713  fbb_.AddElement<uint32_t>(ChipDesc::VT_DRAM_UNRESERVED_END, dram_unreserved_end, 0);
1714  }
1715  void add_physical_cores(::flatbuffers::Offset<tt::target::ChipPhysicalCores> physical_cores) {
1716  fbb_.AddOffset(ChipDesc::VT_PHYSICAL_CORES, physical_cores);
1717  }
1718  void add_supported_data_types(::flatbuffers::Offset<::flatbuffers::Vector<tt::target::DataType>> supported_data_types) {
1719  fbb_.AddOffset(ChipDesc::VT_SUPPORTED_DATA_TYPES, supported_data_types);
1720  }
1721  void add_supported_tile_sizes(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> supported_tile_sizes) {
1722  fbb_.AddOffset(ChipDesc::VT_SUPPORTED_TILE_SIZES, supported_tile_sizes);
1723  }
1724  void add_num_cbs(uint32_t num_cbs) {
1725  fbb_.AddElement<uint32_t>(ChipDesc::VT_NUM_CBS, num_cbs, 0);
1726  }
1727  explicit ChipDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1728  : fbb_(_fbb) {
1729  start_ = fbb_.StartTable();
1730  }
1731  ::flatbuffers::Offset<ChipDesc> Finish() {
1732  const auto end = fbb_.EndTable(start_);
1733  auto o = ::flatbuffers::Offset<ChipDesc>(end);
1734  return o;
1735  }
1736 };
1737 
1738 inline ::flatbuffers::Offset<ChipDesc> CreateChipDesc(
1739  ::flatbuffers::FlatBufferBuilder &_fbb,
1741  const tt::target::Dim2d *grid_size = nullptr,
1742  uint64_t l1_size = 0,
1743  uint32_t num_dram_channels = 0,
1744  uint64_t dram_channel_size = 0,
1745  uint32_t noc_l1_address_align_bytes = 0,
1746  uint32_t pcie_address_align_bytes = 0,
1747  uint32_t noc_dram_address_align_bytes = 0,
1748  uint32_t l1_unreserved_base = 0,
1749  uint32_t erisc_l1_unreserved_base = 0,
1750  uint32_t dram_unreserved_base = 0,
1751  uint32_t dram_unreserved_end = 0,
1752  ::flatbuffers::Offset<tt::target::ChipPhysicalCores> physical_cores = 0,
1753  ::flatbuffers::Offset<::flatbuffers::Vector<tt::target::DataType>> supported_data_types = 0,
1754  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> supported_tile_sizes = 0,
1755  uint32_t num_cbs = 0) {
1756  ChipDescBuilder builder_(_fbb);
1757  builder_.add_dram_channel_size(dram_channel_size);
1758  builder_.add_l1_size(l1_size);
1759  builder_.add_num_cbs(num_cbs);
1760  builder_.add_supported_tile_sizes(supported_tile_sizes);
1761  builder_.add_supported_data_types(supported_data_types);
1762  builder_.add_physical_cores(physical_cores);
1763  builder_.add_dram_unreserved_end(dram_unreserved_end);
1764  builder_.add_dram_unreserved_base(dram_unreserved_base);
1765  builder_.add_erisc_l1_unreserved_base(erisc_l1_unreserved_base);
1766  builder_.add_l1_unreserved_base(l1_unreserved_base);
1767  builder_.add_noc_dram_address_align_bytes(noc_dram_address_align_bytes);
1768  builder_.add_pcie_address_align_bytes(pcie_address_align_bytes);
1769  builder_.add_noc_l1_address_align_bytes(noc_l1_address_align_bytes);
1770  builder_.add_num_dram_channels(num_dram_channels);
1771  builder_.add_grid_size(grid_size);
1772  builder_.add_arch(arch);
1773  return builder_.Finish();
1774 }
1775 
1777  using type = ChipDesc;
1778  static auto constexpr Create = CreateChipDesc;
1779 };
1780 
1781 inline ::flatbuffers::Offset<ChipDesc> CreateChipDescDirect(
1782  ::flatbuffers::FlatBufferBuilder &_fbb,
1784  const tt::target::Dim2d *grid_size = nullptr,
1785  uint64_t l1_size = 0,
1786  uint32_t num_dram_channels = 0,
1787  uint64_t dram_channel_size = 0,
1788  uint32_t noc_l1_address_align_bytes = 0,
1789  uint32_t pcie_address_align_bytes = 0,
1790  uint32_t noc_dram_address_align_bytes = 0,
1791  uint32_t l1_unreserved_base = 0,
1792  uint32_t erisc_l1_unreserved_base = 0,
1793  uint32_t dram_unreserved_base = 0,
1794  uint32_t dram_unreserved_end = 0,
1795  ::flatbuffers::Offset<tt::target::ChipPhysicalCores> physical_cores = 0,
1796  const std::vector<tt::target::DataType> *supported_data_types = nullptr,
1797  const std::vector<tt::target::Dim2d> *supported_tile_sizes = nullptr,
1798  uint32_t num_cbs = 0) {
1799  auto supported_data_types__ = supported_data_types ? _fbb.CreateVector<tt::target::DataType>(*supported_data_types) : 0;
1800  auto supported_tile_sizes__ = supported_tile_sizes ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*supported_tile_sizes) : 0;
1802  _fbb,
1803  arch,
1804  grid_size,
1805  l1_size,
1806  num_dram_channels,
1807  dram_channel_size,
1808  noc_l1_address_align_bytes,
1809  pcie_address_align_bytes,
1810  noc_dram_address_align_bytes,
1811  l1_unreserved_base,
1812  erisc_l1_unreserved_base,
1813  dram_unreserved_base,
1814  dram_unreserved_end,
1815  physical_cores,
1816  supported_data_types__,
1817  supported_tile_sizes__,
1818  num_cbs);
1819 }
1820 
1821 struct ChipPhysicalCores FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1823  struct Traits;
1824  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1826  VT_DRAM = 6,
1827  VT_ETH = 8,
1828  VT_ETH_INACTIVE = 10
1829  };
1830  const ::flatbuffers::Vector<const tt::target::Dim2d *> *worker() const {
1831  return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(VT_WORKER);
1832  }
1833  const ::flatbuffers::Vector<const tt::target::Dim2d *> *dram() const {
1834  return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(VT_DRAM);
1835  }
1836  const ::flatbuffers::Vector<const tt::target::Dim2d *> *eth() const {
1837  return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(VT_ETH);
1838  }
1839  const ::flatbuffers::Vector<const tt::target::Dim2d *> *eth_inactive() const {
1840  return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(VT_ETH_INACTIVE);
1841  }
1842  bool Verify(::flatbuffers::Verifier &verifier) const {
1843  return VerifyTableStart(verifier) &&
1844  VerifyOffset(verifier, VT_WORKER) &&
1845  verifier.VerifyVector(worker()) &&
1846  VerifyOffset(verifier, VT_DRAM) &&
1847  verifier.VerifyVector(dram()) &&
1848  VerifyOffset(verifier, VT_ETH) &&
1849  verifier.VerifyVector(eth()) &&
1850  VerifyOffset(verifier, VT_ETH_INACTIVE) &&
1851  verifier.VerifyVector(eth_inactive()) &&
1852  verifier.EndTable();
1853  }
1854 };
1855 
1857  typedef ChipPhysicalCores Table;
1858  ::flatbuffers::FlatBufferBuilder &fbb_;
1859  ::flatbuffers::uoffset_t start_;
1860  void add_worker(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> worker) {
1861  fbb_.AddOffset(ChipPhysicalCores::VT_WORKER, worker);
1862  }
1863  void add_dram(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> dram) {
1864  fbb_.AddOffset(ChipPhysicalCores::VT_DRAM, dram);
1865  }
1866  void add_eth(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth) {
1867  fbb_.AddOffset(ChipPhysicalCores::VT_ETH, eth);
1868  }
1869  void add_eth_inactive(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth_inactive) {
1870  fbb_.AddOffset(ChipPhysicalCores::VT_ETH_INACTIVE, eth_inactive);
1871  }
1872  explicit ChipPhysicalCoresBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1873  : fbb_(_fbb) {
1874  start_ = fbb_.StartTable();
1875  }
1876  ::flatbuffers::Offset<ChipPhysicalCores> Finish() {
1877  const auto end = fbb_.EndTable(start_);
1878  auto o = ::flatbuffers::Offset<ChipPhysicalCores>(end);
1879  return o;
1880  }
1881 };
1882 
1883 inline ::flatbuffers::Offset<ChipPhysicalCores> CreateChipPhysicalCores(
1884  ::flatbuffers::FlatBufferBuilder &_fbb,
1885  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> worker = 0,
1886  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> dram = 0,
1887  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth = 0,
1888  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth_inactive = 0) {
1889  ChipPhysicalCoresBuilder builder_(_fbb);
1890  builder_.add_eth_inactive(eth_inactive);
1891  builder_.add_eth(eth);
1892  builder_.add_dram(dram);
1893  builder_.add_worker(worker);
1894  return builder_.Finish();
1895 }
1896 
1898  using type = ChipPhysicalCores;
1899  static auto constexpr Create = CreateChipPhysicalCores;
1900 };
1901 
1902 inline ::flatbuffers::Offset<ChipPhysicalCores> CreateChipPhysicalCoresDirect(
1903  ::flatbuffers::FlatBufferBuilder &_fbb,
1904  const std::vector<tt::target::Dim2d> *worker = nullptr,
1905  const std::vector<tt::target::Dim2d> *dram = nullptr,
1906  const std::vector<tt::target::Dim2d> *eth = nullptr,
1907  const std::vector<tt::target::Dim2d> *eth_inactive = nullptr) {
1908  auto worker__ = worker ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*worker) : 0;
1909  auto dram__ = dram ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*dram) : 0;
1910  auto eth__ = eth ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*eth) : 0;
1911  auto eth_inactive__ = eth_inactive ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*eth_inactive) : 0;
1913  _fbb,
1914  worker__,
1915  dram__,
1916  eth__,
1917  eth_inactive__);
1918 }
1919 
1920 struct CPUDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1922  struct Traits;
1923  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1924  VT_ROLE = 4,
1925  VT_TARGET_TRIPLE = 6
1926  };
1928  return static_cast<tt::target::CPURole>(GetField<uint8_t>(VT_ROLE, 0));
1929  }
1930  const ::flatbuffers::String *target_triple() const {
1931  return GetPointer<const ::flatbuffers::String *>(VT_TARGET_TRIPLE);
1932  }
1933  bool Verify(::flatbuffers::Verifier &verifier) const {
1934  return VerifyTableStart(verifier) &&
1935  VerifyField<uint8_t>(verifier, VT_ROLE, 1) &&
1936  VerifyOffset(verifier, VT_TARGET_TRIPLE) &&
1937  verifier.VerifyString(target_triple()) &&
1938  verifier.EndTable();
1939  }
1940 };
1941 
1943  typedef CPUDesc Table;
1944  ::flatbuffers::FlatBufferBuilder &fbb_;
1945  ::flatbuffers::uoffset_t start_;
1947  fbb_.AddElement<uint8_t>(CPUDesc::VT_ROLE, static_cast<uint8_t>(role), 0);
1948  }
1949  void add_target_triple(::flatbuffers::Offset<::flatbuffers::String> target_triple) {
1950  fbb_.AddOffset(CPUDesc::VT_TARGET_TRIPLE, target_triple);
1951  }
1952  explicit CPUDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
1953  : fbb_(_fbb) {
1954  start_ = fbb_.StartTable();
1955  }
1956  ::flatbuffers::Offset<CPUDesc> Finish() {
1957  const auto end = fbb_.EndTable(start_);
1958  auto o = ::flatbuffers::Offset<CPUDesc>(end);
1959  return o;
1960  }
1961 };
1962 
1963 inline ::flatbuffers::Offset<CPUDesc> CreateCPUDesc(
1964  ::flatbuffers::FlatBufferBuilder &_fbb,
1966  ::flatbuffers::Offset<::flatbuffers::String> target_triple = 0) {
1967  CPUDescBuilder builder_(_fbb);
1968  builder_.add_target_triple(target_triple);
1969  builder_.add_role(role);
1970  return builder_.Finish();
1971 }
1972 
1974  using type = CPUDesc;
1975  static auto constexpr Create = CreateCPUDesc;
1976 };
1977 
1978 inline ::flatbuffers::Offset<CPUDesc> CreateCPUDescDirect(
1979  ::flatbuffers::FlatBufferBuilder &_fbb,
1981  const char *target_triple = nullptr) {
1982  auto target_triple__ = target_triple ? _fbb.CreateString(target_triple) : 0;
1984  _fbb,
1985  role,
1986  target_triple__);
1987 }
1988 
1989 struct SystemDesc FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1991  struct Traits;
1992  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1998  VT_CHIP_CHANNELS = 14
1999  };
2000  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>> *cpu_descs() const {
2001  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>> *>(VT_CPU_DESCS);
2002  }
2003  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>> *chip_descs() const {
2004  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>> *>(VT_CHIP_DESCS);
2005  }
2006  const ::flatbuffers::Vector<uint32_t> *chip_desc_indices() const {
2007  return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(VT_CHIP_DESC_INDICES);
2008  }
2009  const ::flatbuffers::Vector<tt::target::ChipCapability> *chip_capabilities() const {
2010  return GetPointer<const ::flatbuffers::Vector<tt::target::ChipCapability> *>(VT_CHIP_CAPABILITIES);
2011  }
2012  const ::flatbuffers::Vector<const tt::target::ChipCoord *> *chip_coords() const {
2013  return GetPointer<const ::flatbuffers::Vector<const tt::target::ChipCoord *> *>(VT_CHIP_COORDS);
2014  }
2015  const ::flatbuffers::Vector<const tt::target::ChipChannel *> *chip_channels() const {
2016  return GetPointer<const ::flatbuffers::Vector<const tt::target::ChipChannel *> *>(VT_CHIP_CHANNELS);
2017  }
2018  bool Verify(::flatbuffers::Verifier &verifier) const {
2019  return VerifyTableStart(verifier) &&
2020  VerifyOffset(verifier, VT_CPU_DESCS) &&
2021  verifier.VerifyVector(cpu_descs()) &&
2022  verifier.VerifyVectorOfTables(cpu_descs()) &&
2023  VerifyOffset(verifier, VT_CHIP_DESCS) &&
2024  verifier.VerifyVector(chip_descs()) &&
2025  verifier.VerifyVectorOfTables(chip_descs()) &&
2026  VerifyOffset(verifier, VT_CHIP_DESC_INDICES) &&
2027  verifier.VerifyVector(chip_desc_indices()) &&
2028  VerifyOffset(verifier, VT_CHIP_CAPABILITIES) &&
2029  verifier.VerifyVector(chip_capabilities()) &&
2030  VerifyOffset(verifier, VT_CHIP_COORDS) &&
2031  verifier.VerifyVector(chip_coords()) &&
2032  VerifyOffset(verifier, VT_CHIP_CHANNELS) &&
2033  verifier.VerifyVector(chip_channels()) &&
2034  verifier.EndTable();
2035  }
2036 };
2037 
2039  typedef SystemDesc Table;
2040  ::flatbuffers::FlatBufferBuilder &fbb_;
2041  ::flatbuffers::uoffset_t start_;
2042  void add_cpu_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>>> cpu_descs) {
2043  fbb_.AddOffset(SystemDesc::VT_CPU_DESCS, cpu_descs);
2044  }
2045  void add_chip_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>>> chip_descs) {
2046  fbb_.AddOffset(SystemDesc::VT_CHIP_DESCS, chip_descs);
2047  }
2048  void add_chip_desc_indices(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> chip_desc_indices) {
2049  fbb_.AddOffset(SystemDesc::VT_CHIP_DESC_INDICES, chip_desc_indices);
2050  }
2051  void add_chip_capabilities(::flatbuffers::Offset<::flatbuffers::Vector<tt::target::ChipCapability>> chip_capabilities) {
2052  fbb_.AddOffset(SystemDesc::VT_CHIP_CAPABILITIES, chip_capabilities);
2053  }
2054  void add_chip_coords(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipCoord *>> chip_coords) {
2055  fbb_.AddOffset(SystemDesc::VT_CHIP_COORDS, chip_coords);
2056  }
2057  void add_chip_channels(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipChannel *>> chip_channels) {
2058  fbb_.AddOffset(SystemDesc::VT_CHIP_CHANNELS, chip_channels);
2059  }
2060  explicit SystemDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2061  : fbb_(_fbb) {
2062  start_ = fbb_.StartTable();
2063  }
2064  ::flatbuffers::Offset<SystemDesc> Finish() {
2065  const auto end = fbb_.EndTable(start_);
2066  auto o = ::flatbuffers::Offset<SystemDesc>(end);
2067  return o;
2068  }
2069 };
2070 
2071 inline ::flatbuffers::Offset<SystemDesc> CreateSystemDesc(
2072  ::flatbuffers::FlatBufferBuilder &_fbb,
2073  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>>> cpu_descs = 0,
2074  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>>> chip_descs = 0,
2075  ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> chip_desc_indices = 0,
2076  ::flatbuffers::Offset<::flatbuffers::Vector<tt::target::ChipCapability>> chip_capabilities = 0,
2077  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipCoord *>> chip_coords = 0,
2078  ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipChannel *>> chip_channels = 0) {
2079  SystemDescBuilder builder_(_fbb);
2080  builder_.add_chip_channels(chip_channels);
2081  builder_.add_chip_coords(chip_coords);
2082  builder_.add_chip_capabilities(chip_capabilities);
2083  builder_.add_chip_desc_indices(chip_desc_indices);
2084  builder_.add_chip_descs(chip_descs);
2085  builder_.add_cpu_descs(cpu_descs);
2086  return builder_.Finish();
2087 }
2088 
2090  using type = SystemDesc;
2091  static auto constexpr Create = CreateSystemDesc;
2092 };
2093 
2094 inline ::flatbuffers::Offset<SystemDesc> CreateSystemDescDirect(
2095  ::flatbuffers::FlatBufferBuilder &_fbb,
2096  const std::vector<::flatbuffers::Offset<tt::target::CPUDesc>> *cpu_descs = nullptr,
2097  const std::vector<::flatbuffers::Offset<tt::target::ChipDesc>> *chip_descs = nullptr,
2098  const std::vector<uint32_t> *chip_desc_indices = nullptr,
2099  const std::vector<tt::target::ChipCapability> *chip_capabilities = nullptr,
2100  const std::vector<tt::target::ChipCoord> *chip_coords = nullptr,
2101  const std::vector<tt::target::ChipChannel> *chip_channels = nullptr) {
2102  auto cpu_descs__ = cpu_descs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::CPUDesc>>(*cpu_descs) : 0;
2103  auto chip_descs__ = chip_descs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::ChipDesc>>(*chip_descs) : 0;
2104  auto chip_desc_indices__ = chip_desc_indices ? _fbb.CreateVector<uint32_t>(*chip_desc_indices) : 0;
2105  auto chip_capabilities__ = chip_capabilities ? _fbb.CreateVector<tt::target::ChipCapability>(*chip_capabilities) : 0;
2106  auto chip_coords__ = chip_coords ? _fbb.CreateVectorOfStructs<tt::target::ChipCoord>(*chip_coords) : 0;
2107  auto chip_channels__ = chip_channels ? _fbb.CreateVectorOfStructs<tt::target::ChipChannel>(*chip_channels) : 0;
2109  _fbb,
2110  cpu_descs__,
2111  chip_descs__,
2112  chip_desc_indices__,
2113  chip_capabilities__,
2114  chip_coords__,
2115  chip_channels__);
2116 }
2117 
2118 struct DeviceRef FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2120  struct Traits;
2121  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2122  VT_GLOBAL_ID = 4
2123  };
2124  uint32_t global_id() const {
2125  return GetField<uint32_t>(VT_GLOBAL_ID, 0);
2126  }
2127  bool Verify(::flatbuffers::Verifier &verifier) const {
2128  return VerifyTableStart(verifier) &&
2129  VerifyField<uint32_t>(verifier, VT_GLOBAL_ID, 4) &&
2130  verifier.EndTable();
2131  }
2132 };
2133 
2135  typedef DeviceRef Table;
2136  ::flatbuffers::FlatBufferBuilder &fbb_;
2137  ::flatbuffers::uoffset_t start_;
2138  void add_global_id(uint32_t global_id) {
2139  fbb_.AddElement<uint32_t>(DeviceRef::VT_GLOBAL_ID, global_id, 0);
2140  }
2141  explicit DeviceRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2142  : fbb_(_fbb) {
2143  start_ = fbb_.StartTable();
2144  }
2145  ::flatbuffers::Offset<DeviceRef> Finish() {
2146  const auto end = fbb_.EndTable(start_);
2147  auto o = ::flatbuffers::Offset<DeviceRef>(end);
2148  return o;
2149  }
2150 };
2151 
2152 inline ::flatbuffers::Offset<DeviceRef> CreateDeviceRef(
2153  ::flatbuffers::FlatBufferBuilder &_fbb,
2154  uint32_t global_id = 0) {
2155  DeviceRefBuilder builder_(_fbb);
2156  builder_.add_global_id(global_id);
2157  return builder_.Finish();
2158 }
2159 
2161  using type = DeviceRef;
2162  static auto constexpr Create = CreateDeviceRef;
2163 };
2164 
2165 struct EventRef FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
2167  struct Traits;
2168  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2169  VT_GLOBAL_ID = 4
2170  };
2171  uint32_t global_id() const {
2172  return GetField<uint32_t>(VT_GLOBAL_ID, 0);
2173  }
2174  bool Verify(::flatbuffers::Verifier &verifier) const {
2175  return VerifyTableStart(verifier) &&
2176  VerifyField<uint32_t>(verifier, VT_GLOBAL_ID, 4) &&
2177  verifier.EndTable();
2178  }
2179 };
2180 
2182  typedef EventRef Table;
2183  ::flatbuffers::FlatBufferBuilder &fbb_;
2184  ::flatbuffers::uoffset_t start_;
2185  void add_global_id(uint32_t global_id) {
2186  fbb_.AddElement<uint32_t>(EventRef::VT_GLOBAL_ID, global_id, 0);
2187  }
2188  explicit EventRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
2189  : fbb_(_fbb) {
2190  start_ = fbb_.StartTable();
2191  }
2192  ::flatbuffers::Offset<EventRef> Finish() {
2193  const auto end = fbb_.EndTable(start_);
2194  auto o = ::flatbuffers::Offset<EventRef>(end);
2195  return o;
2196  }
2197 };
2198 
2199 inline ::flatbuffers::Offset<EventRef> CreateEventRef(
2200  ::flatbuffers::FlatBufferBuilder &_fbb,
2201  uint32_t global_id = 0) {
2202  EventRefBuilder builder_(_fbb);
2203  builder_.add_global_id(global_id);
2204  return builder_.Finish();
2205 }
2206 
2208  using type = EventRef;
2209  static auto constexpr Create = CreateEventRef;
2210 };
2211 
2212 inline bool VerifyDistributedTensorConfig(::flatbuffers::Verifier &verifier, const void *obj, DistributedTensorConfig type) {
2213  switch (type) {
2215  return true;
2216  }
2218  auto ptr = reinterpret_cast<const tt::target::ReplicateTensor *>(obj);
2219  return verifier.VerifyTable(ptr);
2220  }
2222  auto ptr = reinterpret_cast<const tt::target::ShardTensor *>(obj);
2223  return verifier.VerifyTable(ptr);
2224  }
2226  auto ptr = reinterpret_cast<const tt::target::ShardTensor2D *>(obj);
2227  return verifier.VerifyTable(ptr);
2228  }
2230  auto ptr = reinterpret_cast<const tt::target::AllGatherTensor *>(obj);
2231  return verifier.VerifyTable(ptr);
2232  }
2233  default: return true;
2234  }
2235 }
2236 
2237 inline bool VerifyDistributedTensorConfigVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<DistributedTensorConfig> *types) {
2238  if (!values || !types) return !values && !types;
2239  if (values->size() != types->size()) return false;
2240  for (::flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
2242  verifier, values->Get(i), types->GetEnum<DistributedTensorConfig>(i))) {
2243  return false;
2244  }
2245  }
2246  return true;
2247 }
2248 
2249 } // namespace target
2250 } // namespace tt
2251 
2252 #endif // FLATBUFFERS_GENERATED_TYPES_TT_TARGET_H_
VT_LAYOUT
Definition: program_generated.h:661
VT_STRATEGY
Definition: program_generated.h:976
inline ::flatbuffers::Offset< CPUDesc > CreateCPUDesc(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::CPURole role=tt::target::CPURole::Host, ::flatbuffers::Offset<::flatbuffers::String > target_triple=0)
Definition: types_generated.h:1963
const char *const * EnumNamesOOBVal()
Definition: types_generated.h:198
ChipCapability
Definition: types_generated.h:252
TensorLayout
Definition: types_generated.h:325
const char * EnumNameChipCapability(ChipCapability e)
Definition: types_generated.h:277
const char *const * EnumNamesArch()
Definition: types_generated.h:101
inline ::flatbuffers::Offset< LayoutDesc > CreateLayoutDescDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector< int32_t > *stride=nullptr, tt::target::OOBVal oob_val=tt::target::OOBVal::Undef, const std::vector< tt::target::Dim2dRange > *core_range_set=nullptr, ::flatbuffers::Offset< tt::target::MemoryDesc > memory_desc=0, ::flatbuffers::Offset< tt::target::DistributionStrategy > strategy=0)
Definition: types_generated.h:1258
const char * EnumNameMemorySpace(MemorySpace e)
Definition: types_generated.h:246
inline ::flatbuffers::Offset< MemoryConfigDesc > CreateMemoryConfigDesc(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::TensorMemoryLayout tensor_memory_layout=tt::target::TensorMemoryLayout::None, tt::target::BufferType buffer_type=tt::target::BufferType::DRAM, ::flatbuffers::Offset< tt::target::ShardSpec > shard_spec=0)
Definition: types_generated.h:770
const char *const * EnumNamesMemorySpace()
Definition: types_generated.h:235
inline ::flatbuffers::Offset< DeviceRef > CreateDeviceRef(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t global_id=0)
Definition: types_generated.h:2152
inline ::flatbuffers::Offset< ShardTensor2D > CreateShardTensor2D(::flatbuffers::FlatBufferBuilder &_fbb, const tt::target::Dim2d *shard_mesh=nullptr)
Definition: types_generated.h:915
const char * EnumNameCPURole(CPURole e)
Definition: types_generated.h:483
const BufferType(& EnumValuesBufferType())[5]
Definition: types_generated.h:368
const char * EnumNameMathFidelity(MathFidelity e)
Definition: types_generated.h:520
inline ::flatbuffers::Offset< CBDesc > CreateCBDesc(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t port=0, ::flatbuffers::Offset< tt::target::MemoryDesc > memory_desc=0, uint64_t page_size=0, uint64_t num_buffers=0)
Definition: types_generated.h:1405
const char * EnumNameOOBVal(OOBVal e)
Definition: types_generated.h:210
inline ::flatbuffers::Offset< LayoutDesc > CreateLayoutDesc(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> stride=0, tt::target::OOBVal oob_val=tt::target::OOBVal::Undef, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2dRange * >> core_range_set=0, ::flatbuffers::Offset< tt::target::MemoryDesc > memory_desc=0, ::flatbuffers::Offset< tt::target::DistributionStrategy > strategy=0)
Definition: types_generated.h:1237
const char * EnumNameArch(Arch e)
Definition: types_generated.h:111
const char * EnumNameTensorMemoryLayout(TensorMemoryLayout e)
Definition: types_generated.h:319
const char * EnumNameDistributedTensorConfig(DistributedTensorConfig e)
Definition: types_generated.h:430
Arch
Definition: types_generated.h:84
const DataType(& EnumValuesDataType())[12]
Definition: types_generated.h:134
const char *const * EnumNamesTensorLayout()
Definition: types_generated.h:342
inline ::flatbuffers::Offset< MemoryDesc > CreateMemoryDescDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector< int32_t > *shape=nullptr, const tt::target::Dim2d *tile_shape=nullptr, tt::target::DataType data_type=tt::target::DataType::Float32, tt::target::MemorySpace memory_space=tt::target::MemorySpace::System, tt::target::TensorMemoryLayout memory_layout=tt::target::TensorMemoryLayout::None, uint64_t size=0)
Definition: types_generated.h:1148
MathFidelity
Definition: types_generated.h:489
inline ::flatbuffers::Offset< ChipPhysicalCores > CreateChipPhysicalCoresDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector< tt::target::Dim2d > *worker=nullptr, const std::vector< tt::target::Dim2d > *dram=nullptr, const std::vector< tt::target::Dim2d > *eth=nullptr, const std::vector< tt::target::Dim2d > *eth_inactive=nullptr)
Definition: types_generated.h:1902
MemorySpace
Definition: types_generated.h:216
inline ::flatbuffers::Offset< ShardSpec > CreateShardSpecDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector< int64_t > *shard_shape=nullptr)
Definition: types_generated.h:710
inline ::flatbuffers::Offset< ChipDesc > CreateChipDescDirect(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::Arch arch=tt::target::Arch::Grayskull, const tt::target::Dim2d *grid_size=nullptr, uint64_t l1_size=0, uint32_t num_dram_channels=0, uint64_t dram_channel_size=0, uint32_t noc_l1_address_align_bytes=0, uint32_t pcie_address_align_bytes=0, uint32_t noc_dram_address_align_bytes=0, uint32_t l1_unreserved_base=0, uint32_t erisc_l1_unreserved_base=0, uint32_t dram_unreserved_base=0, uint32_t dram_unreserved_end=0, ::flatbuffers::Offset< tt::target::ChipPhysicalCores > physical_cores=0, const std::vector< tt::target::DataType > *supported_data_types=nullptr, const std::vector< tt::target::Dim2d > *supported_tile_sizes=nullptr, uint32_t num_cbs=0)
Definition: types_generated.h:1781
const ChipCapability(& EnumValuesChipCapability())[2]
Definition: types_generated.h:260
inline ::flatbuffers::Offset< ChipPhysicalCores > CreateChipPhysicalCores(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> worker=0, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> dram=0, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> eth=0, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> eth_inactive=0)
Definition: types_generated.h:1883
inline ::flatbuffers::Offset< ChipDesc > CreateChipDesc(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::Arch arch=tt::target::Arch::Grayskull, const tt::target::Dim2d *grid_size=nullptr, uint64_t l1_size=0, uint32_t num_dram_channels=0, uint64_t dram_channel_size=0, uint32_t noc_l1_address_align_bytes=0, uint32_t pcie_address_align_bytes=0, uint32_t noc_dram_address_align_bytes=0, uint32_t l1_unreserved_base=0, uint32_t erisc_l1_unreserved_base=0, uint32_t dram_unreserved_base=0, uint32_t dram_unreserved_end=0, ::flatbuffers::Offset< tt::target::ChipPhysicalCores > physical_cores=0, ::flatbuffers::Offset<::flatbuffers::Vector< tt::target::DataType >> supported_data_types=0, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> supported_tile_sizes=0, uint32_t num_cbs=0)
Definition: types_generated.h:1738
const char *const * EnumNamesMathFidelity()
Definition: types_generated.h:508
inline ::flatbuffers::Offset< SystemDesc > CreateSystemDesc(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::CPUDesc >>> cpu_descs=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ChipDesc >>> chip_descs=0, ::flatbuffers::Offset<::flatbuffers::Vector< uint32_t >> chip_desc_indices=0, ::flatbuffers::Offset<::flatbuffers::Vector< tt::target::ChipCapability >> chip_capabilities=0, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::ChipCoord * >> chip_coords=0, ::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::ChipChannel * >> chip_channels=0)
Definition: types_generated.h:2071
bool VerifyDistributedTensorConfigVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset< void >> *values, const ::flatbuffers::Vector< DistributedTensorConfig > *types)
Definition: types_generated.h:2237
inline ::flatbuffers::Offset< MemoryDesc > CreateMemoryDesc(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape=0, const tt::target::Dim2d *tile_shape=nullptr, tt::target::DataType data_type=tt::target::DataType::Float32, tt::target::MemorySpace memory_space=tt::target::MemorySpace::System, tt::target::TensorMemoryLayout memory_layout=tt::target::TensorMemoryLayout::None, uint64_t size=0)
Definition: types_generated.h:1125
const char *const * EnumNamesCPURole()
Definition: types_generated.h:474
inline ::flatbuffers::Offset< SystemDesc > CreateSystemDescDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector<::flatbuffers::Offset< tt::target::CPUDesc >> *cpu_descs=nullptr, const std::vector<::flatbuffers::Offset< tt::target::ChipDesc >> *chip_descs=nullptr, const std::vector< uint32_t > *chip_desc_indices=nullptr, const std::vector< tt::target::ChipCapability > *chip_capabilities=nullptr, const std::vector< tt::target::ChipCoord > *chip_coords=nullptr, const std::vector< tt::target::ChipChannel > *chip_channels=nullptr)
Definition: types_generated.h:2094
const MemorySpace(& EnumValuesMemorySpace())[4]
Definition: types_generated.h:225
const char * EnumNameTensorLayout(TensorLayout e)
Definition: types_generated.h:352
OOBVal
Definition: types_generated.h:177
const char *const * EnumNamesChipCapability()
Definition: types_generated.h:268
const DistributedTensorConfig(& EnumValuesDistributedTensorConfig())[5]
Definition: types_generated.h:407
inline ::flatbuffers::Offset< DistributionStrategy > CreateDistributionStrategy(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::DistributedTensorConfig strategy_type=tt::target::DistributedTensorConfig::NONE, ::flatbuffers::Offset< void > strategy=0)
Definition: types_generated.h:1035
inline ::flatbuffers::Offset< TensorDesc > CreateTensorDesc(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape=0, ::flatbuffers::Offset< tt::target::LayoutDesc > layout=0)
Definition: types_generated.h:1320
const char * EnumNameDataType(DataType e)
Definition: types_generated.h:171
const char *const * EnumNamesDataType()
Definition: types_generated.h:152
const OOBVal(& EnumValuesOOBVal())[5]
Definition: types_generated.h:187
const TensorMemoryLayout(& EnumValuesTensorMemoryLayout())[6]
Definition: types_generated.h:294
BufferType
Definition: types_generated.h:358
const MathFidelity(& EnumValuesMathFidelity())[4]
Definition: types_generated.h:498
const char *const * EnumNamesBufferType()
Definition: types_generated.h:379
const CPURole(& EnumValuesCPURole())[2]
Definition: types_generated.h:466
const Arch(& EnumValuesArch())[3]
Definition: types_generated.h:92
inline ::flatbuffers::Offset< TensorDesc > CreateTensorDescDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector< int32_t > *shape=nullptr, ::flatbuffers::Offset< tt::target::LayoutDesc > layout=0)
Definition: types_generated.h:1335
const TensorLayout(& EnumValuesTensorLayout())[3]
Definition: types_generated.h:333
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Dim2d FLATBUFFERS_FINAL_CLASS
Definition: types_generated.h:526
inline ::flatbuffers::Offset< TensorRef > CreateTensorRef(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t global_id=0, uint64_t address=0, uint64_t size=0, ::flatbuffers::Offset< tt::target::TensorDesc > desc=0)
Definition: types_generated.h:1483
inline ::flatbuffers::Offset< EventRef > CreateEventRef(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t global_id=0)
Definition: types_generated.h:2199
const char * EnumNameBufferType(BufferType e)
Definition: types_generated.h:391
inline ::flatbuffers::Offset< ReplicateTensor > CreateReplicateTensor(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t replication_factor=0)
Definition: types_generated.h:821
inline ::flatbuffers::Offset< ShardSpec > CreateShardSpec(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shard_shape=0)
Definition: types_generated.h:697
TensorMemoryLayout
Definition: types_generated.h:283
const char *const * EnumNamesDistributedTensorConfig()
Definition: types_generated.h:418
inline ::flatbuffers::Offset< CPUDesc > CreateCPUDescDirect(::flatbuffers::FlatBufferBuilder &_fbb, tt::target::CPURole role=tt::target::CPURole::Host, const char *target_triple=nullptr)
Definition: types_generated.h:1978
const char *const * EnumNamesTensorMemoryLayout()
Definition: types_generated.h:306
CPURole
Definition: types_generated.h:459
DataType
Definition: types_generated.h:117
inline ::flatbuffers::Offset< ShardTensor > CreateShardTensor(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t shard_dim=0)
Definition: types_generated.h:868
inline ::flatbuffers::Offset< AllGatherTensor > CreateAllGatherTensor(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:952
bool VerifyDistributedTensorConfig(::flatbuffers::Verifier &verifier, const void *obj, DistributedTensorConfig type)
Definition: types_generated.h:2212
inline ::flatbuffers::Offset< CBRef > CreateCBRef(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t global_id=0, ::flatbuffers::Offset< tt::target::TensorRef > tensor_ref=0, uint64_t address=0, ::flatbuffers::Offset< tt::target::CBDesc > desc=0)
Definition: types_generated.h:1562
DistributedTensorConfig
Definition: types_generated.h:397
FLATBUFFERS_STRUCT_END(Dim2d, 8)
Definition: debug_info_generated.h:18
Definition: types_generated.h:937
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:939
::flatbuffers::Offset< AllGatherTensor > Finish()
Definition: types_generated.h:945
AllGatherTensor Table
Definition: types_generated.h:938
::flatbuffers::uoffset_t start_
Definition: types_generated.h:940
AllGatherTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:941
Definition: types_generated.h:958
static constexpr auto Create
Definition: types_generated.h:960
AllGatherTensor type
Definition: types_generated.h:959
Definition: types_generated.h:1378
CBDesc Table
Definition: types_generated.h:1379
void add_port(uint32_t port)
Definition: types_generated.h:1382
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1381
void add_num_buffers(uint64_t num_buffers)
Definition: types_generated.h:1391
void add_page_size(uint64_t page_size)
Definition: types_generated.h:1388
void add_memory_desc(::flatbuffers::Offset< tt::target::MemoryDesc > memory_desc)
Definition: types_generated.h:1385
CBDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1394
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1380
::flatbuffers::Offset< CBDesc > Finish()
Definition: types_generated.h:1398
Definition: types_generated.h:1419
CBDesc type
Definition: types_generated.h:1420
static constexpr auto Create
Definition: types_generated.h:1421
Definition: types_generated.h:1535
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1538
void add_tensor_ref(::flatbuffers::Offset< tt::target::TensorRef > tensor_ref)
Definition: types_generated.h:1542
void add_address(uint64_t address)
Definition: types_generated.h:1545
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1537
CBRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1551
CBRef Table
Definition: types_generated.h:1536
void add_global_id(uint32_t global_id)
Definition: types_generated.h:1539
::flatbuffers::Offset< CBRef > Finish()
Definition: types_generated.h:1555
void add_desc(::flatbuffers::Offset< tt::target::CBDesc > desc)
Definition: types_generated.h:1548
Definition: types_generated.h:1576
CBRef type
Definition: types_generated.h:1577
static constexpr auto Create
Definition: types_generated.h:1578
Definition: types_generated.h:1942
CPUDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1952
::flatbuffers::Offset< CPUDesc > Finish()
Definition: types_generated.h:1956
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1945
void add_role(tt::target::CPURole role)
Definition: types_generated.h:1946
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1944
void add_target_triple(::flatbuffers::Offset<::flatbuffers::String > target_triple)
Definition: types_generated.h:1949
CPUDesc Table
Definition: types_generated.h:1943
Definition: types_generated.h:1973
CPUDesc type
Definition: types_generated.h:1974
static constexpr auto Create
Definition: types_generated.h:1975
Definition: types_generated.h:658
ChipChannel type
Definition: types_generated.h:659
Definition: types_generated.h:618
ChipCoord type
Definition: types_generated.h:619
Definition: types_generated.h:1675
void add_l1_unreserved_base(uint32_t l1_unreserved_base)
Definition: types_generated.h:1703
void add_supported_data_types(::flatbuffers::Offset<::flatbuffers::Vector< tt::target::DataType >> supported_data_types)
Definition: types_generated.h:1718
void add_erisc_l1_unreserved_base(uint32_t erisc_l1_unreserved_base)
Definition: types_generated.h:1706
void add_dram_unreserved_end(uint32_t dram_unreserved_end)
Definition: types_generated.h:1712
void add_supported_tile_sizes(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> supported_tile_sizes)
Definition: types_generated.h:1721
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1677
void add_arch(tt::target::Arch arch)
Definition: types_generated.h:1679
ChipDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1727
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1678
void add_grid_size(const tt::target::Dim2d *grid_size)
Definition: types_generated.h:1682
void add_pcie_address_align_bytes(uint32_t pcie_address_align_bytes)
Definition: types_generated.h:1697
void add_num_cbs(uint32_t num_cbs)
Definition: types_generated.h:1724
void add_dram_channel_size(uint64_t dram_channel_size)
Definition: types_generated.h:1691
void add_noc_dram_address_align_bytes(uint32_t noc_dram_address_align_bytes)
Definition: types_generated.h:1700
::flatbuffers::Offset< ChipDesc > Finish()
Definition: types_generated.h:1731
void add_l1_size(uint64_t l1_size)
Definition: types_generated.h:1685
void add_noc_l1_address_align_bytes(uint32_t noc_l1_address_align_bytes)
Definition: types_generated.h:1694
void add_num_dram_channels(uint32_t num_dram_channels)
Definition: types_generated.h:1688
void add_physical_cores(::flatbuffers::Offset< tt::target::ChipPhysicalCores > physical_cores)
Definition: types_generated.h:1715
void add_dram_unreserved_base(uint32_t dram_unreserved_base)
Definition: types_generated.h:1709
ChipDesc Table
Definition: types_generated.h:1676
Definition: types_generated.h:1776
ChipDesc type
Definition: types_generated.h:1777
static constexpr auto Create
Definition: types_generated.h:1778
Definition: types_generated.h:1856
ChipPhysicalCores Table
Definition: types_generated.h:1857
::flatbuffers::Offset< ChipPhysicalCores > Finish()
Definition: types_generated.h:1876
ChipPhysicalCoresBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1872
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1859
void add_worker(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> worker)
Definition: types_generated.h:1860
void add_eth_inactive(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> eth_inactive)
Definition: types_generated.h:1869
void add_eth(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> eth)
Definition: types_generated.h:1866
void add_dram(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> dram)
Definition: types_generated.h:1863
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1858
Definition: types_generated.h:1897
static constexpr auto Create
Definition: types_generated.h:1899
ChipPhysicalCores type
Definition: types_generated.h:1898
Definition: types_generated.h:2134
::flatbuffers::uoffset_t start_
Definition: types_generated.h:2137
DeviceRef Table
Definition: types_generated.h:2135
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:2136
DeviceRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:2141
::flatbuffers::Offset< DeviceRef > Finish()
Definition: types_generated.h:2145
void add_global_id(uint32_t global_id)
Definition: types_generated.h:2138
Definition: types_generated.h:2160
static constexpr auto Create
Definition: types_generated.h:2162
DeviceRef type
Definition: types_generated.h:2161
Definition: types_generated.h:578
Dim2dRange type
Definition: types_generated.h:579
Definition: types_generated.h:550
Dim2d type
Definition: types_generated.h:551
Definition: types_generated.h:436
static const DistributedTensorConfig enum_value
Definition: types_generated.h:437
Definition: types_generated.h:1014
::flatbuffers::Offset< DistributionStrategy > Finish()
Definition: types_generated.h:1028
void add_strategy(::flatbuffers::Offset< void > strategy)
Definition: types_generated.h:1021
void add_strategy_type(tt::target::DistributedTensorConfig strategy_type)
Definition: types_generated.h:1018
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1017
DistributionStrategyBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1024
DistributionStrategy Table
Definition: types_generated.h:1015
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1016
Definition: types_generated.h:1045
static constexpr auto Create
Definition: types_generated.h:1047
DistributionStrategy type
Definition: types_generated.h:1046
Definition: types_generated.h:2181
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:2183
void add_global_id(uint32_t global_id)
Definition: types_generated.h:2185
::flatbuffers::uoffset_t start_
Definition: types_generated.h:2184
EventRef Table
Definition: types_generated.h:2182
EventRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:2188
::flatbuffers::Offset< EventRef > Finish()
Definition: types_generated.h:2192
Definition: types_generated.h:2207
static constexpr auto Create
Definition: types_generated.h:2209
EventRef type
Definition: types_generated.h:2208
Definition: debug_info_generated.h:36
ShardTensor2DBuilder Builder
Definition: types_generated.h:882
uint32_t shard_dim() const
Definition: types_generated.h:840
CPUDescBuilder Builder
Definition: types_generated.h:1921
uint32_t noc_dram_address_align_bytes() const
Definition: types_generated.h:1623
const ::flatbuffers::Vector< const tt::target::Dim2d * > * eth_inactive() const
Definition: types_generated.h:1839
ReplicateTensorBuilder Builder
Definition: types_generated.h:788
tt::target::DistributedTensorConfig strategy_type() const
Definition: types_generated.h:970
LayoutDescBuilder Builder
Definition: types_generated.h:1168
tt::target::TensorMemoryLayout tensor_memory_layout() const
Definition: types_generated.h:727
uint64_t dram_channel_size() const
Definition: types_generated.h:1614
const ::flatbuffers::Vector< int32_t > * stride() const
Definition: types_generated.h:1177
tt::target::OOBVal oob_val() const
Definition: types_generated.h:1180
uint32_t erisc_l1_unreserved_base() const
Definition: types_generated.h:1629
const ::flatbuffers::Vector< tt::target::ChipCapability > * chip_capabilities() const
Definition: types_generated.h:2009
ShardTensorBuilder Builder
Definition: types_generated.h:835
const ::flatbuffers::Vector< const tt::target::Dim2d * > * worker() const
Definition: types_generated.h:1830
const ::flatbuffers::Vector< const tt::target::ChipCoord * > * chip_coords() const
Definition: types_generated.h:2012
CBDescBuilder Builder
Definition: types_generated.h:1347
const tt::target::TensorDesc * desc() const
Definition: types_generated.h:1442
uint32_t port() const
Definition: types_generated.h:1355
tt::target::TensorMemoryLayout memory_layout() const
Definition: types_generated.h:1073
const tt::target::ChipPhysicalCores * physical_cores() const
Definition: types_generated.h:1638
tt::target::Arch arch() const
Definition: types_generated.h:1602
const tt::target::ShardSpec * shard_spec() const
Definition: types_generated.h:733
SystemDescBuilder Builder
Definition: types_generated.h:1990
DeviceRefBuilder Builder
Definition: types_generated.h:2119
uint32_t num_dram_channels() const
Definition: types_generated.h:1611
uint32_t replication_factor() const
Definition: types_generated.h:793
const tt::target::ShardTensor2D * strategy_as_ShardTensor2D() const
Definition: types_generated.h:983
uint32_t pcie_address_align_bytes() const
Definition: types_generated.h:1620
uint64_t size() const
Definition: types_generated.h:1076
const ::flatbuffers::Vector< const tt::target::Dim2dRange * > * core_range_set() const
Definition: types_generated.h:1183
const tt::target::CBDesc * desc() const
Definition: types_generated.h:1520
const void * strategy() const
Definition: types_generated.h:973
const ::flatbuffers::Vector< tt::target::DataType > * supported_data_types() const
Definition: types_generated.h:1641
uint32_t global_id() const
Definition: types_generated.h:1433
uint64_t l1_size() const
Definition: types_generated.h:1608
uint32_t l1_unreserved_base() const
Definition: types_generated.h:1626
tt::target::DataType data_type() const
Definition: types_generated.h:1067
const ::flatbuffers::Vector< const tt::target::Dim2d * > * supported_tile_sizes() const
Definition: types_generated.h:1644
AllGatherTensorBuilder Builder
Definition: types_generated.h:929
const tt::target::Dim2d * shard_mesh() const
Definition: types_generated.h:887
uint64_t page_size() const
Definition: types_generated.h:1361
EventRefBuilder Builder
Definition: types_generated.h:2166
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ChipDesc > > * chip_descs() const
Definition: types_generated.h:2003
uint32_t noc_l1_address_align_bytes() const
Definition: types_generated.h:1617
const ::flatbuffers::Vector< const tt::target::Dim2d * > * eth() const
Definition: types_generated.h:1836
MemoryDescBuilder Builder
Definition: types_generated.h:1051
tt::target::BufferType buffer_type() const
Definition: types_generated.h:730
TensorRefBuilder Builder
Definition: types_generated.h:1425
uint32_t dram_unreserved_base() const
Definition: types_generated.h:1632
const tt::target::LayoutDesc * layout() const
Definition: types_generated.h:1286
const tt::target::ReplicateTensor * strategy_as_ReplicateTensor() const
Definition: types_generated.h:977
const tt::target::Dim2d * grid_size() const
Definition: types_generated.h:1605
const tt::target::TensorRef * tensor_ref() const
Definition: types_generated.h:1514
const ::flatbuffers::Vector< int32_t > * shape() const
Definition: types_generated.h:1061
const ::flatbuffers::Vector< const tt::target::ChipChannel * > * chip_channels() const
Definition: types_generated.h:2015
uint32_t dram_unreserved_end() const
Definition: types_generated.h:1635
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::CPUDesc > > * cpu_descs() const
Definition: types_generated.h:2000
uint32_t num_cbs() const
Definition: types_generated.h:1647
uint64_t address() const
Definition: types_generated.h:1436
ShardSpecBuilder Builder
Definition: types_generated.h:663
const tt::target::AllGatherTensor * strategy_as_AllGatherTensor() const
Definition: types_generated.h:986
const tt::target::DistributionStrategy * strategy() const
Definition: types_generated.h:1189
MemoryConfigDescBuilder Builder
Definition: types_generated.h:720
TensorDescBuilder Builder
Definition: types_generated.h:1277
bool Verify(::flatbuffers::Verifier &verifier) const
Definition: types_generated.h:671
uint64_t num_buffers() const
Definition: types_generated.h:1364
DistributionStrategyBuilder Builder
Definition: types_generated.h:964
ChipPhysicalCoresBuilder Builder
Definition: types_generated.h:1822
const ::flatbuffers::Vector< int64_t > * shard_shape() const
Definition: types_generated.h:668
const tt::target::Dim2d * tile_shape() const
Definition: types_generated.h:1064
const ::flatbuffers::Vector< uint32_t > * chip_desc_indices() const
Definition: types_generated.h:2006
const tt::target::MemoryDesc * memory_desc() const
Definition: types_generated.h:1186
const ::flatbuffers::Vector< const tt::target::Dim2d * > * dram() const
Definition: types_generated.h:1833
const ::flatbuffers::String * target_triple() const
Definition: types_generated.h:1930
tt::target::MemorySpace memory_space() const
Definition: types_generated.h:1070
ChipDescBuilder Builder
Definition: types_generated.h:1582
const tt::target::ShardTensor * strategy_as_ShardTensor() const
Definition: types_generated.h:980
CBRefBuilder Builder
Definition: types_generated.h:1503
tt::target::CPURole role() const
Definition: types_generated.h:1927
Definition: types_generated.h:1207
::flatbuffers::Offset< LayoutDesc > Finish()
Definition: types_generated.h:1230
void add_oob_val(tt::target::OOBVal oob_val)
Definition: types_generated.h:1214
void add_strategy(::flatbuffers::Offset< tt::target::DistributionStrategy > strategy)
Definition: types_generated.h:1223
void add_core_range_set(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2dRange * >> core_range_set)
Definition: types_generated.h:1217
void add_memory_desc(::flatbuffers::Offset< tt::target::MemoryDesc > memory_desc)
Definition: types_generated.h:1220
void add_stride(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> stride)
Definition: types_generated.h:1211
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1209
LayoutDesc Table
Definition: types_generated.h:1208
LayoutDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1226
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1210
Definition: types_generated.h:1253
static constexpr auto Create
Definition: types_generated.h:1255
LayoutDesc type
Definition: types_generated.h:1254
Definition: types_generated.h:746
::flatbuffers::uoffset_t start_
Definition: types_generated.h:749
MemoryConfigDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:759
MemoryConfigDesc Table
Definition: types_generated.h:747
::flatbuffers::Offset< MemoryConfigDesc > Finish()
Definition: types_generated.h:763
void add_buffer_type(tt::target::BufferType buffer_type)
Definition: types_generated.h:753
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:748
void add_tensor_memory_layout(tt::target::TensorMemoryLayout tensor_memory_layout)
Definition: types_generated.h:750
void add_shard_spec(::flatbuffers::Offset< tt::target::ShardSpec > shard_spec)
Definition: types_generated.h:756
Definition: types_generated.h:782
static constexpr auto Create
Definition: types_generated.h:784
MemoryConfigDesc type
Definition: types_generated.h:783
Definition: types_generated.h:1092
void add_tile_shape(const tt::target::Dim2d *tile_shape)
Definition: types_generated.h:1099
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape)
Definition: types_generated.h:1096
void add_memory_layout(tt::target::TensorMemoryLayout memory_layout)
Definition: types_generated.h:1108
void add_data_type(tt::target::DataType data_type)
Definition: types_generated.h:1102
void add_size(uint64_t size)
Definition: types_generated.h:1111
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1094
MemoryDesc Table
Definition: types_generated.h:1093
void add_memory_space(tt::target::MemorySpace memory_space)
Definition: types_generated.h:1105
MemoryDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1114
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1095
::flatbuffers::Offset< MemoryDesc > Finish()
Definition: types_generated.h:1118
Definition: types_generated.h:1143
MemoryDesc type
Definition: types_generated.h:1144
static constexpr auto Create
Definition: types_generated.h:1145
Definition: types_generated.h:803
ReplicateTensor Table
Definition: types_generated.h:804
::flatbuffers::uoffset_t start_
Definition: types_generated.h:806
ReplicateTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:810
void add_replication_factor(uint32_t replication_factor)
Definition: types_generated.h:807
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:805
::flatbuffers::Offset< ReplicateTensor > Finish()
Definition: types_generated.h:814
Definition: types_generated.h:829
static constexpr auto Create
Definition: types_generated.h:831
ReplicateTensor type
Definition: types_generated.h:830
Definition: types_generated.h:679
::flatbuffers::Offset< ShardSpec > Finish()
Definition: types_generated.h:690
void add_shard_shape(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shard_shape)
Definition: types_generated.h:683
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:681
ShardSpecBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:686
ShardSpec Table
Definition: types_generated.h:680
::flatbuffers::uoffset_t start_
Definition: types_generated.h:682
Definition: types_generated.h:705
static constexpr auto Create
Definition: types_generated.h:707
ShardSpec type
Definition: types_generated.h:706
Definition: types_generated.h:897
::flatbuffers::uoffset_t start_
Definition: types_generated.h:900
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:899
ShardTensor2DBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:904
::flatbuffers::Offset< ShardTensor2D > Finish()
Definition: types_generated.h:908
void add_shard_mesh(const tt::target::Dim2d *shard_mesh)
Definition: types_generated.h:901
ShardTensor2D Table
Definition: types_generated.h:898
Definition: types_generated.h:923
static constexpr auto Create
Definition: types_generated.h:925
ShardTensor2D type
Definition: types_generated.h:924
Definition: types_generated.h:850
ShardTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:857
void add_shard_dim(uint32_t shard_dim)
Definition: types_generated.h:854
::flatbuffers::Offset< ShardTensor > Finish()
Definition: types_generated.h:861
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:852
ShardTensor Table
Definition: types_generated.h:851
::flatbuffers::uoffset_t start_
Definition: types_generated.h:853
Definition: types_generated.h:876
static constexpr auto Create
Definition: types_generated.h:878
ShardTensor type
Definition: types_generated.h:877
Definition: types_generated.h:2038
::flatbuffers::Offset< SystemDesc > Finish()
Definition: types_generated.h:2064
SystemDesc Table
Definition: types_generated.h:2039
void add_chip_desc_indices(::flatbuffers::Offset<::flatbuffers::Vector< uint32_t >> chip_desc_indices)
Definition: types_generated.h:2048
void add_cpu_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::CPUDesc >>> cpu_descs)
Definition: types_generated.h:2042
void add_chip_channels(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::ChipChannel * >> chip_channels)
Definition: types_generated.h:2057
SystemDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:2060
void add_chip_coords(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::ChipCoord * >> chip_coords)
Definition: types_generated.h:2054
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:2040
::flatbuffers::uoffset_t start_
Definition: types_generated.h:2041
void add_chip_capabilities(::flatbuffers::Offset<::flatbuffers::Vector< tt::target::ChipCapability >> chip_capabilities)
Definition: types_generated.h:2051
void add_chip_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ChipDesc >>> chip_descs)
Definition: types_generated.h:2045
Definition: types_generated.h:2089
static constexpr auto Create
Definition: types_generated.h:2091
SystemDesc type
Definition: types_generated.h:2090
Definition: types_generated.h:1299
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape)
Definition: types_generated.h:1303
void add_layout(::flatbuffers::Offset< tt::target::LayoutDesc > layout)
Definition: types_generated.h:1306
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1301
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1302
TensorDesc Table
Definition: types_generated.h:1300
::flatbuffers::Offset< TensorDesc > Finish()
Definition: types_generated.h:1313
TensorDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1309
Definition: types_generated.h:1330
static constexpr auto Create
Definition: types_generated.h:1332
TensorDesc type
Definition: types_generated.h:1331
Definition: types_generated.h:1456
void add_address(uint64_t address)
Definition: types_generated.h:1463
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1459
void add_size(uint64_t size)
Definition: types_generated.h:1466
void add_desc(::flatbuffers::Offset< tt::target::TensorDesc > desc)
Definition: types_generated.h:1469
void add_global_id(uint32_t global_id)
Definition: types_generated.h:1460
::flatbuffers::Offset< TensorRef > Finish()
Definition: types_generated.h:1476
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1458
TensorRef Table
Definition: types_generated.h:1457
TensorRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1472
Definition: types_generated.h:1497
static constexpr auto Create
Definition: types_generated.h:1499
TensorRef type
Definition: types_generated.h:1498
VT_NUM_DRAM_CHANNELS
Definition: types_generated.h:1588
VT_STRATEGY_TYPE
Definition: types_generated.h:967
VT_TILE_SHAPE
Definition: types_generated.h:1055
VT_DRAM_CHANNEL_SIZE
Definition: types_generated.h:1589
VT_PCIE_ADDRESS_ALIGN_BYTES
Definition: types_generated.h:1591
VT_TENSOR_REF
Definition: types_generated.h:1507
VT_SHAPE
Definition: types_generated.h:1054
VT_PORT
Definition: types_generated.h:1350
VT_GRID_SIZE
Definition: types_generated.h:1586
VT_SUPPORTED_TILE_SIZES
Definition: types_generated.h:1599
VT_ETH
Definition: types_generated.h:1827
VT_NOC_L1_ADDRESS_ALIGN_BYTES
Definition: types_generated.h:1590
VT_STRIDE
Definition: types_generated.h:1171
VT_DATA_TYPE
Definition: types_generated.h:1056
VT_NOC_DRAM_ADDRESS_ALIGN_BYTES
Definition: types_generated.h:1592
VT_DRAM_UNRESERVED_BASE
Definition: types_generated.h:1595
VT_ROLE
Definition: types_generated.h:1924
VT_CORE_RANGE_SET
Definition: types_generated.h:1173
VT_TENSOR_MEMORY_LAYOUT
Definition: types_generated.h:723
VT_PHYSICAL_CORES
Definition: types_generated.h:1597
VT_PAGE_SIZE
Definition: types_generated.h:1352
VT_BUFFER_TYPE
Definition: types_generated.h:724
VT_GLOBAL_ID
Definition: types_generated.h:1428
VT_OOB_VAL
Definition: types_generated.h:1172
VT_CPU_DESCS
Definition: types_generated.h:1993
VT_CHIP_DESC_INDICES
Definition: types_generated.h:1995
VT_MEMORY_SPACE
Definition: types_generated.h:1057
VT_CHIP_CAPABILITIES
Definition: types_generated.h:1996
VT_ADDRESS
Definition: types_generated.h:1429
VT_L1_UNRESERVED_BASE
Definition: types_generated.h:1593
VT_ARCH
Definition: types_generated.h:1585
VT_SUPPORTED_DATA_TYPES
Definition: types_generated.h:1598
VT_ERISC_L1_UNRESERVED_BASE
Definition: types_generated.h:1594
VT_WORKER
Definition: types_generated.h:1825
VT_DRAM
Definition: types_generated.h:1826
VT_SIZE
Definition: types_generated.h:1430
VT_CHIP_DESCS
Definition: types_generated.h:1994
VT_MEMORY_DESC
Definition: types_generated.h:1174
VT_CHIP_COORDS
Definition: types_generated.h:1997
VT_MEMORY_LAYOUT
Definition: types_generated.h:1058
VT_DRAM_UNRESERVED_END
Definition: types_generated.h:1596
VT_L1_SIZE
Definition: types_generated.h:1587