- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 TensorFlow2.0 学习-维度
x.shape=[2,3,4] 修改视图 tf.reshape(x,newShape) 增加维度 tf.expand_dims(x,axis)指定axis前插入维度 tf.expand_dims(x,0) 后 x.shape=[1,2,3,4] 删除维度 tf.squeeze(x,axis),只能删除长度为1的维度,不指定axis时删除所有长度为1的维度 tf.squeeze(x,0) 后 x.shape=[2,3,4] 交换维度 tf.transpose(x,perm=) perm参
2022-01-31 23:17:50
1891
原创 java String 分割空格
正则表达式\s表示匹配任何空白字符,+表示匹配一次或多次。例 String [] arr = str.split("\\s+");
2022-01-30 00:26:01
1428
原创 java 重写Arrays.sort()
int[][] test={{1,2},{3,0},{2,1}}; Arrays.sort(test, (n1 , n2) -> n1[0] - n2[0]); for(int i=0;i<test.length;i++){ System.out.println(test[i][0]+" "+test[i][1]); } 输出为: 1 2 2 1 3 0
2022-01-28 00:53:42
577
神经网络与机器学习(原书第3版)[2011]
2019-01-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人