boris commited on
Commit
97a008e
1 Parent(s): 19070ab

feat: set default x-axis

Browse files
Files changed (1) hide show
  1. seq2seq/run_seq2seq_flax.py +4 -0
seq2seq/run_seq2seq_flax.py CHANGED
@@ -377,6 +377,10 @@ def main():
377
  config=parser.parse_args()
378
  )
379
 
 
 
 
 
380
  # Make one log on every process with the configuration for debugging.
381
  pylogging.basicConfig(
382
  format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
 
377
  config=parser.parse_args()
378
  )
379
 
380
+ # set default x-axis as 'train/step'
381
+ wandb.define_metric('train/step')
382
+ wandb.define_metric('*', step_metric='train/step')
383
+
384
  # Make one log on every process with the configuration for debugging.
385
  pylogging.basicConfig(
386
  format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",