![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Tensorflow
Joey Chen&Wpl
IT
展开
-
nvidia-smi 实时刷新
watch -n1-dnvidia-smi #每隔1秒刷新一次原创 2021-10-25 10:28:35 · 1293 阅读 · 0 评论 -
【Windows10】BrokenPipeError: [Errno 32] Broken pipe
1、不可使用多线程2、将Dataload中的num_works设置为0原创 2021-06-25 16:59:13 · 136 阅读 · 0 评论 -
tf.gather与torch.gather的区别与认识
tf.gather( params, #输入值 indices, #索引 validate_indices=None, name=None, axis=None, #用来收集索引的值 batch_dims=0)原创 2021-06-18 21:35:17 · 770 阅读 · 0 评论 -
Tensorflow学习之tf.maximum()
1、返回最大值maximum( x, y, name=None)2、返回 x 和 y 的最大值(即表达式:x > y ? x : y).注意:Maximum 支持广播.参数:x:张量.必须是下列类型之一:half,float32,float64,int32,int64. y:张量.必须与 x 具有相同的类型. name:操作的名称(可选...原创 2020-02-14 23:49:05 · 5117 阅读 · 0 评论 -
TensorFlow学习笔记之 tf.reduce_sum()
1-1、reduce_sum()用于计算tensor在某一维度的和,可以降维tf.reduce_sum( input_tensor, #张量 axis=None, #指定的维,如果没有指定,则默认计算所有元素的总和; keepdims=None, #是否保持原有张量的维度,设置为True,结果保持输入tensor的形状,设置为False,结 ...原创 2020-02-14 23:46:27 · 255 阅读 · 0 评论