title: How can I measure the computational complexity of my Convolutional Neural Network Model?
body: <p>I have to evaluate my CNN model for Semantic Segmentation (when predicting) in terms of <strong>computational complexity</strong>, <strong>memory use</strong> and <strong>processing time</strong>. I work with Python (Keras).</p>
  
  <p>Is there a way to count the number of operations performed in each layer or at least in the whole model?</p>
  
  <p>I was taking a look to profiling libraries such as CProfile, but honestly, I am not sure of what I am getting.</p>
  
  <p>Any help, please?</p>
  
  <p>Thanks in advance!</p>