提交 74bd2167 authored 作者: James Bergstra's avatar James Bergstra

added gen_op_list

上级 be9e4498
import gof
import tensor
def isOp(thing):
return hasattr(thing, 'perform')
for module in [tensor]:
title = 'Ops in module: `%s`' % module.__name__
print title
print '-' * len(title)
for symbol_name in dir(module):
symbol = getattr(module, symbol_name)
if isOp(symbol):
print ""
print "- `%s.%s`" % (module.__name__, symbol_name)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论