Skip to content

Conversation

@danieldk
Copy link
Member

Warning: not ready for review yet, I just want a CI run :).

What does this PR do?

Fixes # (issue) or description of the problem this PR solves.

Comment on lines 809 to 810
/// Complex (32-bit parts)
Complex64,
Copy link
Member

Choose a reason for hiding this comment

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

32-bit parts for complex64?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah:

>>> x = torch.zeros(1, dtype=torch.complex64)
>>> x.real.dtype
torch.float32
>>> x.imag.dtype
torch.float32

Copy link
Member

@McPatate McPatate Oct 20, 2025

Choose a reason for hiding this comment

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

somehow didn't parse parts (with an s), which was pretty clear, mb 🙃

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Dtype::BF16 => "BF16",
Dtype::F32 => "F32",
Dtype::F64 => "F64",
Dtype::Complex64 => "Complex64",
Copy link
Contributor

Choose a reason for hiding this comment

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

Any way we could keep things in line with what's before "C64" just for consistency's sake ?

Hi guys !

Copy link
Member Author

Choose a reason for hiding this comment

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

Hey hey! Hope you are doing great!

Changed to C64, now one can only hope for a type A500 in the future 😁.

Copy link
Member

Choose a reason for hiding this comment

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

Feels a bit confusing to have it be C64 in one place but Complex64 everywhere else imo

@danieldk danieldk marked this pull request as ready for review October 27, 2025 14:33
Copy link
Member

@McPatate McPatate left a comment

Choose a reason for hiding this comment

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

👌🏻

@danieldk danieldk merged commit 547d0a7 into main Oct 28, 2025
31 checks passed
@danieldk danieldk deleted the add-complex64 branch October 28, 2025 16:56
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.

5 participants