![](/img/trans.png)
[英]Can't debug Python script in PyCharm 5.0: `AttributeError: 'module' object has no attribute 'default_getpass'`
[英]Why can't PyCharm show PyTorch Module object attributes in debug mode
這是由於在super
之類的第一個調用中沒有正確初始化Module
__init__
的:
super(AModule, self).__init__()
然而,PyCharm 可以顯示更多有用的信息,所以我創建了這個問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.