Skip to content

support printing for TrackingTensor#27

Merged
zitongzhan merged 2 commits intoreleasefrom
zitongzhan/tt__format__
Apr 22, 2026
Merged

support printing for TrackingTensor#27
zitongzhan merged 2 commits intoreleasefrom
zitongzhan/tt__format__

Conversation

@zitongzhan
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the __format__ method to a tensor subclass in bae/autograd/function.py to support standard Python formatting. The reviewer suggested an improvement to preserve subclass-specific string representations and simplify the logic by using str(self) directly and leveraging the default behavior of the format function.

Comment thread bae/autograd/function.py Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@zitongzhan zitongzhan merged commit cad630c into release Apr 22, 2026
3 checks passed
@zitongzhan zitongzhan deleted the zitongzhan/tt__format__ branch April 22, 2026 05:35
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