Skip to content

add table SampleInputTensorMeta#651

Merged
lixinqi merged 2 commits into
PaddlePaddle:developfrom
Honglei-Qiu:qhl
Feb 26, 2026
Merged

add table SampleInputTensorMeta#651
lixinqi merged 2 commits into
PaddlePaddle:developfrom
Honglei-Qiu:qhl

Conversation

@Honglei-Qiu

Copy link
Copy Markdown
Contributor

PR Category

Feature Enhancement

Description

add table SampleInputTensorMeta

@paddle-bot

paddle-bot Bot commented Feb 26, 2026

Copy link
Copy Markdown

Thanks for your contribution!

Comment thread sqlite/graphsample_insert.py Outdated
Comment on lines +393 to +396
original_name_pattern = re.compile(r'original_name\s*=\s*"(.+?)"')
shape_pattern = re.compile(r"shape\s*=\s*\[(.+?)\]")
dtype_pattern = re.compile(r'dtype\s*=\s*"(.+?)"')
class_blocks = re.split(r"\nclass Program_weight_tensor_meta_", content)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这里有点糙了。实际上有一个 TensorMeta 类。它能直接反序列化 meta.py 的内容。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

已修改

@lixinqi lixinqi closed this Feb 26, 2026
@lixinqi lixinqi reopened this Feb 26, 2026
@lixinqi lixinqi merged commit 1010648 into PaddlePaddle:develop Feb 26, 2026
3 of 4 checks passed
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.

2 participants