随笔分类 -  Python

与技术相关的内容
摘要:https://tensorflow.google.cn/install/source_windows GPU VersionPython versionCompilerBuild toolscuDNNCUDA tensorflow_gpu-2.3.0 3.5-3.8 MSVC 2019 Bazel 阅读全文
posted @ 2020-08-13 14:08 黄彬子 阅读(1429) 评论(0) 推荐(0)
摘要:使用plot_model绘制网络模式失败。 import tensorflow as tf fashion_mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = fashion_mnist.load_data() 阅读全文
posted @ 2020-08-13 14:04 黄彬子 阅读(518) 评论(0) 推荐(0)
摘要:1.使用keras时,导入cifar10数据会自动下载(https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz),但是有时会下载出错; 2.解决: (1)自己下载cifar-10-python.tar.gz,然后将文件放到对应路径(~./ker 阅读全文
posted @ 2020-07-31 17:24 黄彬子 阅读(1492) 评论(0) 推荐(0)
摘要:Tensorflow2.X 运行问题:Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED Probably you're running out of GPU memory. If you're using TensorFlow 1.x: 阅读全文
posted @ 2020-07-30 21:32 黄彬子 阅读(2050) 评论(0) 推荐(0)
摘要:安装还是顺利的。 C:\Users\lj.huang>pip install mxnet-cu101 Looking in indexes: http://mirrors.aliyun.com/pypi/simpleCollecting mxnet-cu101 Downloading http:// 阅读全文
posted @ 2020-07-22 16:33 黄彬子 阅读(3101) 评论(0) 推荐(1)
摘要:从 TensorFlow 2.1 开始,pip 包 tensorflow 即同时包含 GPU 支持,无需通过特定的 pip 包 tensorflow-gpu 安装 GPU 版本。 如果对 pip 包的大小敏感,可使用 tensorflow-cpu 包安装仅支持 CPU 的 TensorFlow 版本 阅读全文
posted @ 2020-07-21 16:31 黄彬子 阅读(657) 评论(0) 推荐(0)
摘要:比如,如下信息不想显示 I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll 在import tensorflow as 阅读全文
posted @ 2020-07-20 19:56 黄彬子 阅读(1431) 评论(0) 推荐(0)
摘要:numpy中的reshape中参数为-1 【转发】https://www.cnblogs.com/onemorepoint/p/9099312.html 上篇文章中的reshape(-1,2),有的时候不明白为什么会有参数-1,可以通过查找文档中的reshape()去理解这个问题 根据Numpy文档 阅读全文
posted @ 2020-07-20 11:25 黄彬子 阅读(270) 评论(0) 推荐(0)
摘要:儿子开学要上二年级啦,根据老师的要求,要训练掌握100内的加减运算。使用ReportLab给儿子做了一个简单的出题工具。代码不多贴如下备份。共分为三个文件:page_a4.py--》A4纸相关的信息。##################################################... 阅读全文
posted @ 2011-08-10 14:57 黄彬子 阅读(513) 评论(0) 推荐(0)
摘要:写了一个小程序,存档如下:import timeimport threadingimport osimport urllibdef get_now_time_str(): now_time = time.localtime() now_str = time.strftime("%Y-%m-%d %H... 阅读全文
posted @ 2009-12-03 16:53 黄彬子 阅读(964) 评论(0) 推荐(0)
摘要:将PyQt项目转化为WIN下的可执行程序对于这个问题,自己也尝试了不少的安装方法,现将成功的一条记录如下,供参考。1.先下载与安装:Microsoft Visual C++ 2008 Redistributable Package (x86),从这里:http://www.microsoft.com... 阅读全文
posted @ 2009-09-02 14:09 黄彬子 阅读(1167) 评论(0) 推荐(0)
摘要:前言从接触Python至今也有两年多的时间啦,为了有一个合适的Python开发环境,不停地尝试各种编辑器与IDE。但总是不能尽如人意。不能再这样下去啦,不能让时间浪费在这里。最终还是回归Elipse+PyDev吧。尽管在性能上有些差强人意,但毕竟在功能与灵活性上还无人能比的。最近开始学习Qt,但使用... 阅读全文
posted @ 2009-09-02 14:01 黄彬子 阅读(2927) 评论(0) 推荐(0)
摘要:终天整理出自已的SciTE配置文件,主要是用于PYTHON编码时的自动完成功能,现备份如下: #SciTEGlobal.properties——全局配置文件,一般不去改动#SciTEUser.properties ——用户配置文件,对全局配置要改动的地方,都写在这个文件里#SciTE.proper... 阅读全文
posted @ 2008-07-18 16:31 黄彬子 阅读(3175) 评论(4) 推荐(0)