4 #ifndef FLATBUFFERS_GENERATED_TYPES_TT_TARGET_H_
5 #define FLATBUFFERS_GENERATED_TYPES_TT_TARGET_H_
7 #include "flatbuffers/flatbuffers.h"
11 static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
12 FLATBUFFERS_VERSION_MINOR == 3 &&
13 FLATBUFFERS_VERSION_REVISION == 25,
14 "Non-compatible flatbuffers version included");
24 struct ShardSpecBuilder;
26 struct MemoryConfigDesc;
27 struct MemoryConfigDescBuilder;
30 struct ReplicateTensorBuilder;
33 struct ShardTensorBuilder;
36 struct ShardTensor2DBuilder;
39 struct AllGatherTensorBuilder;
41 struct DistributionStrategy;
42 struct DistributionStrategyBuilder;
45 struct MemoryDescBuilder;
48 struct LayoutDescBuilder;
51 struct TensorDescBuilder;
57 struct TensorRefBuilder;
63 struct ChipDescBuilder;
69 struct ChipPhysicalCores;
70 struct ChipPhysicalCoresBuilder;
73 struct CPUDescBuilder;
76 struct SystemDescBuilder;
79 struct DeviceRefBuilder;
82 struct EventRefBuilder;
84 enum class Arch : uint32_t {
93 static const Arch values[] = {
102 static const char *
const names[4] = {
113 const size_t index =
static_cast<size_t>(e);
153 static const char *
const names[13] = {
173 const size_t index =
static_cast<size_t>(e);
188 static const OOBVal values[] = {
199 static const char *
const names[6] = {
212 const size_t index =
static_cast<size_t>(e);
236 static const char *
const names[5] = {
248 const size_t index =
static_cast<size_t>(e);
269 static const char *
const names[3] = {
307 static const char *
const names[7] = {
321 const size_t index =
static_cast<size_t>(e);
343 static const char *
const names[4] = {
354 const size_t index =
static_cast<size_t>(e);
380 static const char *
const names[6] = {
393 const size_t index =
static_cast<size_t>(e);
419 static const char *
const names[6] = {
432 const size_t index =
static_cast<size_t>(e);
457 bool VerifyDistributedTensorConfigVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<DistributedTensorConfig> *types);
467 static const CPURole values[] = {
475 static const char *
const names[3] = {
485 const size_t index =
static_cast<size_t>(e);
509 static const char *
const names[6] = {
522 const size_t index =
static_cast<size_t>(e);
537 Dim2d(int32_t _y, int32_t _x)
538 : y_(::flatbuffers::EndianScalar(_y)),
539 x_(::flatbuffers::EndianScalar(_x)) {
542 return ::flatbuffers::EndianScalar(y_);
545 return ::flatbuffers::EndianScalar(x_);
556 tt::target::Dim2d loc_;
557 tt::target::Dim2d size_;
565 Dim2dRange(
const tt::target::Dim2d &_loc,
const tt::target::Dim2d &_size)
569 const tt::target::Dim2d &loc()
const {
572 const tt::target::Dim2d &size()
const {
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)) {
603 uint32_t rack()
const {
604 return ::flatbuffers::EndianScalar(rack_);
606 uint32_t shelf()
const {
607 return ::flatbuffers::EndianScalar(shelf_);
610 return ::flatbuffers::EndianScalar(y_);
613 return ::flatbuffers::EndianScalar(x_);
624 uint32_t device_id0_;
625 tt::target::Dim2d ethernet_core_coord0_;
626 uint32_t device_id1_;
627 tt::target::Dim2d ethernet_core_coord1_;
633 ethernet_core_coord0_(),
635 ethernet_core_coord1_() {
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) {
643 uint32_t device_id0()
const {
644 return ::flatbuffers::EndianScalar(device_id0_);
646 const tt::target::Dim2d ðernet_core_coord0()
const {
647 return ethernet_core_coord0_;
649 uint32_t device_id1()
const {
650 return ::flatbuffers::EndianScalar(device_id1_);
652 const tt::target::Dim2d ðernet_core_coord1()
const {
653 return ethernet_core_coord1_;
665 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
669 return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_SHARD_SHAPE);
671 bool Verify(::flatbuffers::Verifier &verifier)
const {
672 return VerifyTableStart(verifier) &&
673 VerifyOffset(verifier, VT_SHARD_SHAPE) &&
674 verifier.VerifyVector(shard_shape()) &&
681 ::flatbuffers::FlatBufferBuilder &
fbb_;
683 void add_shard_shape(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape) {
684 fbb_.AddOffset(ShardSpec::VT_SHARD_SHAPE, shard_shape);
690 ::flatbuffers::Offset<ShardSpec>
Finish() {
692 auto o = ::flatbuffers::Offset<ShardSpec>(end);
698 ::flatbuffers::FlatBufferBuilder &_fbb,
699 ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape = 0) {
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;
719 struct MemoryConfigDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
722 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
734 return GetPointer<const tt::target::ShardSpec *>(VT_SHARD_SPEC);
736 bool Verify(::flatbuffers::Verifier &verifier)
const {
737 return VerifyTableStart(verifier) &&
740 VerifyOffset(verifier, VT_SHARD_SPEC) &&
741 verifier.VerifyTable(shard_spec()) &&
748 ::flatbuffers::FlatBufferBuilder &
fbb_;
757 fbb_.AddOffset(MemoryConfigDesc::VT_SHARD_SPEC, shard_spec);
763 ::flatbuffers::Offset<MemoryConfigDesc>
Finish() {
765 auto o = ::flatbuffers::Offset<MemoryConfigDesc>(end);
771 ::flatbuffers::FlatBufferBuilder &_fbb,
774 ::flatbuffers::Offset<tt::target::ShardSpec> shard_spec = 0) {
790 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
791 VT_REPLICATION_FACTOR = 4
794 return GetField<uint32_t>(VT_REPLICATION_FACTOR, 0);
796 bool Verify(::flatbuffers::Verifier &verifier)
const {
797 return VerifyTableStart(verifier) &&
798 VerifyField<uint32_t>(verifier, VT_REPLICATION_FACTOR, 4) &&
805 ::flatbuffers::FlatBufferBuilder &
fbb_;
808 fbb_.AddElement<uint32_t>(ReplicateTensor::VT_REPLICATION_FACTOR, replication_factor, 0);
814 ::flatbuffers::Offset<ReplicateTensor>
Finish() {
816 auto o = ::flatbuffers::Offset<ReplicateTensor>(end);
822 ::flatbuffers::FlatBufferBuilder &_fbb,
823 uint32_t replication_factor = 0) {
837 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
841 return GetField<uint32_t>(VT_SHARD_DIM, 0);
843 bool Verify(::flatbuffers::Verifier &verifier)
const {
844 return VerifyTableStart(verifier) &&
845 VerifyField<uint32_t>(verifier, VT_SHARD_DIM, 4) &&
852 ::flatbuffers::FlatBufferBuilder &
fbb_;
855 fbb_.AddElement<uint32_t>(ShardTensor::VT_SHARD_DIM, shard_dim, 0);
861 ::flatbuffers::Offset<ShardTensor>
Finish() {
863 auto o = ::flatbuffers::Offset<ShardTensor>(end);
869 ::flatbuffers::FlatBufferBuilder &_fbb,
870 uint32_t shard_dim = 0) {
884 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
888 return GetStruct<const tt::target::Dim2d *>(VT_SHARD_MESH);
890 bool Verify(::flatbuffers::Verifier &verifier)
const {
891 return VerifyTableStart(verifier) &&
892 VerifyField<tt::target::Dim2d>(verifier, VT_SHARD_MESH, 4) &&
899 ::flatbuffers::FlatBufferBuilder &
fbb_;
902 fbb_.AddStruct(ShardTensor2D::VT_SHARD_MESH, shard_mesh);
908 ::flatbuffers::Offset<ShardTensor2D>
Finish() {
910 auto o = ::flatbuffers::Offset<ShardTensor2D>(end);
916 ::flatbuffers::FlatBufferBuilder &_fbb,
917 const tt::target::Dim2d *shard_mesh =
nullptr) {
931 bool Verify(::flatbuffers::Verifier &verifier)
const {
932 return VerifyTableStart(verifier) &&
939 ::flatbuffers::FlatBufferBuilder &
fbb_;
945 ::flatbuffers::Offset<AllGatherTensor>
Finish() {
947 auto o = ::flatbuffers::Offset<AllGatherTensor>(end);
953 ::flatbuffers::FlatBufferBuilder &_fbb) {
966 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
989 bool Verify(::flatbuffers::Verifier &verifier)
const {
990 return VerifyTableStart(verifier) &&
998 template<>
inline const tt::target::ReplicateTensor *DistributionStrategy::strategy_as<tt::target::ReplicateTensor>()
const {
999 return strategy_as_ReplicateTensor();
1002 template<>
inline const tt::target::ShardTensor *DistributionStrategy::strategy_as<tt::target::ShardTensor>()
const {
1003 return strategy_as_ShardTensor();
1006 template<>
inline const tt::target::ShardTensor2D *DistributionStrategy::strategy_as<tt::target::ShardTensor2D>()
const {
1007 return strategy_as_ShardTensor2D();
1010 template<>
inline const tt::target::AllGatherTensor *DistributionStrategy::strategy_as<tt::target::AllGatherTensor>()
const {
1011 return strategy_as_AllGatherTensor();
1016 ::flatbuffers::FlatBufferBuilder &
fbb_;
1028 ::flatbuffers::Offset<DistributionStrategy>
Finish() {
1030 auto o = ::flatbuffers::Offset<DistributionStrategy>(end);
1036 ::flatbuffers::FlatBufferBuilder &_fbb,
1038 ::flatbuffers::Offset<void> strategy = 0) {
1042 return builder_.
Finish();
1053 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1061 const ::flatbuffers::Vector<int32_t> *
shape()
const {
1062 return GetPointer<const ::flatbuffers::Vector<int32_t> *>(
VT_SHAPE);
1077 return GetField<uint64_t>(
VT_SIZE, 0);
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) &&
1087 VerifyField<uint64_t>(verifier,
VT_SIZE, 8) &&
1088 verifier.EndTable();
1094 ::flatbuffers::FlatBufferBuilder &
fbb_;
1096 void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape) {
1120 auto o = ::flatbuffers::Offset<MemoryDesc>(end);
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) {
1140 return builder_.
Finish();
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;
1167 struct LayoutDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1170 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1177 const ::flatbuffers::Vector<int32_t> *
stride()
const {
1178 return GetPointer<const ::flatbuffers::Vector<int32_t> *>(
VT_STRIDE);
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);
1187 return GetPointer<const tt::target::MemoryDesc *>(
VT_MEMORY_DESC);
1189 const tt::target::DistributionStrategy *
strategy()
const {
1190 return GetPointer<const tt::target::DistributionStrategy *>(
VT_STRATEGY);
1192 bool Verify(::flatbuffers::Verifier &verifier)
const {
1193 return VerifyTableStart(verifier) &&
1195 verifier.VerifyVector(stride()) &&
1196 VerifyField<uint16_t>(verifier,
VT_OOB_VAL, 2) &&
1198 verifier.VerifyVector(core_range_set()) &&
1200 verifier.VerifyTable(memory_desc()) &&
1202 verifier.VerifyTable(strategy()) &&
1203 verifier.EndTable();
1209 ::flatbuffers::FlatBufferBuilder &
fbb_;
1211 void add_stride(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> stride) {
1217 void add_core_range_set(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2dRange *>> core_range_set) {
1223 void add_strategy(::flatbuffers::Offset<tt::target::DistributionStrategy> strategy) {
1232 auto o = ::flatbuffers::Offset<LayoutDesc>(end);
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) {
1250 return builder_.
Finish();
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;
1276 struct TensorDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1279 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1283 const ::flatbuffers::Vector<int32_t> *
shape()
const {
1284 return GetPointer<const ::flatbuffers::Vector<int32_t> *>(
VT_SHAPE);
1286 const tt::target::LayoutDesc *
layout()
const {
1287 return GetPointer<const tt::target::LayoutDesc *>(
VT_LAYOUT);
1289 bool Verify(::flatbuffers::Verifier &verifier)
const {
1290 return VerifyTableStart(verifier) &&
1291 VerifyOffset(verifier,
VT_SHAPE) &&
1292 verifier.VerifyVector(shape()) &&
1294 verifier.VerifyTable(layout()) &&
1295 verifier.EndTable();
1301 ::flatbuffers::FlatBufferBuilder &
fbb_;
1303 void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape) {
1306 void add_layout(::flatbuffers::Offset<tt::target::LayoutDesc> layout) {
1315 auto o = ::flatbuffers::Offset<TensorDesc>(end);
1321 ::flatbuffers::FlatBufferBuilder &_fbb,
1322 ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape = 0,
1323 ::flatbuffers::Offset<tt::target::LayoutDesc> layout = 0) {
1327 return builder_.
Finish();
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;
1346 struct CBDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1349 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1356 return GetField<uint32_t>(
VT_PORT, 0);
1359 return GetPointer<const tt::target::MemoryDesc *>(
VT_MEMORY_DESC);
1365 return GetField<uint64_t>(VT_NUM_BUFFERS, 0);
1367 bool Verify(::flatbuffers::Verifier &verifier)
const {
1368 return VerifyTableStart(verifier) &&
1369 VerifyField<uint32_t>(verifier,
VT_PORT, 4) &&
1371 verifier.VerifyTable(memory_desc()) &&
1373 VerifyField<uint64_t>(verifier, VT_NUM_BUFFERS, 8) &&
1374 verifier.EndTable();
1380 ::flatbuffers::FlatBufferBuilder &
fbb_;
1392 fbb_.AddElement<uint64_t>(CBDesc::VT_NUM_BUFFERS, num_buffers, 0);
1400 auto o = ::flatbuffers::Offset<CBDesc>(end);
1406 ::flatbuffers::FlatBufferBuilder &_fbb,
1408 ::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc = 0,
1409 uint64_t page_size = 0,
1410 uint64_t num_buffers = 0) {
1416 return builder_.
Finish();
1427 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1440 return GetField<uint64_t>(
VT_SIZE, 0);
1442 const tt::target::TensorDesc *
desc()
const {
1443 return GetPointer<const tt::target::TensorDesc *>(VT_DESC);
1445 bool Verify(::flatbuffers::Verifier &verifier)
const {
1446 return VerifyTableStart(verifier) &&
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();
1458 ::flatbuffers::FlatBufferBuilder &
fbb_;
1469 void add_desc(::flatbuffers::Offset<tt::target::TensorDesc> desc) {
1470 fbb_.AddOffset(TensorRef::VT_DESC, desc);
1478 auto o = ::flatbuffers::Offset<TensorRef>(end);
1484 ::flatbuffers::FlatBufferBuilder &_fbb,
1485 uint32_t global_id = 0,
1486 uint64_t address = 0,
1488 ::flatbuffers::Offset<tt::target::TensorDesc> desc = 0) {
1494 return builder_.
Finish();
1505 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1515 return GetPointer<const tt::target::TensorRef *>(
VT_TENSOR_REF);
1520 const tt::target::CBDesc *
desc()
const {
1521 return GetPointer<const tt::target::CBDesc *>(VT_DESC);
1523 bool Verify(::flatbuffers::Verifier &verifier)
const {
1524 return VerifyTableStart(verifier) &&
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();
1537 ::flatbuffers::FlatBufferBuilder &
fbb_;
1548 void add_desc(::flatbuffers::Offset<tt::target::CBDesc> desc) {
1549 fbb_.AddOffset(CBRef::VT_DESC, desc);
1557 auto o = ::flatbuffers::Offset<CBRef>(end);
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) {
1573 return builder_.
Finish();
1584 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1606 return GetStruct<const tt::target::Dim2d *>(
VT_GRID_SIZE);
1648 return GetField<uint32_t>(VT_NUM_CBS, 0);
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) &&
1665 verifier.VerifyTable(physical_cores()) &&
1667 verifier.VerifyVector(supported_data_types()) &&
1669 verifier.VerifyVector(supported_tile_sizes()) &&
1670 VerifyField<uint32_t>(verifier, VT_NUM_CBS, 4) &&
1671 verifier.EndTable();
1677 ::flatbuffers::FlatBufferBuilder &
fbb_;
1725 fbb_.AddElement<uint32_t>(ChipDesc::VT_NUM_CBS, num_cbs, 0);
1733 auto o = ::flatbuffers::Offset<ChipDesc>(end);
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) {
1773 return builder_.
Finish();
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;
1808 noc_l1_address_align_bytes,
1809 pcie_address_align_bytes,
1810 noc_dram_address_align_bytes,
1812 erisc_l1_unreserved_base,
1813 dram_unreserved_base,
1814 dram_unreserved_end,
1816 supported_data_types__,
1817 supported_tile_sizes__,
1821 struct ChipPhysicalCores FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1824 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1828 VT_ETH_INACTIVE = 10
1830 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
worker()
const {
1831 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(
VT_WORKER);
1833 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
dram()
const {
1834 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(
VT_DRAM);
1836 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
eth()
const {
1837 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(
VT_ETH);
1839 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
eth_inactive()
const {
1840 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(VT_ETH_INACTIVE);
1842 bool Verify(::flatbuffers::Verifier &verifier)
const {
1843 return VerifyTableStart(verifier) &&
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();
1858 ::flatbuffers::FlatBufferBuilder &
fbb_;
1860 void add_worker(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> worker) {
1863 void add_dram(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> dram) {
1866 void add_eth(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth) {
1869 void add_eth_inactive(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth_inactive) {
1870 fbb_.AddOffset(ChipPhysicalCores::VT_ETH_INACTIVE, eth_inactive);
1876 ::flatbuffers::Offset<ChipPhysicalCores>
Finish() {
1878 auto o = ::flatbuffers::Offset<ChipPhysicalCores>(end);
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) {
1894 return builder_.
Finish();
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;
1920 struct CPUDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1923 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1925 VT_TARGET_TRIPLE = 6
1931 return GetPointer<const ::flatbuffers::String *>(VT_TARGET_TRIPLE);
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();
1944 ::flatbuffers::FlatBufferBuilder &
fbb_;
1950 fbb_.AddOffset(CPUDesc::VT_TARGET_TRIPLE, target_triple);
1958 auto o = ::flatbuffers::Offset<CPUDesc>(end);
1964 ::flatbuffers::FlatBufferBuilder &_fbb,
1966 ::flatbuffers::Offset<::flatbuffers::String> target_triple = 0) {
1970 return builder_.
Finish();
1979 ::flatbuffers::FlatBufferBuilder &_fbb,
1981 const char *target_triple =
nullptr) {
1982 auto target_triple__ = target_triple ? _fbb.CreateString(target_triple) : 0;
1989 struct SystemDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1992 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1998 VT_CHIP_CHANNELS = 14
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);
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);
2010 return GetPointer<const ::flatbuffers::Vector<tt::target::ChipCapability> *>(
VT_CHIP_CAPABILITIES);
2012 const ::flatbuffers::Vector<const tt::target::ChipCoord *> *
chip_coords()
const {
2013 return GetPointer<const ::flatbuffers::Vector<const tt::target::ChipCoord *> *>(
VT_CHIP_COORDS);
2015 const ::flatbuffers::Vector<const tt::target::ChipChannel *> *
chip_channels()
const {
2016 return GetPointer<const ::flatbuffers::Vector<const tt::target::ChipChannel *> *>(VT_CHIP_CHANNELS);
2018 bool Verify(::flatbuffers::Verifier &verifier)
const {
2019 return VerifyTableStart(verifier) &&
2021 verifier.VerifyVector(cpu_descs()) &&
2022 verifier.VerifyVectorOfTables(cpu_descs()) &&
2024 verifier.VerifyVector(chip_descs()) &&
2025 verifier.VerifyVectorOfTables(chip_descs()) &&
2027 verifier.VerifyVector(chip_desc_indices()) &&
2029 verifier.VerifyVector(chip_capabilities()) &&
2031 verifier.VerifyVector(chip_coords()) &&
2032 VerifyOffset(verifier, VT_CHIP_CHANNELS) &&
2033 verifier.VerifyVector(chip_channels()) &&
2034 verifier.EndTable();
2040 ::flatbuffers::FlatBufferBuilder &
fbb_;
2042 void add_cpu_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>>> cpu_descs) {
2045 void add_chip_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>>> chip_descs) {
2051 void add_chip_capabilities(::flatbuffers::Offset<::flatbuffers::Vector<tt::target::ChipCapability>> chip_capabilities) {
2054 void add_chip_coords(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipCoord *>> chip_coords) {
2057 void add_chip_channels(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipChannel *>> chip_channels) {
2058 fbb_.AddOffset(SystemDesc::VT_CHIP_CHANNELS, chip_channels);
2066 auto o = ::flatbuffers::Offset<SystemDesc>(end);
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) {
2086 return builder_.
Finish();
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;
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;
2112 chip_desc_indices__,
2113 chip_capabilities__,
2118 struct DeviceRef FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
2121 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2127 bool Verify(::flatbuffers::Verifier &verifier)
const {
2128 return VerifyTableStart(verifier) &&
2130 verifier.EndTable();
2136 ::flatbuffers::FlatBufferBuilder &
fbb_;
2147 auto o = ::flatbuffers::Offset<DeviceRef>(end);
2153 ::flatbuffers::FlatBufferBuilder &_fbb,
2154 uint32_t global_id = 0) {
2157 return builder_.
Finish();
2168 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2174 bool Verify(::flatbuffers::Verifier &verifier)
const {
2175 return VerifyTableStart(verifier) &&
2177 verifier.EndTable();
2183 ::flatbuffers::FlatBufferBuilder &
fbb_;
2194 auto o = ::flatbuffers::Offset<EventRef>(end);
2200 ::flatbuffers::FlatBufferBuilder &_fbb,
2201 uint32_t global_id = 0) {
2204 return builder_.
Finish();
2218 auto ptr =
reinterpret_cast<const tt::target::ReplicateTensor *
>(obj);
2219 return verifier.VerifyTable(ptr);
2222 auto ptr =
reinterpret_cast<const tt::target::ShardTensor *
>(obj);
2223 return verifier.VerifyTable(ptr);
2226 auto ptr =
reinterpret_cast<const tt::target::ShardTensor2D *
>(obj);
2227 return verifier.VerifyTable(ptr);
2230 auto ptr =
reinterpret_cast<const tt::target::AllGatherTensor *
>(obj);
2231 return verifier.VerifyTable(ptr);
2233 default:
return true;
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) {
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 T * strategy_as() const
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