Is there similar pytorch function as model.summary() as keras?

or easier to remember:

print(model)

gives the same result as repr(model)

2 Likes