Skip to content

Improvement readability and comprehensibility of cast process of generate_image() in Stable Diffusion #2195

@y-vectorfield

Description

@y-vectorfield

According to line 238, the casting method is implemented abruptly and unnaturally.
I added this method previously in pull request #2102.
Hence, I should move this method to line 237 and add comments about the reason for the casting.

latent = ops.cast(latent, latent_prev.dtype)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions