TensorFlow
worden丶
这个作者很懒,什么都没留下…
展开
-
TensorFlow2.0学习笔记之一些高阶API
一、tf.keras高阶API概览高阶API代码实现activationstf.keras.actibations包含了当前主流的激活函数,可以直接通过该API进行激活函数的调用。applicationstf.keras.applications包含的是已经进行预训练的神经网络模型,可以直接进行预测或者迁移学习。目前该模块中包含了主流的神经网络结构。backendtf.keras.backend包含了Keras后台的一些基础API接口,用于实现高阶API或者自原创 2021-01-23 15:41:24 · 261 阅读 · 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 · 203 阅读 · 0 评论