def shared_floatx_zeros_matching(shared_variable, name=None, **kwargs):
 if (not is_shared_variable(shared_variable)):
  raise ValueError('argument must be a shared variable')
 return shared_floatx_zeros(shared_variable.get_value().shape, name=name, broadcastable=shared_variable.broadcastable, **kwargs)

def shared_floatx_zeros_matching ( shared_variable , name = None , ** kwargs ) : if ( not is_shared_variable ( shared_variable ) ) : raise ValueError ( 'argument must be a shared variable' ) return shared_floatx_zeros ( shared_variable . get_value ( ) . shape , name = name , broadcastable = shared_variable . broadcastable , ** kwargs )
create another shared variable with matching shape and broadcast .