          ----------
          record: :class:`logging.LogRecord`
              The log record to check for rewriting
          """
          if record.levelno == 30 and (record.funcName == "_tfmw_add_deprecation_warning" or
                                       record.module in ("deprecation", "deprecation_wrapper")):
              # Keras Deprecations.
              record.levelno = 10
 
</s> remove         if "\n" in record.message or "\r" in record.message:
 </s> add         if record.levelno < 30 and ("\n" in record.message or "\r" in record.message): </s> remove     assert ((_BACKEND == "cpu" and keras.__version__.endswith("-tf")) or
            (_BACKEND == "amd" and not keras.__version__.endswith("-tf")))
 </s> add     assert ((_BACKEND == "cpu" and keras.__version__ == "2.4.0") or
            (_BACKEND == "amd" and keras.__version__ == "2.2.4")) </s> remove     record = _old_factory(*args, **kwargs)
 </s> add     record = _OLD_FACTORY(*args, **kwargs) </s> remove     log_crash = logging.StreamHandler(_debug_buffer)
 </s> add     log_crash = logging.StreamHandler(_DEBUG_BUFFER)
        if record.levelno == 30 and record.funcName == "warn" and record.module == "ag_logging":
            # TF 2.3 in Conda is imported with the wrong gast(0.4 when 0.3.3 should be used). This
            # causes warnings in autograph. They don't appear to impact performance so de-elevate
            # warning to debug
            record.levelno = 10
            record.levelname = "DEBUG"

          ----------
          record: :class:`logging.LogRecord`
              The log record to check for rewriting
          """
        if record.levelno == 30 and record.funcName == "warn" and record.module == "ag_logging":
            # TF 2.3 in Conda is imported with the wrong gast(0.4 when 0.3.3 should be used). This
            # causes warnings in autograph. They don't appear to impact performance so de-elevate
            # warning to debug
            record.levelno = 10
            record.levelname = "DEBUG"

          if record.levelno == 30 and (record.funcName == "_tfmw_add_deprecation_warning" or
                                       record.module in ("deprecation", "deprecation_wrapper")):
              # Keras Deprecations.
              record.levelno = 10
keep keep keep add keep keep keep keep
 Update to TF2.3 (#1100)

* Minimum requirements to tf2.3.
  - Handle upgrades for Windows users with tf2.2 installed by Pip
  - Handle windows upgrade from pip tf2.2
  - Explicitly install Cuda for Conda installs

* Update tensorflow errors api reference
* Suppress AutoGraph warning messages
* Update GUI Stats to work with tf2.3
* Fix live graph for tf2.3
* DSSIMObjective - autoGraph bugfix
* Update Travis test 
lib/logger.py