INNER CODE UNIT · Python

_missing_api

lululxvi/deepxde · deepxde/backend/__init__.py:28

    def _missing_api(*args, **kwargs):
        raise ImportError(
            'API "%s" is not supported by backend "%s".'
            " You can switch to other backends by setting"
            " the DDE_BACKEND environment." % (api, mod_name)
        )

    return _missing_api


def backend_message(backend_name):
    """Show message about backend.

    Args:
        backend_name: which backend used
    """
    msg = f"Using backend: {backend_name}\nOther supported backends: "
    if backend_name == "tensorflow.compat.v1":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…