pytorch
cedca377 - Re-enable TestNamedTensor.test_big_tensor_repr (#29407)

Commit
4 years ago
Re-enable TestNamedTensor.test_big_tensor_repr (#29407) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29407 Fixes https://github.com/pytorch/pytorch/issues/27753. The bug was that random tensors print subtly differently. This causes the "names=" tag to appear in slightly different places; sometimes it is on the same line as the data, sometimes it is on different lines. For this test, we wanted to know the following: - printing a big named tensor's repr doesn't crash - a big named tensor's repr shows the names This PR changes the test to check those two things. Test Plan: - run existing tests Differential Revision: D18428657 Pulled By: zou3519 fbshipit-source-id: 6bcf247ffba010520878a175e766a496028f87d9
Author
Parents
Loading