Seems like it doesn’t work with 2d inputs but according to manual it should.
I’ve found this issue 9 that says nn.InstanceNorm1d - Should be updated to support 1D or 2D inputs without checkbox filled. It might be the case that this operation doesn’t work with 2d inputs for now.