![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python3
Joey Chen&Wpl
IT
展开
-
tf.less详解
tf.less( x, y, name=None)以元素方式返回(x <y)的真值原创 2021-06-21 16:17:49 · 608 阅读 · 0 评论 -
tf.where_loop详解
tf.while_loop(cond, #表示循环终止条件的可调用的body, #表示循环体的可调用的loop_vars, #一个(可能是嵌套的)元组、命名元组或numpy数组、张量和TensorArray对象列表shape_invariants=None, #循环变量的形状不变量parallel_iterations=10, #允许并行运行的迭代数。它必须是一个.原创 2021-06-21 16:07:24 · 148 阅读 · 0 评论 -
np. where
np.where:numpy.where (condition[,x,y])原创 2021-06-16 16:47:37 · 67 阅读 · 0 评论 -
priors = x[None, :, :, None, :] @ self.route_weights[:, None, :, :, :]
这里的@代表矩阵乘法:A = [[1, 2], B = [[11, 12], [3, 4]] [13, 14]]# 元素乘法会产生A * B = [[1 * 11, 2 * 12], [3 * 13, 4 * 14]]# 矩阵乘法会产生;@与np.matmul()相当A @ B = [[1 * 11 + 2 * 13, 1 * 12 + 2 * 14], [3 * 11 + 4 * 13, 3 * ...原创 2021-05-03 20:35:41 · 211 阅读 · 0 评论 -
python 模块安装好,但是却无法引用
我遇到之后:有可能是pip的版本太低;更新一下pippython -m pip install -upgrade pip原创 2021-04-13 16:39:37 · 1349 阅读 · 0 评论 -
cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-6sxsq0tp\opencv\module
出现这种情况有两种一下情况:1、保存的路径中含有中文符号2、路径错误,找不到该路径下的文件。或者该路径不存在原创 2021-03-26 14:57:08 · 3582 阅读 · 0 评论 -
仿射变换和变化矩阵
仿射变换(Affine Transformation)是一种二维坐标到二维坐标之间的线性变换,它保持了二维图形的“平直性”和“平行性”。原创 2020-12-21 16:09:04 · 267 阅读 · 0 评论 -
KeyboardInterrupt
1、正在运行的程序,出现这个错误,可能是你无意按下Ctrl+C,意外停止(Linux)原创 2020-12-21 16:08:12 · 5976 阅读 · 1 评论 -
OSError: Not a gzipped file (b‘<h‘)
1、下载数据集的过程中,没有联网2、联网后,把之前下载的删除掉,重新下载原创 2020-12-18 21:58:20 · 2614 阅读 · 5 评论 -
Pycharm 出现pytest 模式
1、点击Run2、选择第二个出现的run模式#也可以alt+shift+F10原创 2020-12-18 20:46:02 · 304 阅读 · 1 评论 -
OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading “D:\Anaconda\envs\pytorch-1.4\lib\site-package
1、一是内存不足,重启一下pycharm2、把num_works设置为0原创 2020-12-18 15:14:32 · 45581 阅读 · 23 评论 -
天池训练营:TASK02
TASK021-1 list.append(obj) list.extend(seq) 在列表末位一次追加几个 list.insert(index, obj)` 在编号 `index` 位置插入 `obj list.insert(index, obj)` 在编号 `index` 位置插入 `ob原创 2020-09-09 20:43:09 · 67 阅读 · 0 评论 -
天池训练营:python第一天
Task11、运算符:// 整除;% 取余;** 幂;1-2: 位运算符:~ 按位取反;& 按位与(有0则为0,同1则为1);| 按位或(有1则为1,否则为0);^ 按位异或(相同则为0,否则为1);<< 左移;>> 右移;1-3: 三位运算符:e: x, y = 4, 5 small = x if x<y else y in 存在;not in 不存在; is 是; not is 不是;attention:1)is,...原创 2020-09-05 22:53:51 · 103 阅读 · 0 评论 -
cudnn、cuda与tesnorflow 版本不兼容问题的解决(linux)
linux版本对照表(tensorflow-gpu)错误信息:Loaded runtime CuDNN library: 7104 (compatibility version 7100) but source was compiled with 7004 (compatibility version 7000). If using a binary install, upgrad...原创 2020-01-08 11:05:14 · 414 阅读 · 0 评论 -
LetNet实现mnist数据集(tensorflow)
letNetlayers.pyimport tensorflow as tfINPUT_NODE = 784OUTPUT_NODE = 10LAYER1_NODE = 500IMAGE_SIZE = 28NUM_CHANNELS = 1NUM_LABLES = 10CONV1_DEEP = 32CONV1_SIZE = 5CONV2_DEEP =64CONV2_SI...原创 2019-12-11 10:03:38 · 252 阅读 · 0 评论