(lib_name)
return tf.load_op_library('./' + 'lib{0}.so'.format(lib_name))
Load TensorFlow operator library.
Load TensorFlow operator library.
Load TensorFlow operator library .
def load_op_module(lib_name):
  """
  Load TensorFlow operator library.
  """
  # use absolute path so that ops.py can be called from other directory
  if FLAGS.run_on_cloud:
      lib_path = os.path.join(FLAGS.data_dir, 'lib{0}.so'.format(lib_name))
      tf.gfile.Copy(lib_path, './' + 'lib{0}.so'.format(lib_name), overwrite=True)
  return tf.load_op_library('./' + 'lib{0}.so'.format(lib_name))
def load_op_module ( lib_name ) : # use absolute path so that ops.py can be called from other directory if FLAGS . run_on_cloud : lib_path = os . path . join ( FLAGS . data_dir , 'lib{0}.so' . format ( lib_name ) ) tf . gfile . Copy ( lib_path , './' + 'lib{0}.so' . format ( lib_name ) , overwrite = True ) return tf . load_op_library ( './' + 'lib{0}.so' . format ( lib_name ) )