提交 3769c516 authored 作者: Razvan Pascanu's avatar Razvan Pascanu 提交者: David Warde-Farley

removed old inplace optimization

上级 04c40dbd
......@@ -26,17 +26,7 @@ from scan_module.scan_utils import clone
_logger = logging.getLogger('theano.lazycond')
@gof.local_optimizer([None])
def ifelse_make_inplace(node):
op = node.op
if isinstance(op, IfElse) and not op.as_view :
_logger.debug('ifelse_make_inplace applied')
return IfElse(as_view = True,
gpu = op.gpu, name=op.name).make_node(*node.inputs).outputs
return False
optdb.register('ifelse_make_inplace', opt.in2out(ifelse_make_inplace,
ignore_newtrees=True), 95, 'fast_run', 'inplace')
class IfElse(PureOp):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论