Source code for langml

# -*- coding: utf-8 -*-

import os

import tensorflow as tf


[docs]__version__ = '0.4.2'
[docs]TF_VERSION = int(tf.__version__.split('.')[0])
[docs]TF_KERAS = int(os.getenv('TF_KERAS', 0)) == 1
if TF_KERAS: import tensorflow.keras as keras # NOQA import tensorflow.keras.layers as L # NOQA import tensorflow.keras.backend as K # NOQA else: import keras # NOQA import keras.layers as L # NOQA import keras.backend as K # NOQA