Thanks a lot to Dr Sean Coffey, who has pointed out there might be issue with the module argparse if you run the code deploy_network.py on Mac OSX. He suggested a fix by adding these lines in the beginning of deploy_network.py:
import argparse
tf.app.flags._global_parser = argparse.ArgumentParser()
tf.app.flags.DEFINE_string('seq_name', 'sa', 'name of sequence')
Thanks a lot to Dr Sean Coffey, who has pointed out there might be issue with the module argparse if you run the code deploy_network.py on Mac OSX. He suggested a fix by adding these lines in the beginning of deploy_network.py:
import argparse tf.app.flags._global_parser = argparse.ArgumentParser() tf.app.flags.DEFINE_string('seq_name', 'sa', 'name of sequence')
Then the code works.