
TensorFlow
worden丶
这个作者很懒,什么都没留下…
展开
-
TensorFlow2.0学习笔记之一些高阶API
一、tf.keras高阶API概览 高阶API 代码 实现 activations tf.keras.actibations 包含了当前主流的激活函数,可以直接通过该API进行激活函数的调用。 applications tf.keras.applications 包含的是已经进行预训练的神经网络模型,可以直接进行预测或者迁移学习。目前该模块中包含了主流的神经网络结构。 backend tf.keras.backend 包含了Keras后台的一些基础API接口,用于实现高阶API或者自原创 2021-01-23 15:41:24 · 319 阅读 · 0 评论 -
TensorFlow学习笔记之一些低阶API
import tensorflow as tf # 查看tensorflow的版本 print("TensorFlow Version:{}".format(tf.__version__)) 输出结果: TensorFlow Version:2.3.0 # TensorFlow2.0 低阶API基础编程 # tf.constant提供了常量的声明功能,示例代码如下 a = tf.constant(9) print(a,a.numpy()) 输出结果: tf.Tensor(9, shape=(), dtyp原创 2021-01-21 17:11:50 · 250 阅读 · 0 评论