关于Training deep neural networks for binary communication with the Whetstone method的代码实现

GitHub网址如下:
https://github.com/SNL-NERL/Whetstone/blob/master/examples/adaptive_mnist.py
实现过程中解决的问题:
1.Ubuntu下,python+TensorFlow+Keras版本问题
经检验,配置版本为python3.8.5+TensorFlow2.2.0+Keras2.3.1可行
2.关于磨刀石算法包的加载
直接pip install whetstone 即可
3.运行程序时,会报错显示“模块whetstone不存在layers属性”
解决方法,下载github中的包,并将whetstone中的py文件拖到指定位置
具体位置的寻找方法为:
打开终端

python
>>> import sys
>>> sys.path

以上,解决代码运行问题

猜你喜欢

转载自blog.csdn.net/huatianxue/article/details/111940784