TensorFlow2.0(1):基本数据结构——张量
1 排序
1.1 sort:返回逆序排序后的Tensor
import tensorflow as tf
a = tf.random.shuffle...=149, shape=(3, 3), dtype=int32, numpy=
array([[0, 0, 0],
[2, 2, 2],
[1, 1, 1]])>
返回的张量中...dtype=int64)>
作者博客:
https://www.cnblogs.com/chenhuabin
作者github:
https://github.com/ChenHuabin321/tensorflow2