![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
numpy
文章平均质量分 67
永不言败_never say never
坚持就是胜利
展开
-
tf.stack和tf.unstack用法
tf.unstack参数了如下: def unstack(value, num=None, axis=0, name="unstack"): Args: value: A rank `R > 0` `Tensor` to be unstacked. num: An `int`. The length of the dimension `axis`. Automatically inferred if `None` (the default). axis: An `i原创 2022-01-25 13:51:20 · 2489 阅读 · 0 评论 -
matplotlib学习--刻度值设置以及柱状图画法(1)
画柱状图blog: https://blog.csdn.net/w113691/article/details/80385534原创 2021-03-29 13:59:32 · 2431 阅读 · 2 评论 -
numpy.random下各种函数用法总结
因为numpy.random下的函数比较多,所以总结了一下: 如下: 输出结果如下: 最后plot出来的图: 输出结果:原创 2020-08-28 21:21:31 · 127 阅读 · 0 评论 -
与tensorflow结合使用的常用的numpy库中的函数
""" tf.where() 条件语句为真返回A,条件语句假返回B tf.where(条件语句,真返回A,假返回B) """ import tensorflow as tf import numpy as np a=tf.constant([2,2,3,7,9]) b=tf.constant([1,1,3,4,5])#张量维度必须相同 #b=tf.constant([1,2,3,4,5,6])#会报错,因为比第一个张量多了一个元素 c=tf.where(tf.greater(a,b),a,b)#若a>原创 2020-08-17 12:38:29 · 387 阅读 · 0 评论