code: def get_flop():
      run_meta = tf.RunMetadata()
      with tf.Session(graph=tf.Graph()) as sess:
          x = tf.zeros([1, 784])
          out = conv_net({"images": x}, 10, False, False)
  
          opts = tf.profiler.ProfileOptionBuilder.float_operation()
          flops = tf.profiler.profile(
              sess.graph, run_meta=run_meta, cmd="op", options=opts
          )
      print("Model FLOPs is %d" % flops.total_float_ops)
      return flops.total_float_ops
  
file_path: auptimizer/Examples/hpo_mnist/mnist_hpo_fail.py
imports: from __future__ import division, print_function, absolute_import
  import argparse
  import os
  import sys
  from datetime import datetime
  from math import log
  import tensorflow
  from tensorflow.examples.tutorials.mnist import input_data
  from aup import BasicConfig, print_result
label_desc: Use image node_id 4 for calling a global function with example usage: get_flop() and returns: flops