- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 tensorflow基本操作
tensor属性: 1,.device(当前tensor在哪个设备上) 2,.gpu/.cpu(对于tensor互换gpu或者cpu) 3,.numpy(把tensor转换成numpy类型) 5,.ndim(判断参数的维度)==.rank(用的少) 6,.is_tensor(判断参数是不是tensor) 7, .dtype(判断类型) 8,.trainable(判断是否可求导) 类型转换: 1,tf.convert_to_tensor(a,dtype=tf.)(数据转换为tensor) 2,tf.cast
2021-12-23 16:27:28
194
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人