随笔 - 1762  文章 - 0  评论 - 109  阅读 - 431万

随笔分类 -  深度学习

上一页 1 2 3 4 5 6 7 下一页
argsort()函数
摘要:第一步:先定义一个array数据import numpy as npx=np.array([2,4,5,3,-10,1]) 第二步:输出结果:y=np.argsort(x)print(y)输出结果为:y=[4 5 0 3 1 2] 第三步:总结:argsort()函数是将x中的元素从小到大排列,提取 阅读全文
posted @ 2021-11-24 11:07 一杯明月 阅读(1227) 评论(0) 推荐(0) 编辑
checkpoint文件
摘要:tensorflow saver和checkpoint总结_gzj_1101的专栏-程序员宅基地_checkpoint 深度学习 - 程序员宅基地 (cxyzjd.com) 最近在做深度学习相关实验,经常要用到别人的预训练模型,有时候常常不知道怎么使用,因此这篇博客将专门做一个总结。 1 Tenso 阅读全文
posted @ 2021-11-16 11:00 一杯明月 阅读(290) 评论(0) 推荐(0) 编辑
ubuntu conda查找可用的包
摘要:想要安装特定版本的torchvision,然后conda search torchvision,能够列出conda云上所有的安装包 然后,安装包的时候,conda install 包名=版本就可。 阅读全文
posted @ 2021-11-08 17:45 一杯明月 阅读(244) 评论(0) 推荐(0) 编辑
tensorflow.python.framework.errors_impl.InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
摘要:安装TensorFlow 2.0.0以后,运行出现了下面的错误: tensorflow.python.framework.errors_impl.InternalError: cudaGetDevice() failed. Status: CUDA driver version is insuffi 阅读全文
posted @ 2021-11-08 17:06 一杯明月 阅读(3601) 评论(0) 推荐(0) 编辑
Ubuntu系统安装Anaconda3
摘要:https://blog.csdn.net/tkzky001/article/details/118705205 1、下载Anaconda法1:在Anaconda官网下载,比较费时;法2:在清华大学开源软件镜像站(https://mirrors.tuna.tsinghua.edu.cn/help/a 阅读全文
posted @ 2021-11-08 12:07 一杯明月 阅读(1091) 评论(0) 推荐(0) 编辑
显卡,显卡驱动,nvcc, cuda driver,cudatoolkit,cudnn到底是什么?
摘要:以下内容来自于:https://zhuanlan.zhihu.com/p/91334380 在使用深度学习框架的过程中一定会经常碰到这些东西,虽然anaconda有时会帮助我们自动地解决这些设置,但是有些特殊的库却还是需要我们手动配置环境,但是我对标题上的这些名词其实并不十分清楚,所以老是被网上的教 阅读全文
posted @ 2021-11-07 15:11 一杯明月 阅读(1201) 评论(0) 推荐(0) 编辑
混淆矩阵
摘要:https://blog.csdn.net/vesper305/article/details/44927047 Confusion Matrix 在机器学习领域,混淆矩阵(confusion matrix),又称为可能性表格或是错误矩阵。它是一种特定的矩阵用来呈现算法性能的可视化效果,通常是监督学 阅读全文
posted @ 2021-10-15 22:19 一杯明月 阅读(1064) 评论(0) 推荐(0) 编辑
数据标准化的方法与意义
摘要:https://blog.csdn.net/FontThrone/article/details/74067064 阅读全文
posted @ 2021-09-03 21:41 一杯明月 阅读(134) 评论(0) 推荐(0) 编辑
tf.reduce_max()
摘要:作用:找到某个维度的最大值。 tf.reduce_max()函数tf.reduce_max( input_tensor, axis=None, name=None, keepdims=False #是否保持矩形原狀)参数解释:input_tensor:输入数据,tensor、array、datafr 阅读全文
posted @ 2021-08-18 14:00 一杯明月 阅读(449) 评论(0) 推荐(0) 编辑
tf.reduce_sum
摘要:reduce_sum() 用于计算张量tensor沿着某一维度的和,可以在求和后降维。 tf.reduce_sum( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None) 阅读全文
posted @ 2021-08-18 11:08 一杯明月 阅读(507) 评论(0) 推荐(0) 编辑
TensorFlow 调试器
摘要:https://tensorflow.juejin.im/programmers_guide/debugger.html 阅读全文
posted @ 2021-08-16 21:41 一杯明月 阅读(45) 评论(0) 推荐(0) 编辑
使用tf.print()打印tensor内容
摘要:来源:https://www.cnblogs.com/shixisheng/p/9460614.html 使用tf.Print()打印tensor内容,这是tensorflow中调试bug的一个手段,例子如下所示: import tensorflow as tf a = tf.Variable(tf 阅读全文
posted @ 2021-08-16 14:54 一杯明月 阅读(1881) 评论(0) 推荐(0) 编辑
nn.Conv1d和nn.Conv2d理解
摘要:参考链接: https://blog.csdn.net/sunny_xsc1994/article/details/82969867 https://www.cnblogs.com/lovephysics/p/7220111.html 这里只做理解,不放官方文档。 1.nn.Conv1d感觉一张图就 阅读全文
posted @ 2021-08-13 00:10 一杯明月 阅读(580) 评论(0) 推荐(0) 编辑
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
摘要:https://stackoverflow.com/questions/60323366/valueerror-numpy-ufunc-size-changed-may-indicate-binary-incompatibility-expec I was getting the same erro 阅读全文
posted @ 2021-08-12 22:19 一杯明月 阅读(354) 评论(0) 推荐(0) 编辑
tensorflow调试,使用官方tfdbg对tensorflow调试
摘要:2021.11.17更新: https://www.cnblogs.com/hellcat/articles/7812119.html 之前: 使用官方的tfdbg进行调试,使用的方式很简单三句话完成:第一句声明:from tensorflow.python import debug as tf_d 阅读全文
posted @ 2021-08-12 16:51 一杯明月 阅读(329) 评论(0) 推荐(0) 编辑
tf.expand_dims()函数
摘要:tf.expand_dims()函数用于给函数增加维度。tf.expand_dims( input, axis=None, name=None, dim=None)参数: input是输入张量。 axis是指定扩大输入张量形状的维度索引值。 dim等同于轴,一般不推荐使用。 函数的功能是在给定一个i 阅读全文
posted @ 2021-08-11 16:07 一杯明月 阅读(2111) 评论(0) 推荐(0) 编辑
深度学习tensorflow中已经有epoch参数了,为什么还要在train()中定义steps参数?
摘要:https://www.zhihu.com/question/300646749/answer/1354001318 epoch是全体训练数据过几遍,steps是模型会计算几次loss(排除一些快速训练的tricks,即模型参数会梯度更新几次)。 当我们训练模型时,epoch变成了一个间接的关注对象 阅读全文
posted @ 2021-08-10 16:39 一杯明月 阅读(462) 评论(0) 推荐(0) 编辑
No module named 'nearest_neighbors.lib.python.nearest_neighbors'
摘要:https://github.com/yanx27/PointASNL/issues/33 this problem may caused by different cython library, please try import nearest_neighbors rather than imp 阅读全文
posted @ 2021-08-10 16:33 一杯明月 阅读(1532) 评论(0) 推荐(0) 编辑
no module named torch
摘要:解决办法: conda install torchvision 阅读全文
posted @ 2021-08-10 16:14 一杯明月 阅读(181) 评论(0) 推荐(0) 编辑
tf.gather()、tf.gather_nd()、tf.batch_gather()、tf.where()和tf.slice()
摘要:来源:https://www.cnblogs.com/nxf-rabbit75/p/11276195.html 1.tf.gather 1 tf.gather(params, indices, validate_indices=None, name=None, axis=0) 功能:根据提供的ind 阅读全文
posted @ 2021-08-08 14:26 一杯明月 阅读(819) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 下一页
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示