()
Initializes gin-controlled bindings.
Initializes gin-controlled bindings.
Initializes gin - controlled bindings .
def _gin_parse_configs():
  """Initializes gin-controlled bindings."""
  # Imports for configurables
  # pylint: disable=g-import-not-at-top,unused-import,g-bad-import-order,reimported,unused-variable
  from trax import models as _trax_models
  from trax import optimizers as _trax_opt
  # pylint: disable=g-import-not-at-top,unused-import,g-bad-import-order,reimported,unused-variable

  configs = FLAGS.config if FLAGS.config is not None else []
  # Override with --dataset and --model
  if FLAGS.dataset:
    configs.append("data_streams.dataset_name='%s'" % FLAGS.dataset)
  if FLAGS.data_dir:
    configs.append("data_streams.data_dir='%s'" % FLAGS.data_dir)
  if FLAGS.model:
    configs.append('train.model=@trax.models.%s' % FLAGS.model)
  gin.parse_config_files_and_bindings(FLAGS.config_file, configs)
def _gin_parse_configs ( ) : # Imports for configurables # pylint: disable=g-import-not-at-top,unused-import,g-bad-import-order,reimported,unused-variable from trax import models as _trax_models from trax import optimizers as _trax_opt # pylint: disable=g-import-not-at-top,unused-import,g-bad-import-order,reimported,unused-variable configs = FLAGS . config if FLAGS . config is not None else [ ] # Override with --dataset and --model if FLAGS . dataset : configs . append ( "data_streams.dataset_name='%s'" % FLAGS . dataset ) if FLAGS . data_dir : configs . append ( "data_streams.data_dir='%s'" % FLAGS . data_dir ) if FLAGS . model : configs . append ( 'train.model=@trax.models.%s' % FLAGS . model ) gin . parse_config_files_and_bindings ( FLAGS . config_file , configs )