![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
一只燃
这个作者很懒,什么都没留下…
展开
-
python os模块目录笔记
写一个函数,接受一个参数,如果是文件,则执行这个文件,如果是文件夹,就执行这个文件夹下的所有py文件import osdef func(path): #先判断这个path是文件还是文件夹,isdir,isfile #如果是文件,.py结尾的 if os.path.isfile(path) and path.endwith(''.py) #执行这个文件 os.system("pyt...原创 2019-08-11 00:24:15 · 96 阅读 · 0 评论 -
LSTM 隐藏层维度和输入维度的问题
报错如下:ValueError: Dimensions must be equal, but are 1024 and 1536 for 'lstm_1to15/lstm_cell/MatMul_1' (op: 'MatMul') with input shapes: [1,1024], [1536,2048].我要实现的是 第一个LSTM单元输入(1,1024),输出(1,512).第二个L...原创 2019-08-11 13:54:28 · 18092 阅读 · 4 评论