Skip to content

[tests] refactor wan autoencoder tests#13371

Open
sayakpaul wants to merge 2 commits intomainfrom
autoencoderwan-tests-refactor
Open

[tests] refactor wan autoencoder tests#13371
sayakpaul wants to merge 2 commits intomainfrom
autoencoderwan-tests-refactor

Conversation

@sayakpaul
Copy link
Copy Markdown
Member

No description provided.

@sayakpaul sayakpaul requested review from DN6 and yiyixuxu March 31, 2026 05:30
num_channels = 3
sizes = (16, 16)
image = floats_tensor((batch_size, num_channels, num_frames) + sizes).to(torch_device)
image = torch.randn(batch_size, num_channels, num_frames, *sizes).to(torch_device)
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.

Would use randn_tensor. You can use a Generator on CPU for better deterministic output.


@property
def dummy_input_tiling(self):
# Bridge for AutoencoderTesterMixin which still uses the old interface
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.

I would recommend just creating a new Mixin e.g AutoencoderTestMixin that follows the new format and then once all the new AE tests are merged, we can remove the old class.

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