Similar method with `isSameSizeAs` in pytorch?

In luatorch, isSameSizeAs is used to tell whether two tensors are the same size. However, I haven’t seen a similar one in pytorch.

Just use x.size() == y.size() for condition test.