Is there any common way to check output dimensions of any layer?

I am using TensorRT to build a network from scratch.

I found out I can use getNbOutputMaps api to get output dimensions, but i want to check
the output maps for any layer like elementwiselayer, ITensor and sort of.

Is there any way?
Thanks !

Please check the below link, as they might answer your concerns