tensorflow-tf.app


import tensorflow as tf 
import tqdm
import time


tf.app.flags.DEFINE_string('var_name', 'hello world', 'var name')

FLAG = tf.app.flags.FLAGS


def main(_):
    print(FLAG.var_name)

    for i in tqdm.tqdm(range(5)):
            time.sleep(1)
            print(i)


if __name__ == '__main__':
    tf.app.run()









你可能感兴趣的:(TensorFlow)