Apparently param.get_value returns an nd.array so T.zeros_like doesn't work but np.zeros_like does. And now I realize that you were in fact suggesting np.zeros_like. :)