@gof.local_optimizer([csm_properties])
def local_csm_properties_csm(node):
 if (node.op == csm_properties):
  (csm,) = node.inputs
  if (csm.owner and ((csm.owner.op == CSC) or (csm.owner.op == CSR))):
   ret_var = [theano.tensor.patternbroadcast(i, o.broadcastable) for (i, o) in izip(csm.owner.inputs, node.outputs)]
   return ret_var
 return False

@ gof . local_optimizer ( [ csm_properties ] ) def local_csm_properties_csm ( node ) : if ( node . op == csm_properties ) : ( csm , ) = node . inputs if ( csm . owner and ( ( csm . owner . op == CSC ) or ( csm . owner . op == CSR ) ) ) : ret_var = [ theano . tensor . patternbroadcast ( i , o . broadcastable ) for ( i , o ) in izip ( csm . owner . inputs , node . outputs ) ] return ret_var return False
if we find csm_properties(csm) .