Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#16067: [WIP] Flatbuffers-based serialization / deserialization for Tensors #16295

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omilyutin-tt
Copy link
Contributor

Ticket

#16067

Problem description

Tensor serialization relies on C++ object view, which is error prone and unstable.

What's changed

Add flatbuffers into tt-metal codebase
Add schema for tensor, implement serialization / deserialization libs

Checklist

  • Post commit CI passes
  • Blackhole Post commit (if applicable)
  • Model regression CI testing passes (if applicable)
  • Device performance regression CI testing passes (if applicable)
  • (For models and ops writers) Full new models tests passes
  • New/Existing tests provide coverage for changes

@omilyutin-tt omilyutin-tt changed the title #16067: Flatbuffers-based serialization / deserialization for Tensors #16067: [WIP] Flatbuffers-based serialization / deserialization for Tensors Dec 23, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@@ -0,0 +1,11 @@
#include "flatbuffers/flatbuffer_builder.h"
#include "tensor_generated.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ clang-diagnostic-error ⚠️
tensor_generated.h file not found

@@ -0,0 +1,102 @@
#include "buffers/buffer_constants.hpp"
#include "flatbuffers/flatbuffer_builder.h"
#include "tensor_generated.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ clang-diagnostic-error ⚠️
tensor_generated.h file not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant