Skip to content

duplicateflagerror #14

@satishkolla

Description

@satishkolla

DuplicateFlagError Traceback (most recent call last)
/content/run_market.py in ()
5
6 FLAGS = tf.flags.FLAGS
----> 7 tf.flags.DEFINE_integer('batch_size', '50', 'batch size for training')
8 tf.flags.DEFINE_integer('max_steps', '100000', 'max steps for training')
9 tf.flags.DEFINE_string('logs_dir', 'logs/', 'path to logs directory')

4 frames
/usr/local/lib/python3.6/dist-packages/absl/flags/_flagvalues.py in setitem(self, name, flag)
428 # module is simply being imported a subsequent time.
429 return
--> 430 raise _exceptions.DuplicateFlagError.from_flag(name, self)
431 short_name = flag.short_name
432 # If a new flag overrides an old one, we need to cleanup the old flag's

DuplicateFlagError: The flag 'batch_size' is defined twice. First from run_market.py, Second from run_market.py. Description from first occurrence: batch size for training

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions