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);
413 static const char *
const names[3] = {
423 const size_t index =
static_cast<size_t>(e);
447 static const char *
const names[5] = {
459 const size_t index =
static_cast<size_t>(e);
485 static const char *
const names[6] = {
498 const size_t index =
static_cast<size_t>(e);
523 bool VerifyDistributedTensorConfigVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<DistributedTensorConfig> *types);
533 static const CPURole values[] = {
541 static const char *
const names[3] = {
551 const size_t index =
static_cast<size_t>(e);
575 static const char *
const names[6] = {
588 const size_t index =
static_cast<size_t>(e);
603 Dim2d(int32_t _y, int32_t _x)
604 : y_(::flatbuffers::EndianScalar(_y)),
605 x_(::flatbuffers::EndianScalar(_x)) {
608 return ::flatbuffers::EndianScalar(y_);
611 return ::flatbuffers::EndianScalar(x_);
622 tt::target::Dim2d loc_;
623 tt::target::Dim2d size_;
631 Dim2dRange(
const tt::target::Dim2d &_loc,
const tt::target::Dim2d &_size)
635 const tt::target::Dim2d &loc()
const {
638 const tt::target::Dim2d &size()
const {
663 ChipCoord(uint32_t _rack, uint32_t _shelf, uint32_t _y, uint32_t _x)
664 : rack_(::flatbuffers::EndianScalar(_rack)),
665 shelf_(::flatbuffers::EndianScalar(_shelf)),
666 y_(::flatbuffers::EndianScalar(_y)),
667 x_(::flatbuffers::EndianScalar(_x)) {
669 uint32_t rack()
const {
670 return ::flatbuffers::EndianScalar(rack_);
672 uint32_t shelf()
const {
673 return ::flatbuffers::EndianScalar(shelf_);
676 return ::flatbuffers::EndianScalar(y_);
679 return ::flatbuffers::EndianScalar(x_);
690 uint32_t device_id0_;
691 tt::target::Dim2d ethernet_core_coord0_;
692 uint32_t device_id1_;
693 tt::target::Dim2d ethernet_core_coord1_;
699 ethernet_core_coord0_(),
701 ethernet_core_coord1_() {
703 ChipChannel(uint32_t _device_id0,
const tt::target::Dim2d &_ethernet_core_coord0, uint32_t _device_id1,
const tt::target::Dim2d &_ethernet_core_coord1)
704 : device_id0_(::flatbuffers::EndianScalar(_device_id0)),
705 ethernet_core_coord0_(_ethernet_core_coord0),
706 device_id1_(::flatbuffers::EndianScalar(_device_id1)),
707 ethernet_core_coord1_(_ethernet_core_coord1) {
709 uint32_t device_id0()
const {
710 return ::flatbuffers::EndianScalar(device_id0_);
712 const tt::target::Dim2d ðernet_core_coord0()
const {
713 return ethernet_core_coord0_;
715 uint32_t device_id1()
const {
716 return ::flatbuffers::EndianScalar(device_id1_);
718 const tt::target::Dim2d ðernet_core_coord1()
const {
719 return ethernet_core_coord1_;
731 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
735 return GetPointer<const ::flatbuffers::Vector<int64_t> *>(VT_SHARD_SHAPE);
737 bool Verify(::flatbuffers::Verifier &verifier)
const {
738 return VerifyTableStart(verifier) &&
739 VerifyOffset(verifier, VT_SHARD_SHAPE) &&
740 verifier.VerifyVector(shard_shape()) &&
747 ::flatbuffers::FlatBufferBuilder &
fbb_;
749 void add_shard_shape(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape) {
750 fbb_.AddOffset(ShardSpec::VT_SHARD_SHAPE, shard_shape);
756 ::flatbuffers::Offset<ShardSpec>
Finish() {
758 auto o = ::flatbuffers::Offset<ShardSpec>(end);
764 ::flatbuffers::FlatBufferBuilder &_fbb,
765 ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shard_shape = 0) {
777 ::flatbuffers::FlatBufferBuilder &_fbb,
778 const std::vector<int64_t> *shard_shape =
nullptr) {
779 auto shard_shape__ = shard_shape ? _fbb.CreateVector<int64_t>(*shard_shape) : 0;
785 struct MemoryConfigDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
788 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
800 return GetPointer<const tt::target::ShardSpec *>(VT_SHARD_SPEC);
802 bool Verify(::flatbuffers::Verifier &verifier)
const {
803 return VerifyTableStart(verifier) &&
806 VerifyOffset(verifier, VT_SHARD_SPEC) &&
807 verifier.VerifyTable(shard_spec()) &&
814 ::flatbuffers::FlatBufferBuilder &
fbb_;
823 fbb_.AddOffset(MemoryConfigDesc::VT_SHARD_SPEC, shard_spec);
829 ::flatbuffers::Offset<MemoryConfigDesc>
Finish() {
831 auto o = ::flatbuffers::Offset<MemoryConfigDesc>(end);
837 ::flatbuffers::FlatBufferBuilder &_fbb,
840 ::flatbuffers::Offset<tt::target::ShardSpec> shard_spec = 0) {
856 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
857 VT_REPLICATION_FACTOR = 4
860 return GetField<uint32_t>(VT_REPLICATION_FACTOR, 0);
862 bool Verify(::flatbuffers::Verifier &verifier)
const {
863 return VerifyTableStart(verifier) &&
864 VerifyField<uint32_t>(verifier, VT_REPLICATION_FACTOR, 4) &&
871 ::flatbuffers::FlatBufferBuilder &
fbb_;
874 fbb_.AddElement<uint32_t>(ReplicateTensor::VT_REPLICATION_FACTOR, replication_factor, 0);
880 ::flatbuffers::Offset<ReplicateTensor>
Finish() {
882 auto o = ::flatbuffers::Offset<ReplicateTensor>(end);
888 ::flatbuffers::FlatBufferBuilder &_fbb,
889 uint32_t replication_factor = 0) {
903 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
907 return GetField<uint32_t>(VT_SHARD_DIM, 0);
909 bool Verify(::flatbuffers::Verifier &verifier)
const {
910 return VerifyTableStart(verifier) &&
911 VerifyField<uint32_t>(verifier, VT_SHARD_DIM, 4) &&
918 ::flatbuffers::FlatBufferBuilder &
fbb_;
921 fbb_.AddElement<uint32_t>(ShardTensor::VT_SHARD_DIM, shard_dim, 0);
927 ::flatbuffers::Offset<ShardTensor>
Finish() {
929 auto o = ::flatbuffers::Offset<ShardTensor>(end);
935 ::flatbuffers::FlatBufferBuilder &_fbb,
936 uint32_t shard_dim = 0) {
950 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
954 return GetStruct<const tt::target::Dim2d *>(VT_SHARD_MESH);
956 bool Verify(::flatbuffers::Verifier &verifier)
const {
957 return VerifyTableStart(verifier) &&
958 VerifyField<tt::target::Dim2d>(verifier, VT_SHARD_MESH, 4) &&
965 ::flatbuffers::FlatBufferBuilder &
fbb_;
968 fbb_.AddStruct(ShardTensor2D::VT_SHARD_MESH, shard_mesh);
974 ::flatbuffers::Offset<ShardTensor2D>
Finish() {
976 auto o = ::flatbuffers::Offset<ShardTensor2D>(end);
982 ::flatbuffers::FlatBufferBuilder &_fbb,
983 const tt::target::Dim2d *shard_mesh =
nullptr) {
997 bool Verify(::flatbuffers::Verifier &verifier)
const {
998 return VerifyTableStart(verifier) &&
1005 ::flatbuffers::FlatBufferBuilder &
fbb_;
1011 ::flatbuffers::Offset<AllGatherTensor>
Finish() {
1013 auto o = ::flatbuffers::Offset<AllGatherTensor>(end);
1019 ::flatbuffers::FlatBufferBuilder &_fbb) {
1021 return builder_.
Finish();
1032 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1055 bool Verify(::flatbuffers::Verifier &verifier)
const {
1056 return VerifyTableStart(verifier) &&
1060 verifier.EndTable();
1064 template<>
inline const tt::target::ReplicateTensor *DistributionStrategy::strategy_as<tt::target::ReplicateTensor>()
const {
1065 return strategy_as_ReplicateTensor();
1068 template<>
inline const tt::target::ShardTensor *DistributionStrategy::strategy_as<tt::target::ShardTensor>()
const {
1069 return strategy_as_ShardTensor();
1072 template<>
inline const tt::target::ShardTensor2D *DistributionStrategy::strategy_as<tt::target::ShardTensor2D>()
const {
1073 return strategy_as_ShardTensor2D();
1076 template<>
inline const tt::target::AllGatherTensor *DistributionStrategy::strategy_as<tt::target::AllGatherTensor>()
const {
1077 return strategy_as_AllGatherTensor();
1082 ::flatbuffers::FlatBufferBuilder &
fbb_;
1094 ::flatbuffers::Offset<DistributionStrategy>
Finish() {
1096 auto o = ::flatbuffers::Offset<DistributionStrategy>(end);
1102 ::flatbuffers::FlatBufferBuilder &_fbb,
1104 ::flatbuffers::Offset<void> strategy = 0) {
1108 return builder_.
Finish();
1119 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1127 const ::flatbuffers::Vector<int32_t> *
shape()
const {
1128 return GetPointer<const ::flatbuffers::Vector<int32_t> *>(
VT_SHAPE);
1143 return GetField<uint64_t>(
VT_SIZE, 0);
1145 bool Verify(::flatbuffers::Verifier &verifier)
const {
1146 return VerifyTableStart(verifier) &&
1147 VerifyOffset(verifier,
VT_SHAPE) &&
1148 verifier.VerifyVector(shape()) &&
1149 VerifyField<tt::target::Dim2d>(verifier,
VT_TILE_SHAPE, 4) &&
1153 VerifyField<uint64_t>(verifier,
VT_SIZE, 8) &&
1154 verifier.EndTable();
1160 ::flatbuffers::FlatBufferBuilder &
fbb_;
1162 void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape) {
1186 auto o = ::flatbuffers::Offset<MemoryDesc>(end);
1192 ::flatbuffers::FlatBufferBuilder &_fbb,
1193 ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape = 0,
1194 const tt::target::Dim2d *tile_shape =
nullptr,
1198 uint64_t size = 0) {
1206 return builder_.
Finish();
1215 ::flatbuffers::FlatBufferBuilder &_fbb,
1216 const std::vector<int32_t> *shape =
nullptr,
1217 const tt::target::Dim2d *tile_shape =
nullptr,
1221 uint64_t size = 0) {
1222 auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0;
1233 struct LayoutDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1236 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1243 const ::flatbuffers::Vector<int32_t> *
stride()
const {
1244 return GetPointer<const ::flatbuffers::Vector<int32_t> *>(
VT_STRIDE);
1249 const ::flatbuffers::Vector<const tt::target::Dim2dRange *> *
core_range_set()
const {
1250 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2dRange *> *>(
VT_CORE_RANGE_SET);
1253 return GetPointer<const tt::target::MemoryDesc *>(
VT_MEMORY_DESC);
1255 const tt::target::DistributionStrategy *
strategy()
const {
1256 return GetPointer<const tt::target::DistributionStrategy *>(
VT_STRATEGY);
1258 bool Verify(::flatbuffers::Verifier &verifier)
const {
1259 return VerifyTableStart(verifier) &&
1261 verifier.VerifyVector(stride()) &&
1262 VerifyField<uint16_t>(verifier,
VT_OOB_VAL, 2) &&
1264 verifier.VerifyVector(core_range_set()) &&
1266 verifier.VerifyTable(memory_desc()) &&
1268 verifier.VerifyTable(strategy()) &&
1269 verifier.EndTable();
1275 ::flatbuffers::FlatBufferBuilder &
fbb_;
1277 void add_stride(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> stride) {
1283 void add_core_range_set(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2dRange *>> core_range_set) {
1289 void add_strategy(::flatbuffers::Offset<tt::target::DistributionStrategy> strategy) {
1298 auto o = ::flatbuffers::Offset<LayoutDesc>(end);
1304 ::flatbuffers::FlatBufferBuilder &_fbb,
1305 ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> stride = 0,
1307 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2dRange *>> core_range_set = 0,
1308 ::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc = 0,
1309 ::flatbuffers::Offset<tt::target::DistributionStrategy> strategy = 0) {
1316 return builder_.
Finish();
1325 ::flatbuffers::FlatBufferBuilder &_fbb,
1326 const std::vector<int32_t> *stride =
nullptr,
1328 const std::vector<tt::target::Dim2dRange> *core_range_set =
nullptr,
1329 ::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc = 0,
1330 ::flatbuffers::Offset<tt::target::DistributionStrategy> strategy = 0) {
1331 auto stride__ = stride ? _fbb.CreateVector<int32_t>(*stride) : 0;
1332 auto core_range_set__ = core_range_set ? _fbb.CreateVectorOfStructs<tt::target::Dim2dRange>(*core_range_set) : 0;
1342 struct TensorDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1345 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1349 const ::flatbuffers::Vector<int32_t> *
shape()
const {
1350 return GetPointer<const ::flatbuffers::Vector<int32_t> *>(
VT_SHAPE);
1352 const tt::target::LayoutDesc *
layout()
const {
1353 return GetPointer<const tt::target::LayoutDesc *>(
VT_LAYOUT);
1355 bool Verify(::flatbuffers::Verifier &verifier)
const {
1356 return VerifyTableStart(verifier) &&
1357 VerifyOffset(verifier,
VT_SHAPE) &&
1358 verifier.VerifyVector(shape()) &&
1360 verifier.VerifyTable(layout()) &&
1361 verifier.EndTable();
1367 ::flatbuffers::FlatBufferBuilder &
fbb_;
1369 void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape) {
1372 void add_layout(::flatbuffers::Offset<tt::target::LayoutDesc> layout) {
1381 auto o = ::flatbuffers::Offset<TensorDesc>(end);
1387 ::flatbuffers::FlatBufferBuilder &_fbb,
1388 ::flatbuffers::Offset<::flatbuffers::Vector<int32_t>> shape = 0,
1389 ::flatbuffers::Offset<tt::target::LayoutDesc> layout = 0) {
1393 return builder_.
Finish();
1402 ::flatbuffers::FlatBufferBuilder &_fbb,
1403 const std::vector<int32_t> *shape =
nullptr,
1404 ::flatbuffers::Offset<tt::target::LayoutDesc> layout = 0) {
1405 auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0;
1412 struct CBDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1415 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1422 return GetField<uint32_t>(
VT_PORT, 0);
1425 return GetPointer<const tt::target::MemoryDesc *>(
VT_MEMORY_DESC);
1431 return GetField<uint64_t>(VT_NUM_BUFFERS, 0);
1433 bool Verify(::flatbuffers::Verifier &verifier)
const {
1434 return VerifyTableStart(verifier) &&
1435 VerifyField<uint32_t>(verifier,
VT_PORT, 4) &&
1437 verifier.VerifyTable(memory_desc()) &&
1439 VerifyField<uint64_t>(verifier, VT_NUM_BUFFERS, 8) &&
1440 verifier.EndTable();
1446 ::flatbuffers::FlatBufferBuilder &
fbb_;
1458 fbb_.AddElement<uint64_t>(CBDesc::VT_NUM_BUFFERS, num_buffers, 0);
1466 auto o = ::flatbuffers::Offset<CBDesc>(end);
1472 ::flatbuffers::FlatBufferBuilder &_fbb,
1474 ::flatbuffers::Offset<tt::target::MemoryDesc> memory_desc = 0,
1475 uint64_t page_size = 0,
1476 uint64_t num_buffers = 0) {
1482 return builder_.
Finish();
1493 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1506 return GetField<uint64_t>(
VT_SIZE, 0);
1508 const tt::target::TensorDesc *
desc()
const {
1509 return GetPointer<const tt::target::TensorDesc *>(VT_DESC);
1511 bool Verify(::flatbuffers::Verifier &verifier)
const {
1512 return VerifyTableStart(verifier) &&
1514 VerifyField<uint64_t>(verifier,
VT_ADDRESS, 8) &&
1515 VerifyField<uint64_t>(verifier,
VT_SIZE, 8) &&
1516 VerifyOffset(verifier, VT_DESC) &&
1517 verifier.VerifyTable(desc()) &&
1518 verifier.EndTable();
1524 ::flatbuffers::FlatBufferBuilder &
fbb_;
1535 void add_desc(::flatbuffers::Offset<tt::target::TensorDesc> desc) {
1536 fbb_.AddOffset(TensorRef::VT_DESC, desc);
1544 auto o = ::flatbuffers::Offset<TensorRef>(end);
1550 ::flatbuffers::FlatBufferBuilder &_fbb,
1551 uint32_t global_id = 0,
1552 uint64_t address = 0,
1554 ::flatbuffers::Offset<tt::target::TensorDesc> desc = 0) {
1560 return builder_.
Finish();
1571 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1581 return GetPointer<const tt::target::TensorRef *>(
VT_TENSOR_REF);
1586 const tt::target::CBDesc *
desc()
const {
1587 return GetPointer<const tt::target::CBDesc *>(VT_DESC);
1589 bool Verify(::flatbuffers::Verifier &verifier)
const {
1590 return VerifyTableStart(verifier) &&
1593 verifier.VerifyTable(tensor_ref()) &&
1594 VerifyField<uint64_t>(verifier,
VT_ADDRESS, 8) &&
1595 VerifyOffset(verifier, VT_DESC) &&
1596 verifier.VerifyTable(desc()) &&
1597 verifier.EndTable();
1603 ::flatbuffers::FlatBufferBuilder &
fbb_;
1614 void add_desc(::flatbuffers::Offset<tt::target::CBDesc> desc) {
1615 fbb_.AddOffset(CBRef::VT_DESC, desc);
1623 auto o = ::flatbuffers::Offset<CBRef>(end);
1629 ::flatbuffers::FlatBufferBuilder &_fbb,
1630 uint32_t global_id = 0,
1631 ::flatbuffers::Offset<tt::target::TensorRef> tensor_ref = 0,
1632 uint64_t address = 0,
1633 ::flatbuffers::Offset<tt::target::CBDesc> desc = 0) {
1639 return builder_.
Finish();
1650 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1672 return GetStruct<const tt::target::Dim2d *>(
VT_GRID_SIZE);
1714 return GetField<uint32_t>(VT_NUM_CBS, 0);
1716 bool Verify(::flatbuffers::Verifier &verifier)
const {
1717 return VerifyTableStart(verifier) &&
1718 VerifyField<uint32_t>(verifier,
VT_ARCH, 4) &&
1719 VerifyField<tt::target::Dim2d>(verifier,
VT_GRID_SIZE, 4) &&
1720 VerifyField<uint64_t>(verifier,
VT_L1_SIZE, 8) &&
1731 verifier.VerifyTable(physical_cores()) &&
1733 verifier.VerifyVector(supported_data_types()) &&
1735 verifier.VerifyVector(supported_tile_sizes()) &&
1736 VerifyField<uint32_t>(verifier, VT_NUM_CBS, 4) &&
1737 verifier.EndTable();
1743 ::flatbuffers::FlatBufferBuilder &
fbb_;
1791 fbb_.AddElement<uint32_t>(ChipDesc::VT_NUM_CBS, num_cbs, 0);
1799 auto o = ::flatbuffers::Offset<ChipDesc>(end);
1805 ::flatbuffers::FlatBufferBuilder &_fbb,
1807 const tt::target::Dim2d *grid_size =
nullptr,
1808 uint64_t l1_size = 0,
1809 uint32_t num_dram_channels = 0,
1810 uint64_t dram_channel_size = 0,
1811 uint32_t noc_l1_address_align_bytes = 0,
1812 uint32_t pcie_address_align_bytes = 0,
1813 uint32_t noc_dram_address_align_bytes = 0,
1814 uint32_t l1_unreserved_base = 0,
1815 uint32_t erisc_l1_unreserved_base = 0,
1816 uint32_t dram_unreserved_base = 0,
1817 uint32_t dram_unreserved_end = 0,
1818 ::flatbuffers::Offset<tt::target::ChipPhysicalCores> physical_cores = 0,
1819 ::flatbuffers::Offset<::flatbuffers::Vector<tt::target::DataType>> supported_data_types = 0,
1820 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> supported_tile_sizes = 0,
1821 uint32_t num_cbs = 0) {
1839 return builder_.
Finish();
1848 ::flatbuffers::FlatBufferBuilder &_fbb,
1850 const tt::target::Dim2d *grid_size =
nullptr,
1851 uint64_t l1_size = 0,
1852 uint32_t num_dram_channels = 0,
1853 uint64_t dram_channel_size = 0,
1854 uint32_t noc_l1_address_align_bytes = 0,
1855 uint32_t pcie_address_align_bytes = 0,
1856 uint32_t noc_dram_address_align_bytes = 0,
1857 uint32_t l1_unreserved_base = 0,
1858 uint32_t erisc_l1_unreserved_base = 0,
1859 uint32_t dram_unreserved_base = 0,
1860 uint32_t dram_unreserved_end = 0,
1861 ::flatbuffers::Offset<tt::target::ChipPhysicalCores> physical_cores = 0,
1862 const std::vector<tt::target::DataType> *supported_data_types =
nullptr,
1863 const std::vector<tt::target::Dim2d> *supported_tile_sizes =
nullptr,
1864 uint32_t num_cbs = 0) {
1865 auto supported_data_types__ = supported_data_types ? _fbb.CreateVector<
tt::target::DataType>(*supported_data_types) : 0;
1866 auto supported_tile_sizes__ = supported_tile_sizes ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*supported_tile_sizes) : 0;
1874 noc_l1_address_align_bytes,
1875 pcie_address_align_bytes,
1876 noc_dram_address_align_bytes,
1878 erisc_l1_unreserved_base,
1879 dram_unreserved_base,
1880 dram_unreserved_end,
1882 supported_data_types__,
1883 supported_tile_sizes__,
1887 struct ChipPhysicalCores FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1890 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1894 VT_ETH_INACTIVE = 10
1896 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
worker()
const {
1897 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(
VT_WORKER);
1899 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
dram()
const {
1900 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(
VT_DRAM);
1902 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
eth()
const {
1903 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(
VT_ETH);
1905 const ::flatbuffers::Vector<const tt::target::Dim2d *> *
eth_inactive()
const {
1906 return GetPointer<const ::flatbuffers::Vector<const tt::target::Dim2d *> *>(VT_ETH_INACTIVE);
1908 bool Verify(::flatbuffers::Verifier &verifier)
const {
1909 return VerifyTableStart(verifier) &&
1911 verifier.VerifyVector(worker()) &&
1912 VerifyOffset(verifier,
VT_DRAM) &&
1913 verifier.VerifyVector(dram()) &&
1914 VerifyOffset(verifier,
VT_ETH) &&
1915 verifier.VerifyVector(eth()) &&
1916 VerifyOffset(verifier, VT_ETH_INACTIVE) &&
1917 verifier.VerifyVector(eth_inactive()) &&
1918 verifier.EndTable();
1924 ::flatbuffers::FlatBufferBuilder &
fbb_;
1926 void add_worker(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> worker) {
1929 void add_dram(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> dram) {
1932 void add_eth(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth) {
1935 void add_eth_inactive(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth_inactive) {
1936 fbb_.AddOffset(ChipPhysicalCores::VT_ETH_INACTIVE, eth_inactive);
1942 ::flatbuffers::Offset<ChipPhysicalCores>
Finish() {
1944 auto o = ::flatbuffers::Offset<ChipPhysicalCores>(end);
1950 ::flatbuffers::FlatBufferBuilder &_fbb,
1951 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> worker = 0,
1952 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> dram = 0,
1953 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth = 0,
1954 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::Dim2d *>> eth_inactive = 0) {
1960 return builder_.
Finish();
1969 ::flatbuffers::FlatBufferBuilder &_fbb,
1970 const std::vector<tt::target::Dim2d> *worker =
nullptr,
1971 const std::vector<tt::target::Dim2d> *dram =
nullptr,
1972 const std::vector<tt::target::Dim2d> *eth =
nullptr,
1973 const std::vector<tt::target::Dim2d> *eth_inactive =
nullptr) {
1974 auto worker__ = worker ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*worker) : 0;
1975 auto dram__ = dram ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*dram) : 0;
1976 auto eth__ = eth ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*eth) : 0;
1977 auto eth_inactive__ = eth_inactive ? _fbb.CreateVectorOfStructs<tt::target::Dim2d>(*eth_inactive) : 0;
1986 struct CPUDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
1989 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1991 VT_TARGET_TRIPLE = 6
1997 return GetPointer<const ::flatbuffers::String *>(VT_TARGET_TRIPLE);
1999 bool Verify(::flatbuffers::Verifier &verifier)
const {
2000 return VerifyTableStart(verifier) &&
2001 VerifyField<uint8_t>(verifier,
VT_ROLE, 1) &&
2002 VerifyOffset(verifier, VT_TARGET_TRIPLE) &&
2003 verifier.VerifyString(target_triple()) &&
2004 verifier.EndTable();
2010 ::flatbuffers::FlatBufferBuilder &
fbb_;
2016 fbb_.AddOffset(CPUDesc::VT_TARGET_TRIPLE, target_triple);
2024 auto o = ::flatbuffers::Offset<CPUDesc>(end);
2030 ::flatbuffers::FlatBufferBuilder &_fbb,
2032 ::flatbuffers::Offset<::flatbuffers::String> target_triple = 0) {
2036 return builder_.
Finish();
2045 ::flatbuffers::FlatBufferBuilder &_fbb,
2047 const char *target_triple =
nullptr) {
2048 auto target_triple__ = target_triple ? _fbb.CreateString(target_triple) : 0;
2055 struct SystemDesc FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
2058 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2064 VT_CHIP_CHANNELS = 14
2066 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>> *
cpu_descs()
const {
2067 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>> *>(
VT_CPU_DESCS);
2069 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>> *
chip_descs()
const {
2070 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>> *>(
VT_CHIP_DESCS);
2076 return GetPointer<const ::flatbuffers::Vector<tt::target::ChipCapability> *>(
VT_CHIP_CAPABILITIES);
2078 const ::flatbuffers::Vector<const tt::target::ChipCoord *> *
chip_coords()
const {
2079 return GetPointer<const ::flatbuffers::Vector<const tt::target::ChipCoord *> *>(
VT_CHIP_COORDS);
2081 const ::flatbuffers::Vector<const tt::target::ChipChannel *> *
chip_channels()
const {
2082 return GetPointer<const ::flatbuffers::Vector<const tt::target::ChipChannel *> *>(VT_CHIP_CHANNELS);
2084 bool Verify(::flatbuffers::Verifier &verifier)
const {
2085 return VerifyTableStart(verifier) &&
2087 verifier.VerifyVector(cpu_descs()) &&
2088 verifier.VerifyVectorOfTables(cpu_descs()) &&
2090 verifier.VerifyVector(chip_descs()) &&
2091 verifier.VerifyVectorOfTables(chip_descs()) &&
2093 verifier.VerifyVector(chip_desc_indices()) &&
2095 verifier.VerifyVector(chip_capabilities()) &&
2097 verifier.VerifyVector(chip_coords()) &&
2098 VerifyOffset(verifier, VT_CHIP_CHANNELS) &&
2099 verifier.VerifyVector(chip_channels()) &&
2100 verifier.EndTable();
2106 ::flatbuffers::FlatBufferBuilder &
fbb_;
2108 void add_cpu_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>>> cpu_descs) {
2111 void add_chip_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>>> chip_descs) {
2117 void add_chip_capabilities(::flatbuffers::Offset<::flatbuffers::Vector<tt::target::ChipCapability>> chip_capabilities) {
2120 void add_chip_coords(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipCoord *>> chip_coords) {
2123 void add_chip_channels(::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipChannel *>> chip_channels) {
2124 fbb_.AddOffset(SystemDesc::VT_CHIP_CHANNELS, chip_channels);
2132 auto o = ::flatbuffers::Offset<SystemDesc>(end);
2138 ::flatbuffers::FlatBufferBuilder &_fbb,
2139 ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::CPUDesc>>> cpu_descs = 0,
2140 ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ChipDesc>>> chip_descs = 0,
2141 ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> chip_desc_indices = 0,
2142 ::flatbuffers::Offset<::flatbuffers::Vector<tt::target::ChipCapability>> chip_capabilities = 0,
2143 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipCoord *>> chip_coords = 0,
2144 ::flatbuffers::Offset<::flatbuffers::Vector<const tt::target::ChipChannel *>> chip_channels = 0) {
2152 return builder_.
Finish();
2161 ::flatbuffers::FlatBufferBuilder &_fbb,
2162 const std::vector<::flatbuffers::Offset<tt::target::CPUDesc>> *cpu_descs =
nullptr,
2163 const std::vector<::flatbuffers::Offset<tt::target::ChipDesc>> *chip_descs =
nullptr,
2164 const std::vector<uint32_t> *chip_desc_indices =
nullptr,
2165 const std::vector<tt::target::ChipCapability> *chip_capabilities =
nullptr,
2166 const std::vector<tt::target::ChipCoord> *chip_coords =
nullptr,
2167 const std::vector<tt::target::ChipChannel> *chip_channels =
nullptr) {
2168 auto cpu_descs__ = cpu_descs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::CPUDesc>>(*cpu_descs) : 0;
2169 auto chip_descs__ = chip_descs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::ChipDesc>>(*chip_descs) : 0;
2170 auto chip_desc_indices__ = chip_desc_indices ? _fbb.CreateVector<uint32_t>(*chip_desc_indices) : 0;
2172 auto chip_coords__ = chip_coords ? _fbb.CreateVectorOfStructs<tt::target::ChipCoord>(*chip_coords) : 0;
2173 auto chip_channels__ = chip_channels ? _fbb.CreateVectorOfStructs<tt::target::ChipChannel>(*chip_channels) : 0;
2178 chip_desc_indices__,
2179 chip_capabilities__,
2184 struct DeviceRef FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
2187 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2193 bool Verify(::flatbuffers::Verifier &verifier)
const {
2194 return VerifyTableStart(verifier) &&
2196 verifier.EndTable();
2202 ::flatbuffers::FlatBufferBuilder &
fbb_;
2213 auto o = ::flatbuffers::Offset<DeviceRef>(end);
2219 ::flatbuffers::FlatBufferBuilder &_fbb,
2220 uint32_t global_id = 0) {
2223 return builder_.
Finish();
2234 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
2240 bool Verify(::flatbuffers::Verifier &verifier)
const {
2241 return VerifyTableStart(verifier) &&
2243 verifier.EndTable();
2249 ::flatbuffers::FlatBufferBuilder &
fbb_;
2260 auto o = ::flatbuffers::Offset<EventRef>(end);
2266 ::flatbuffers::FlatBufferBuilder &_fbb,
2267 uint32_t global_id = 0) {
2270 return builder_.
Finish();
2284 auto ptr =
reinterpret_cast<const tt::target::ReplicateTensor *
>(obj);
2285 return verifier.VerifyTable(ptr);
2288 auto ptr =
reinterpret_cast<const tt::target::ShardTensor *
>(obj);
2289 return verifier.VerifyTable(ptr);
2292 auto ptr =
reinterpret_cast<const tt::target::ShardTensor2D *
>(obj);
2293 return verifier.VerifyTable(ptr);
2296 auto ptr =
reinterpret_cast<const tt::target::AllGatherTensor *
>(obj);
2297 return verifier.VerifyTable(ptr);
2299 default:
return true;
2303 inline bool VerifyDistributedTensorConfigVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<DistributedTensorConfig> *types) {
2304 if (!values || !types)
return !values && !types;
2305 if (values->size() != types->size())
return false;
2306 for (::flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
VT_LAYOUT
Definition: program_generated.h:792
VT_STRATEGY
Definition: program_generated.h:1256
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:2029
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:1324
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:836
const char *const * EnumNamesMeshShardType()
Definition: types_generated.h:446
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:2218
const MeshShardType(& EnumValuesMeshShardType())[4]
Definition: types_generated.h:436
inline ::flatbuffers::Offset< ShardTensor2D > CreateShardTensor2D(::flatbuffers::FlatBufferBuilder &_fbb, const tt::target::Dim2d *shard_mesh=nullptr)
Definition: types_generated.h:981
const char * EnumNameCPURole(CPURole e)
Definition: types_generated.h:549
const BufferType(& EnumValuesBufferType())[5]
Definition: types_generated.h:368
const char * EnumNameMathFidelity(MathFidelity e)
Definition: types_generated.h:586
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:1471
const char * EnumNameOOBVal(OOBVal e)
Definition: types_generated.h:210
const MeshShardDirection(& EnumValuesMeshShardDirection())[2]
Definition: types_generated.h:404
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:1303
const char *const * EnumNamesMeshShardDirection()
Definition: types_generated.h:412
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:496
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:1214
MathFidelity
Definition: types_generated.h:555
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:1968
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:776
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:1847
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:1949
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:1804
const char *const * EnumNamesMathFidelity()
Definition: types_generated.h:574
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:2137
bool VerifyDistributedTensorConfigVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset< void >> *values, const ::flatbuffers::Vector< DistributedTensorConfig > *types)
Definition: types_generated.h:2303
const char * EnumNameMeshShardDirection(MeshShardDirection e)
Definition: types_generated.h:421
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:1191
const char *const * EnumNamesCPURole()
Definition: types_generated.h:540
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:2160
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:473
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:1101
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:1386
const char * EnumNameDataType(DataType e)
Definition: types_generated.h:171
MeshShardType
Definition: types_generated.h:427
const char *const * EnumNamesDataType()
Definition: types_generated.h:152
const OOBVal(& EnumValuesOOBVal())[5]
Definition: types_generated.h:187
const char * EnumNameMeshShardType(MeshShardType e)
Definition: types_generated.h:457
const TensorMemoryLayout(& EnumValuesTensorMemoryLayout())[6]
Definition: types_generated.h:294
BufferType
Definition: types_generated.h:358
const MathFidelity(& EnumValuesMathFidelity())[4]
Definition: types_generated.h:564
const char *const * EnumNamesBufferType()
Definition: types_generated.h:379
const CPURole(& EnumValuesCPURole())[2]
Definition: types_generated.h:532
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:1401
const TensorLayout(& EnumValuesTensorLayout())[3]
Definition: types_generated.h:333
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Dim2d FLATBUFFERS_FINAL_CLASS
Definition: types_generated.h:592
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:1549
inline ::flatbuffers::Offset< EventRef > CreateEventRef(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t global_id=0)
Definition: types_generated.h:2265
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:887
inline ::flatbuffers::Offset< ShardSpec > CreateShardSpec(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shard_shape=0)
Definition: types_generated.h:763
TensorMemoryLayout
Definition: types_generated.h:283
const char *const * EnumNamesDistributedTensorConfig()
Definition: types_generated.h:484
MeshShardDirection
Definition: types_generated.h:397
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:2044
const char *const * EnumNamesTensorMemoryLayout()
Definition: types_generated.h:306
CPURole
Definition: types_generated.h:525
DataType
Definition: types_generated.h:117
inline ::flatbuffers::Offset< ShardTensor > CreateShardTensor(::flatbuffers::FlatBufferBuilder &_fbb, uint32_t shard_dim=0)
Definition: types_generated.h:934
inline ::flatbuffers::Offset< AllGatherTensor > CreateAllGatherTensor(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1018
bool VerifyDistributedTensorConfig(::flatbuffers::Verifier &verifier, const void *obj, DistributedTensorConfig type)
Definition: types_generated.h:2278
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:1628
DistributedTensorConfig
Definition: types_generated.h:463
FLATBUFFERS_STRUCT_END(Dim2d, 8)
Definition: debug_info_generated.h:18
Definition: types_generated.h:1003
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1005
::flatbuffers::Offset< AllGatherTensor > Finish()
Definition: types_generated.h:1011
AllGatherTensor Table
Definition: types_generated.h:1004
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1006
AllGatherTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1007
Definition: types_generated.h:1024
static constexpr auto Create
Definition: types_generated.h:1026
AllGatherTensor type
Definition: types_generated.h:1025
Definition: types_generated.h:1444
CBDesc Table
Definition: types_generated.h:1445
void add_port(uint32_t port)
Definition: types_generated.h:1448
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1447
void add_num_buffers(uint64_t num_buffers)
Definition: types_generated.h:1457
void add_page_size(uint64_t page_size)
Definition: types_generated.h:1454
void add_memory_desc(::flatbuffers::Offset< tt::target::MemoryDesc > memory_desc)
Definition: types_generated.h:1451
CBDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1460
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1446
::flatbuffers::Offset< CBDesc > Finish()
Definition: types_generated.h:1464
Definition: types_generated.h:1485
CBDesc type
Definition: types_generated.h:1486
static constexpr auto Create
Definition: types_generated.h:1487
Definition: types_generated.h:1601
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1604
void add_tensor_ref(::flatbuffers::Offset< tt::target::TensorRef > tensor_ref)
Definition: types_generated.h:1608
void add_address(uint64_t address)
Definition: types_generated.h:1611
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1603
CBRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1617
CBRef Table
Definition: types_generated.h:1602
void add_global_id(uint32_t global_id)
Definition: types_generated.h:1605
::flatbuffers::Offset< CBRef > Finish()
Definition: types_generated.h:1621
void add_desc(::flatbuffers::Offset< tt::target::CBDesc > desc)
Definition: types_generated.h:1614
Definition: types_generated.h:1642
CBRef type
Definition: types_generated.h:1643
static constexpr auto Create
Definition: types_generated.h:1644
Definition: types_generated.h:2008
CPUDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:2018
::flatbuffers::Offset< CPUDesc > Finish()
Definition: types_generated.h:2022
::flatbuffers::uoffset_t start_
Definition: types_generated.h:2011
void add_role(tt::target::CPURole role)
Definition: types_generated.h:2012
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:2010
void add_target_triple(::flatbuffers::Offset<::flatbuffers::String > target_triple)
Definition: types_generated.h:2015
CPUDesc Table
Definition: types_generated.h:2009
Definition: types_generated.h:2039
CPUDesc type
Definition: types_generated.h:2040
static constexpr auto Create
Definition: types_generated.h:2041
Definition: types_generated.h:724
ChipChannel type
Definition: types_generated.h:725
Definition: types_generated.h:684
ChipCoord type
Definition: types_generated.h:685
Definition: types_generated.h:1741
void add_l1_unreserved_base(uint32_t l1_unreserved_base)
Definition: types_generated.h:1769
void add_supported_data_types(::flatbuffers::Offset<::flatbuffers::Vector< tt::target::DataType >> supported_data_types)
Definition: types_generated.h:1784
void add_erisc_l1_unreserved_base(uint32_t erisc_l1_unreserved_base)
Definition: types_generated.h:1772
void add_dram_unreserved_end(uint32_t dram_unreserved_end)
Definition: types_generated.h:1778
void add_supported_tile_sizes(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> supported_tile_sizes)
Definition: types_generated.h:1787
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1743
void add_arch(tt::target::Arch arch)
Definition: types_generated.h:1745
ChipDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1793
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1744
void add_grid_size(const tt::target::Dim2d *grid_size)
Definition: types_generated.h:1748
void add_pcie_address_align_bytes(uint32_t pcie_address_align_bytes)
Definition: types_generated.h:1763
void add_num_cbs(uint32_t num_cbs)
Definition: types_generated.h:1790
void add_dram_channel_size(uint64_t dram_channel_size)
Definition: types_generated.h:1757
void add_noc_dram_address_align_bytes(uint32_t noc_dram_address_align_bytes)
Definition: types_generated.h:1766
::flatbuffers::Offset< ChipDesc > Finish()
Definition: types_generated.h:1797
void add_l1_size(uint64_t l1_size)
Definition: types_generated.h:1751
void add_noc_l1_address_align_bytes(uint32_t noc_l1_address_align_bytes)
Definition: types_generated.h:1760
void add_num_dram_channels(uint32_t num_dram_channels)
Definition: types_generated.h:1754
void add_physical_cores(::flatbuffers::Offset< tt::target::ChipPhysicalCores > physical_cores)
Definition: types_generated.h:1781
void add_dram_unreserved_base(uint32_t dram_unreserved_base)
Definition: types_generated.h:1775
ChipDesc Table
Definition: types_generated.h:1742
Definition: types_generated.h:1842
ChipDesc type
Definition: types_generated.h:1843
static constexpr auto Create
Definition: types_generated.h:1844
Definition: types_generated.h:1922
ChipPhysicalCores Table
Definition: types_generated.h:1923
::flatbuffers::Offset< ChipPhysicalCores > Finish()
Definition: types_generated.h:1942
ChipPhysicalCoresBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1938
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1925
void add_worker(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> worker)
Definition: types_generated.h:1926
void add_eth_inactive(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> eth_inactive)
Definition: types_generated.h:1935
void add_eth(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> eth)
Definition: types_generated.h:1932
void add_dram(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2d * >> dram)
Definition: types_generated.h:1929
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1924
Definition: types_generated.h:1963
static constexpr auto Create
Definition: types_generated.h:1965
ChipPhysicalCores type
Definition: types_generated.h:1964
Definition: types_generated.h:2200
::flatbuffers::uoffset_t start_
Definition: types_generated.h:2203
DeviceRef Table
Definition: types_generated.h:2201
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:2202
DeviceRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:2207
::flatbuffers::Offset< DeviceRef > Finish()
Definition: types_generated.h:2211
void add_global_id(uint32_t global_id)
Definition: types_generated.h:2204
Definition: types_generated.h:2226
static constexpr auto Create
Definition: types_generated.h:2228
DeviceRef type
Definition: types_generated.h:2227
Definition: types_generated.h:644
Dim2dRange type
Definition: types_generated.h:645
Definition: types_generated.h:616
Dim2d type
Definition: types_generated.h:617
Definition: types_generated.h:502
static const DistributedTensorConfig enum_value
Definition: types_generated.h:503
Definition: types_generated.h:1080
::flatbuffers::Offset< DistributionStrategy > Finish()
Definition: types_generated.h:1094
void add_strategy(::flatbuffers::Offset< void > strategy)
Definition: types_generated.h:1087
void add_strategy_type(tt::target::DistributedTensorConfig strategy_type)
Definition: types_generated.h:1084
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1083
DistributionStrategyBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1090
DistributionStrategy Table
Definition: types_generated.h:1081
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1082
Definition: types_generated.h:1111
static constexpr auto Create
Definition: types_generated.h:1113
DistributionStrategy type
Definition: types_generated.h:1112
Definition: types_generated.h:2247
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:2249
void add_global_id(uint32_t global_id)
Definition: types_generated.h:2251
::flatbuffers::uoffset_t start_
Definition: types_generated.h:2250
EventRef Table
Definition: types_generated.h:2248
EventRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:2254
::flatbuffers::Offset< EventRef > Finish()
Definition: types_generated.h:2258
Definition: types_generated.h:2273
static constexpr auto Create
Definition: types_generated.h:2275
EventRef type
Definition: types_generated.h:2274
Definition: debug_info_generated.h:36
ShardTensor2DBuilder Builder
Definition: types_generated.h:948
uint32_t shard_dim() const
Definition: types_generated.h:906
CPUDescBuilder Builder
Definition: types_generated.h:1987
uint32_t noc_dram_address_align_bytes() const
Definition: types_generated.h:1689
const ::flatbuffers::Vector< const tt::target::Dim2d * > * eth_inactive() const
Definition: types_generated.h:1905
ReplicateTensorBuilder Builder
Definition: types_generated.h:854
tt::target::DistributedTensorConfig strategy_type() const
Definition: types_generated.h:1036
LayoutDescBuilder Builder
Definition: types_generated.h:1234
tt::target::TensorMemoryLayout tensor_memory_layout() const
Definition: types_generated.h:793
uint64_t dram_channel_size() const
Definition: types_generated.h:1680
const ::flatbuffers::Vector< int32_t > * stride() const
Definition: types_generated.h:1243
tt::target::OOBVal oob_val() const
Definition: types_generated.h:1246
uint32_t erisc_l1_unreserved_base() const
Definition: types_generated.h:1695
const ::flatbuffers::Vector< tt::target::ChipCapability > * chip_capabilities() const
Definition: types_generated.h:2075
ShardTensorBuilder Builder
Definition: types_generated.h:901
const ::flatbuffers::Vector< const tt::target::Dim2d * > * worker() const
Definition: types_generated.h:1896
const ::flatbuffers::Vector< const tt::target::ChipCoord * > * chip_coords() const
Definition: types_generated.h:2078
CBDescBuilder Builder
Definition: types_generated.h:1413
const tt::target::TensorDesc * desc() const
Definition: types_generated.h:1508
uint32_t port() const
Definition: types_generated.h:1421
tt::target::TensorMemoryLayout memory_layout() const
Definition: types_generated.h:1139
const tt::target::ChipPhysicalCores * physical_cores() const
Definition: types_generated.h:1704
tt::target::Arch arch() const
Definition: types_generated.h:1668
const tt::target::ShardSpec * shard_spec() const
Definition: types_generated.h:799
SystemDescBuilder Builder
Definition: types_generated.h:2056
DeviceRefBuilder Builder
Definition: types_generated.h:2185
uint32_t num_dram_channels() const
Definition: types_generated.h:1677
uint32_t replication_factor() const
Definition: types_generated.h:859
const tt::target::ShardTensor2D * strategy_as_ShardTensor2D() const
Definition: types_generated.h:1049
uint32_t pcie_address_align_bytes() const
Definition: types_generated.h:1686
uint64_t size() const
Definition: types_generated.h:1142
const ::flatbuffers::Vector< const tt::target::Dim2dRange * > * core_range_set() const
Definition: types_generated.h:1249
const tt::target::CBDesc * desc() const
Definition: types_generated.h:1586
const void * strategy() const
Definition: types_generated.h:1039
const ::flatbuffers::Vector< tt::target::DataType > * supported_data_types() const
Definition: types_generated.h:1707
uint32_t global_id() const
Definition: types_generated.h:1499
uint64_t l1_size() const
Definition: types_generated.h:1674
uint32_t l1_unreserved_base() const
Definition: types_generated.h:1692
tt::target::DataType data_type() const
Definition: types_generated.h:1133
const ::flatbuffers::Vector< const tt::target::Dim2d * > * supported_tile_sizes() const
Definition: types_generated.h:1710
AllGatherTensorBuilder Builder
Definition: types_generated.h:995
const tt::target::Dim2d * shard_mesh() const
Definition: types_generated.h:953
uint64_t page_size() const
Definition: types_generated.h:1427
EventRefBuilder Builder
Definition: types_generated.h:2232
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ChipDesc > > * chip_descs() const
Definition: types_generated.h:2069
uint32_t noc_l1_address_align_bytes() const
Definition: types_generated.h:1683
const ::flatbuffers::Vector< const tt::target::Dim2d * > * eth() const
Definition: types_generated.h:1902
MemoryDescBuilder Builder
Definition: types_generated.h:1117
tt::target::BufferType buffer_type() const
Definition: types_generated.h:796
TensorRefBuilder Builder
Definition: types_generated.h:1491
uint32_t dram_unreserved_base() const
Definition: types_generated.h:1698
const tt::target::LayoutDesc * layout() const
Definition: types_generated.h:1352
const tt::target::ReplicateTensor * strategy_as_ReplicateTensor() const
Definition: types_generated.h:1043
const tt::target::Dim2d * grid_size() const
Definition: types_generated.h:1671
const T * strategy_as() const
const tt::target::TensorRef * tensor_ref() const
Definition: types_generated.h:1580
const ::flatbuffers::Vector< int32_t > * shape() const
Definition: types_generated.h:1127
const ::flatbuffers::Vector< const tt::target::ChipChannel * > * chip_channels() const
Definition: types_generated.h:2081
uint32_t dram_unreserved_end() const
Definition: types_generated.h:1701
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::CPUDesc > > * cpu_descs() const
Definition: types_generated.h:2066
uint32_t num_cbs() const
Definition: types_generated.h:1713
uint64_t address() const
Definition: types_generated.h:1502
ShardSpecBuilder Builder
Definition: types_generated.h:729
const tt::target::AllGatherTensor * strategy_as_AllGatherTensor() const
Definition: types_generated.h:1052
const tt::target::DistributionStrategy * strategy() const
Definition: types_generated.h:1255
MemoryConfigDescBuilder Builder
Definition: types_generated.h:786
TensorDescBuilder Builder
Definition: types_generated.h:1343
bool Verify(::flatbuffers::Verifier &verifier) const
Definition: types_generated.h:737
uint64_t num_buffers() const
Definition: types_generated.h:1430
DistributionStrategyBuilder Builder
Definition: types_generated.h:1030
ChipPhysicalCoresBuilder Builder
Definition: types_generated.h:1888
const ::flatbuffers::Vector< int64_t > * shard_shape() const
Definition: types_generated.h:734
const tt::target::Dim2d * tile_shape() const
Definition: types_generated.h:1130
const ::flatbuffers::Vector< uint32_t > * chip_desc_indices() const
Definition: types_generated.h:2072
const tt::target::MemoryDesc * memory_desc() const
Definition: types_generated.h:1252
const ::flatbuffers::Vector< const tt::target::Dim2d * > * dram() const
Definition: types_generated.h:1899
const ::flatbuffers::String * target_triple() const
Definition: types_generated.h:1996
tt::target::MemorySpace memory_space() const
Definition: types_generated.h:1136
ChipDescBuilder Builder
Definition: types_generated.h:1648
const tt::target::ShardTensor * strategy_as_ShardTensor() const
Definition: types_generated.h:1046
CBRefBuilder Builder
Definition: types_generated.h:1569
tt::target::CPURole role() const
Definition: types_generated.h:1993
Definition: types_generated.h:1273
::flatbuffers::Offset< LayoutDesc > Finish()
Definition: types_generated.h:1296
void add_oob_val(tt::target::OOBVal oob_val)
Definition: types_generated.h:1280
void add_strategy(::flatbuffers::Offset< tt::target::DistributionStrategy > strategy)
Definition: types_generated.h:1289
void add_core_range_set(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::Dim2dRange * >> core_range_set)
Definition: types_generated.h:1283
void add_memory_desc(::flatbuffers::Offset< tt::target::MemoryDesc > memory_desc)
Definition: types_generated.h:1286
void add_stride(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> stride)
Definition: types_generated.h:1277
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1275
LayoutDesc Table
Definition: types_generated.h:1274
LayoutDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1292
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1276
Definition: types_generated.h:1319
static constexpr auto Create
Definition: types_generated.h:1321
LayoutDesc type
Definition: types_generated.h:1320
Definition: types_generated.h:812
::flatbuffers::uoffset_t start_
Definition: types_generated.h:815
MemoryConfigDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:825
MemoryConfigDesc Table
Definition: types_generated.h:813
::flatbuffers::Offset< MemoryConfigDesc > Finish()
Definition: types_generated.h:829
void add_buffer_type(tt::target::BufferType buffer_type)
Definition: types_generated.h:819
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:814
void add_tensor_memory_layout(tt::target::TensorMemoryLayout tensor_memory_layout)
Definition: types_generated.h:816
void add_shard_spec(::flatbuffers::Offset< tt::target::ShardSpec > shard_spec)
Definition: types_generated.h:822
Definition: types_generated.h:848
static constexpr auto Create
Definition: types_generated.h:850
MemoryConfigDesc type
Definition: types_generated.h:849
Definition: types_generated.h:1158
void add_tile_shape(const tt::target::Dim2d *tile_shape)
Definition: types_generated.h:1165
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape)
Definition: types_generated.h:1162
void add_memory_layout(tt::target::TensorMemoryLayout memory_layout)
Definition: types_generated.h:1174
void add_data_type(tt::target::DataType data_type)
Definition: types_generated.h:1168
void add_size(uint64_t size)
Definition: types_generated.h:1177
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1160
MemoryDesc Table
Definition: types_generated.h:1159
void add_memory_space(tt::target::MemorySpace memory_space)
Definition: types_generated.h:1171
MemoryDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1180
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1161
::flatbuffers::Offset< MemoryDesc > Finish()
Definition: types_generated.h:1184
Definition: types_generated.h:1209
MemoryDesc type
Definition: types_generated.h:1210
static constexpr auto Create
Definition: types_generated.h:1211
Definition: types_generated.h:869
ReplicateTensor Table
Definition: types_generated.h:870
::flatbuffers::uoffset_t start_
Definition: types_generated.h:872
ReplicateTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:876
void add_replication_factor(uint32_t replication_factor)
Definition: types_generated.h:873
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:871
::flatbuffers::Offset< ReplicateTensor > Finish()
Definition: types_generated.h:880
Definition: types_generated.h:895
static constexpr auto Create
Definition: types_generated.h:897
ReplicateTensor type
Definition: types_generated.h:896
Definition: types_generated.h:745
::flatbuffers::Offset< ShardSpec > Finish()
Definition: types_generated.h:756
void add_shard_shape(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shard_shape)
Definition: types_generated.h:749
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:747
ShardSpecBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:752
ShardSpec Table
Definition: types_generated.h:746
::flatbuffers::uoffset_t start_
Definition: types_generated.h:748
Definition: types_generated.h:771
static constexpr auto Create
Definition: types_generated.h:773
ShardSpec type
Definition: types_generated.h:772
Definition: types_generated.h:963
::flatbuffers::uoffset_t start_
Definition: types_generated.h:966
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:965
ShardTensor2DBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:970
::flatbuffers::Offset< ShardTensor2D > Finish()
Definition: types_generated.h:974
void add_shard_mesh(const tt::target::Dim2d *shard_mesh)
Definition: types_generated.h:967
ShardTensor2D Table
Definition: types_generated.h:964
Definition: types_generated.h:989
static constexpr auto Create
Definition: types_generated.h:991
ShardTensor2D type
Definition: types_generated.h:990
Definition: types_generated.h:916
ShardTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:923
void add_shard_dim(uint32_t shard_dim)
Definition: types_generated.h:920
::flatbuffers::Offset< ShardTensor > Finish()
Definition: types_generated.h:927
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:918
ShardTensor Table
Definition: types_generated.h:917
::flatbuffers::uoffset_t start_
Definition: types_generated.h:919
Definition: types_generated.h:942
static constexpr auto Create
Definition: types_generated.h:944
ShardTensor type
Definition: types_generated.h:943
Definition: types_generated.h:2104
::flatbuffers::Offset< SystemDesc > Finish()
Definition: types_generated.h:2130
SystemDesc Table
Definition: types_generated.h:2105
void add_chip_desc_indices(::flatbuffers::Offset<::flatbuffers::Vector< uint32_t >> chip_desc_indices)
Definition: types_generated.h:2114
void add_cpu_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::CPUDesc >>> cpu_descs)
Definition: types_generated.h:2108
void add_chip_channels(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::ChipChannel * >> chip_channels)
Definition: types_generated.h:2123
SystemDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:2126
void add_chip_coords(::flatbuffers::Offset<::flatbuffers::Vector< const tt::target::ChipCoord * >> chip_coords)
Definition: types_generated.h:2120
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:2106
::flatbuffers::uoffset_t start_
Definition: types_generated.h:2107
void add_chip_capabilities(::flatbuffers::Offset<::flatbuffers::Vector< tt::target::ChipCapability >> chip_capabilities)
Definition: types_generated.h:2117
void add_chip_descs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ChipDesc >>> chip_descs)
Definition: types_generated.h:2111
Definition: types_generated.h:2155
static constexpr auto Create
Definition: types_generated.h:2157
SystemDesc type
Definition: types_generated.h:2156
Definition: types_generated.h:1365
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int32_t >> shape)
Definition: types_generated.h:1369
void add_layout(::flatbuffers::Offset< tt::target::LayoutDesc > layout)
Definition: types_generated.h:1372
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1367
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1368
TensorDesc Table
Definition: types_generated.h:1366
::flatbuffers::Offset< TensorDesc > Finish()
Definition: types_generated.h:1379
TensorDescBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1375
Definition: types_generated.h:1396
static constexpr auto Create
Definition: types_generated.h:1398
TensorDesc type
Definition: types_generated.h:1397
Definition: types_generated.h:1522
void add_address(uint64_t address)
Definition: types_generated.h:1529
::flatbuffers::uoffset_t start_
Definition: types_generated.h:1525
void add_size(uint64_t size)
Definition: types_generated.h:1532
void add_desc(::flatbuffers::Offset< tt::target::TensorDesc > desc)
Definition: types_generated.h:1535
void add_global_id(uint32_t global_id)
Definition: types_generated.h:1526
::flatbuffers::Offset< TensorRef > Finish()
Definition: types_generated.h:1542
::flatbuffers::FlatBufferBuilder & fbb_
Definition: types_generated.h:1524
TensorRef Table
Definition: types_generated.h:1523
TensorRefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: types_generated.h:1538
Definition: types_generated.h:1563
static constexpr auto Create
Definition: types_generated.h:1565
TensorRef type
Definition: types_generated.h:1564
VT_NUM_DRAM_CHANNELS
Definition: types_generated.h:1654
VT_STRATEGY_TYPE
Definition: types_generated.h:1033
VT_TILE_SHAPE
Definition: types_generated.h:1121
VT_DRAM_CHANNEL_SIZE
Definition: types_generated.h:1655
VT_PCIE_ADDRESS_ALIGN_BYTES
Definition: types_generated.h:1657
VT_TENSOR_REF
Definition: types_generated.h:1573
VT_SHAPE
Definition: types_generated.h:1120
VT_PORT
Definition: types_generated.h:1416
VT_GRID_SIZE
Definition: types_generated.h:1652
VT_SUPPORTED_TILE_SIZES
Definition: types_generated.h:1665
VT_ETH
Definition: types_generated.h:1893
VT_NOC_L1_ADDRESS_ALIGN_BYTES
Definition: types_generated.h:1656
VT_STRIDE
Definition: types_generated.h:1237
VT_DATA_TYPE
Definition: types_generated.h:1122
VT_NOC_DRAM_ADDRESS_ALIGN_BYTES
Definition: types_generated.h:1658
VT_DRAM_UNRESERVED_BASE
Definition: types_generated.h:1661
VT_ROLE
Definition: types_generated.h:1990
VT_CORE_RANGE_SET
Definition: types_generated.h:1239
VT_TENSOR_MEMORY_LAYOUT
Definition: types_generated.h:789
VT_PHYSICAL_CORES
Definition: types_generated.h:1663
VT_PAGE_SIZE
Definition: types_generated.h:1418
VT_BUFFER_TYPE
Definition: types_generated.h:790
VT_GLOBAL_ID
Definition: types_generated.h:1494
VT_OOB_VAL
Definition: types_generated.h:1238
VT_CPU_DESCS
Definition: types_generated.h:2059
VT_CHIP_DESC_INDICES
Definition: types_generated.h:2061
VT_MEMORY_SPACE
Definition: types_generated.h:1123
VT_CHIP_CAPABILITIES
Definition: types_generated.h:2062
VT_ADDRESS
Definition: types_generated.h:1495
VT_L1_UNRESERVED_BASE
Definition: types_generated.h:1659
VT_ARCH
Definition: types_generated.h:1651
VT_SUPPORTED_DATA_TYPES
Definition: types_generated.h:1664
VT_ERISC_L1_UNRESERVED_BASE
Definition: types_generated.h:1660
VT_WORKER
Definition: types_generated.h:1891
VT_DRAM
Definition: types_generated.h:1892
VT_SIZE
Definition: types_generated.h:1496
VT_CHIP_DESCS
Definition: types_generated.h:2060
VT_MEMORY_DESC
Definition: types_generated.h:1240
VT_CHIP_COORDS
Definition: types_generated.h:2063
VT_MEMORY_LAYOUT
Definition: types_generated.h:1124
VT_DRAM_UNRESERVED_END
Definition: types_generated.h:1662
VT_L1_SIZE
Definition: types_generated.h:1653