Skip to content

Conversation

@Echo-Nie
Copy link
Contributor

@Echo-Nie Echo-Nie commented Sep 5, 2025

  1. test_wint25_unzip
    解压缩后的张量是否恢复到正确形状,并且输出不为全零。

  2. test_wint2_unzip
    解压缩后的张量是否具有预期形状,并且输出包含非零值。

@paddle-bot
Copy link

paddle-bot bot commented Sep 5, 2025

Thanks for your contribution!

out = out.unsqueeze(0)

self.assertEqual(list(out.shape), expected_shape)
self.assertTrue(np.any(out.numpy() != 0))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

out = out.unsqueeze(0)

self.assertEqual(list(out.shape), expected_shape)
self.assertTrue(np.any(out.numpy() != 0))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you write a naive version of the unzip code directly in Python for accuracy comparison? The "!=0" check seems too broad.

@luotao1
Copy link
Collaborator

luotao1 commented Sep 15, 2025

@Echo-Nie 记得更新

@Echo-Nie Echo-Nie closed this Oct 17, 2025
@Echo-Nie Echo-Nie deleted the 38hac branch October 17, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants