提交 5f2822a8 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix ProfileMode with random number.

上级 0bd576e1
......@@ -340,7 +340,7 @@ class ProfileMode(Mode):
print "<fct name> <input name> <input type> <str input>"
for fct in fct_call.keys():
for i in fct.input_storage:
if i.type.dtype=='float64':
if hasattr(i.type, 'dtype') and i.type.dtype=='float64':
print fct.name, i.name, i.type, i
register_mode('PROFILE_MODE',ProfileMode())
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论