1 Star 5 Fork 0

jeusgao / jobot_factory_simple_nlp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
backend.py 370 Bytes
一键复制 编辑 原始数据 按行查看 历史
jeusgao 提交于 2021-03-09 22:08 . updated
import os
import tensorflow as tf
from distutils.util import strtobool
__all__ = [
'keras', 'TF_KERAS', 'V_TF',
]
TF_KERAS = strtobool(os.environ.get('TF_KERAS', '0'))
V_TF = tf.__version__
if TF_KERAS or V_TF >= '2.3':
import tensorflow as tf
import tensorflow.keras.backend as K
keras = tf.keras
else:
import keras
import keras.backend as K
1
https://gitee.com/jeusgao/jobot_factory_simple_nlp.git
git@gitee.com:jeusgao/jobot_factory_simple_nlp.git
jeusgao
jobot_factory_simple_nlp
jobot_factory_simple_nlp
master

搜索帮助