mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "Enable all PIE rules on ruff (#165814)"
This reverts commit c79dfdc6550e872783aa5cb5fc9e86589bf18872. Reverted https://github.com/pytorch/pytorch/pull/165814 on behalf of https://github.com/cyyever due to Need to cover more files ([comment](https://github.com/pytorch/pytorch/pull/165814#issuecomment-3417931863))
This commit is contained in:
@ -200,7 +200,7 @@ class TestTensorBoardPyTorchNumpy(BaseTestCase):
|
||||
bucket_counts=counts.tolist(),
|
||||
)
|
||||
|
||||
ints = torch.tensor(range(100)).float()
|
||||
ints = torch.tensor(range(0, 100)).float()
|
||||
nbins = 100
|
||||
counts = torch.histc(ints, bins=nbins, min=0, max=99)
|
||||
limits = torch.tensor(range(nbins))
|
||||
|
Reference in New Issue
Block a user