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

Typecast int32->fp16b #9317

Merged
merged 5 commits into from
Jun 11, 2024
Merged

Typecast int32->fp16b #9317

merged 5 commits into from
Jun 11, 2024

Conversation

rdjogoTT
Copy link
Contributor

@rdjogoTT rdjogoTT commented Jun 7, 2024

Enabling typecast to fp16b from int32 through SPFU.
Typecast now uses 2 params (one input one output dtype) to differentiate between more combinations of input/output.
Post-commit tests: https://github.com/tenstorrent/tt-metal/actions/runs/9467536575

@rdjogoTT rdjogoTT force-pushed the rd/typecast_to_fp16b branch 3 times, most recently from f6def3f to f28de2f Compare June 10, 2024 23:38
@rdjogoTT rdjogoTT self-assigned this Jun 10, 2024
@rdjogoTT rdjogoTT marked this pull request as ready for review June 10, 2024 23:43
@rdjogoTT rdjogoTT force-pushed the rd/typecast_to_fp16b branch from f28de2f to 4fbf03d Compare June 11, 2024 01:09
@rdjogoTT rdjogoTT force-pushed the rd/typecast_to_fp16b branch from 4fbf03d to c3e46b2 Compare June 11, 2024 14:30
R"doc(Returns tensor with all of the elements of the input tensor ``{0}`` typecasted from bfloat16 to uint32, bfloat16 to uint16, or uint16 to bfloat16.)doc",
R"doc("Indicates output dtype of typecast", "ttl.tensor.DataType", "")doc"
);
m_tensor.def("eltwise_typecast", &eltwise_typecast,
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor note: Can it be documented either here or in the compute kernel api that GS is not supported for this op?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

@rdjogoTT rdjogoTT merged commit c266d38 into main Jun 11, 2024
5 checks passed
@github-actions github-actions bot deleted the rd/typecast_to_fp16b branch December 17, 2024 12:11
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.

4 participants