![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
wwwlyj123321
这个作者很懒,什么都没留下…
展开
-
Keras.NET(1)- 安装
0.写在前面:作者基于tensorflow 2.X,利用自在的keras接口完成了神经网络的训练,现在想把模型跑在c#端,但使用TensorFlowsharp好像还是tensorflow 1.X的语言风格,改动起来较为困难。所以想寻找c#接口的keras。经过一番搜索,找到两个资源,分别为keras-sharp(https://github.com/tcmxx/keras-sharp)和Ker...原创 2020-03-14 20:17:16 · 2027 阅读 · 2 评论 -
TensorFlowsharp(1)- 安装
1、使用NuGet安装TensorFlowsharp安装完成后程序会自动添加引用2、其他准备必须将解决方案改为64为平台,否则会遇到意想不到的麻烦3、测试使用官方的示例进行测试:using System;using System.Collections.Generic;using System.ComponentModel;using System.D...原创 2020-03-03 11:23:22 · 238 阅读 · 0 评论 -
tensorflow 2.0使用plot_model函数画网络结构图
1、函数的定义及其形参tf.keras.utils.plot_model( model, to_file='model.png', show_shapes=False, show_layer_names=True, rankdir='TB', expand_nested=False, dpi=96)Arguments:mode...原创 2019-12-25 18:34:02 · 12676 阅读 · 10 评论 -
用Anaconda管理多个Tensorflow 版本
https://blog.csdn.net/THUChina/article/details/79173521https://blog.csdn.net/weixin_39153202/article/details/85158180转载 2019-06-30 17:04:11 · 3014 阅读 · 0 评论 -
tensorflow2.0保存和恢复模型
方法1:只保存模型的权重和偏置这种方法不会保存整个网络的结构,只是保存模型的权重和偏置,所以在后期恢复模型之前,必须手动创建和之前模型一模一样的模型,以保证权重和偏置的维度和保存之前的相同。tf.keras.model类中的save_weights方法和load_weights方法,参数解释我就直接搬运官网的内容了。save_weights( filepath, ...原创 2019-06-30 10:41:01 · 14325 阅读 · 11 评论 -
如何升级numpy的版本
pip install --user -U numpy原创 2019-06-14 21:30:18 · 12572 阅读 · 2 评论 -
pip指定安装目录
pip install --target=d:\somewhere\other\than\the\default package_nameref:https://blog.csdn.net/guotong1988/article/details/61196363转载 2019-03-11 10:51:48 · 10113 阅读 · 0 评论 -
tf.Session() 和tf.InteractiveSession()
官方tutorial是这么说的:(http://stackoverflow.com/questions/41791469/difference-between-tf-session-and-tf-interactivesession)The only difference with a regular Session is that an InteractiveSession installs...转载 2019-01-09 08:45:39 · 274 阅读 · 0 评论 -
tf.nn.conv2d详解
tf.nn.conv2d是TensorFlow里面实现二维卷积的函数,函数原型如下:conv2d(input, filter, strides, padding, use_cudnn_on_gpu=True, data_format="NHWC", dilations=[1, 1, 1, 1], name=None):1.input指需要做卷积的输入图像,它要求是一个Tensor,具有...原创 2019-01-08 15:25:55 · 3781 阅读 · 0 评论 -
Tensorflow中with tf.Session() as sess用法详解
Session提供了Operation执行和Tensor求值的环境。如下面所示,import tensorflow as tf# Build a graph.a = tf.constant([1.0, 2.0])b = tf.constant([3.0, 4.0])c = a * b# Launch the graph in a session.sess = tf.Sessi...原创 2019-01-08 14:48:17 · 46459 阅读 · 2 评论