update get_tensor_product_conn() for non-array shape