问题描述: Specifically, I want to do matmul(A,B) where 'A' has shape (m,n) 'B' has shape (k,n,p) and the result should have shape (k,m,p) 参考网站: https://groups.google.com/a/tensorflow.org/forum/#!topic/discuss/4tgsOSxwtkY https://stackoverflow.com/quest…
1.文件类型类似于这样: 不过数据量比这个要更大一点. 2.对应上述数据的运行结果: import matplotlib.pyplot as plt with open('test.txt') as fob: lines=fob.readlines() #去除掉每行最后一个换行符,就可以正确统计了,我也真不知道是为什么 for i in range(len(lines)): lines[i]=lines[i].rstrip() #在这里要创建一个长度的list进行统计 #但是这个地方的lines…