This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
print warning log when parse attributes not defined of the object
tags/v1.0.0
buxue
5 years ago
parent
12f27b8a70
commit
a86e4ac370
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
mindspore/_extends/parse/namespace.py
+ 5
- 0
mindspore/_extends/parse/namespace.py
View File
@@ -18,6 +18,8 @@
import builtins
from mindspore import log as logger
class Namespace:
"""
@@ -115,3 +117,6 @@ class ClassMemberNamespace(Namespace):
return d.__dict__[name]
except ValueError:
raise UnboundLocalError(name)
except KeyError:
logger.warning(f"'{d.__class__.__name__ }' object has no attribute or method: '{name}', "
f"so will return None.")
Write
Preview
Loading…
Cancel
Save