lingvo.core.py_utils_flags module

Common utilities.

lingvo.core.py_utils_flags._FromGlobal(field_name, allow_override_from_cluster=False)[source]

Get ‘field_name’ from a global configuration object.

Currently the global configuration object used is FLAGS, but this may change to Cluster() or an equivalent stack-scoped config object.

Parameters
  • field_name – The string field name to look up.

  • allow_override_from_cluster – Allow the Cluster() to override FLAGS.

Returns

The value associated with the global configuration string ‘field_name’.

lingvo.core.py_utils_flags.enable_asserts()[source]
lingvo.core.py_utils_flags.enable_check_numerics()[source]
lingvo.core.py_utils_flags.use_xla()[source]
lingvo.core.py_utils_flags.use_tpu()[source]
lingvo.core.py_utils_flags.testonly_skip_norm_layers()[source]
lingvo.core.py_utils_flags.tpu_compat()[source]
lingvo.core.py_utils_flags.use_stateless_vars_init()[source]