@gof.local_optimizer([sparse.AddSD])
def local_addsd_ccode(node):
 if (isinstance(node.op, sparse.AddSD) and theano.config.cxx):
  new_node = AddSD_ccode(format=node.inputs[0].type.format)(*node.inputs)
  return [new_node]
 return False

@ gof . local_optimizer ( [ sparse . AddSD ] ) def local_addsd_ccode ( node ) : if ( isinstance ( node . op , sparse . AddSD ) and theano . config . cxx ) : new_node = AddSD_ccode ( format = node . inputs [ 0 ] . type . format ) ( * node . inputs ) return [ new_node ] return False
convert addsd to faster addsd_ccode .