The problem caused by the parameter dim of torch.norm #89431
Labels
module: edge cases
Adversarial inputs unlikely to occur in practice
module: error checking
Bugs related to incorrect/lacking error checking
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Describe the bug
pytorch1.12.1
pytorch1.8.0
Question 1: Why is False treated as a list in the first test code?
Question 2: Why can鈥檛 False be treated as a value of 0 on a higher version, because when compiled according to the bottom layer of python, False will be set to 0, so why does the program fail?
Versions
pytorch: 1.12.1
pytorch: 1.8.0
Python version: 3.8
CUDA/cuDNN version: cuDNN 11.3
GPU models and configuration: RTX3060
Operating System锛歐indows
The text was updated successfully, but these errors were encountered: