TensorFlow: Is there a way to measure FLOPS for a model?

后端 未结 3 1337
温柔的废话
温柔的废话 2020-12-07 21:05

The closest example I can get is found in this issue: https://github.com/tensorflow/tensorflow/issues/899

With this minimum reproducible code:

import         


        
3条回答
  •  不知归路
    2020-12-07 21:59

    The above approaches no longer work for TF2.0 as the profiler methods have been deprecated and moved under compat.v1. Seems like this feature still needs to be implemented.

    Below is an issue on Github: https://github.com/tensorflow/tensorflow/issues/32809

提交回复
热议问题