Thank you for explanation. Still I have two questions.
[1]



 jpeg729:

The second lambda layer is a no-op given that the preceding lambda reshapes the output to 2 dimensions.


In this context, “2 dimensions” corresponds to batch_size = 2?
[2]
In my model includes lambda layers as described. Can I correctly save them by:
torch.save(model.state_dict(), "model.pth")

?