Hidden_dim, layer_dim in LSTM

I have used LSTM in Keras and now I am using LSTM in Pytorch but do not understand hidden_dim and layer_dim could you please let know how they work?