提交 ba708444 authored 作者: Matthew Rocklin's avatar Matthew Rocklin

import remove

上级 9ce21848
import numpy as np
from theano.scalar.basic import Apply, ScalarOp, as_scalar, float64, float32, int64
from theano.gof.utils import remove
imported_sympy = False
try:
......@@ -17,10 +18,6 @@ names = ("sympy_func_%d"%i for i in it.count(0))
def include_line(line):
return '#include' in line
def remove(pred, seq):
""" Converse of filter """
return [item for item in seq if not pred(item)]
def sympy_dtype(expr):
return get_default_datatype(expr).cname
def theano_dtype(expr):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论