Solved by ptrblck in post #2 
              
              
                You can directly access these properties and print them: 
model = nn.LSTM(10, 10, 2, 0.3, bidirectional=True)

print(model.hidden_size)
print(model.num_layers)
print(model.bidirectional)