码迷,mamicode.com
首页 >  
搜索关键字:tf    ( 1725个结果
tensorflow - GPU 加速
首先检测是否可用 GPU import tensorflow as tf print('GPU', tf.test.is_gpu_available()) # GPU True tf.device Tensorflow 通过 tf.device 指定每个操作运行的设备,可以指定本地的 CPU、GPU ...
分类:其他好文   时间:2020-04-07 09:44:25    阅读次数:83
Tensorflow 创建神经网络(二)可视化
将训练过程可视化出来 import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # 去掉警告 import warnings warnings.filterwarnings("ignore",".*GUI i ...
分类:其他好文   时间:2020-04-05 20:52:41    阅读次数:71
【tensorflow2.0】处理结构化数据-titanic生存预测
1、准备数据 import numpy as np import pandas as pd import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras import models,layers dftra ...
分类:其他好文   时间:2020-04-05 18:16:13    阅读次数:337
tensorflow中四种不同交叉熵函数tf.nn.softmax_cross_entropy_with_logits()
Tensorflow中的交叉熵函数tensorflow中自带四种交叉熵函数,可以轻松的实现交叉熵的计算。 tf.nn.softmax_cross_entropy_with_logits() tf.nn.sparse_softmax_cross_entropy_with_logits() tf.nn. ...
分类:其他好文   时间:2020-04-05 15:23:50    阅读次数:78
Tensorflow 池化层(pooling)和全连接层(dense)
一、池化层(pooling) 池化层定义在 tensorflow/python/layers/pooling.py. 有最大值池化和均值池化。 1. 最大池化层 tf.layers.max_pooling2d max_pooling2d( inputs, pool_size, strides, pa ...
分类:其他好文   时间:2020-04-05 11:58:23    阅读次数:144
Pi1-Centos
pi4接灰几个月了,看到各种pi的操作系统,想着自己习惯的centos能否装到pi4上,果然centos做好了pi4的适配。不过在选择版本上绕了些弯路,网上的华为镜像的centos7的版本貌似不能启动(不知道是否是因为用mac烧录没选对参数的原因),centos官网的8版本也不能正常启动(报网络错) ...
分类:其他好文   时间:2020-04-04 22:24:55    阅读次数:89
下载inception v3 google训练好的模型并解压08-3
import tensorflow as tf import os import tarfile import requests #模型下载地址 inception_pretrain_model_url='http://download.tensorflow.org/models/image/ima ...
分类:其他好文   时间:2020-04-04 18:34:40    阅读次数:76
【NLP面试QA】词向量
[TOC] 文本表示哪些方法? 基于one hot、tf idf等的bag of words; 基于词向量的固定表征:word2vec、fastText、glove 基于词向量的动态表征:elmo、GPT、bert one hot存在的问题 one hot表征无法反应词与词之间的相关性问题,即语义鸿 ...
分类:其他好文   时间:2020-04-04 14:34:28    阅读次数:216
Tungsten Fabric入门宝典丨TF组件的七种“武器”
TF中包含很多不同的组件,其中最重要的七种“武器”用法各不相同。
分类:其他好文   时间:2020-04-03 18:37:05    阅读次数:108
第十四节 验证码识别案列
import tensorflow as tf FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string("captcha_dir", "./tfrecords", "验证码数据路径") tf.app.flags.DEFINE_integer("ba ...
分类:其他好文   时间:2020-03-31 01:26:27    阅读次数:73
1725条   上一页 1 ... 18 19 20 21 22 ... 173 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!