logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

tf.matmul使用注意点

在使用tf.matmul做矩阵运算时,需要注意一下几点1、如果transpose_b参数设置为False,那么x的最后一维要跟y的倒数第二维相等,即:tf.matmul(x, y, transpose_b = False)x.shape = [..., x1, x2]y.shape = [..., y1, y2]x2 = y12、如果transpose_b参数设置为True,那么x的...

等式约束优化与不等式约束优化

在学习SVM的原理时,接触到了等式约束优化与不等式约束优化,下面是根据相关资料自己总结出来的自己的,希望对大家有所帮助,这是第一篇博客。1.等式约束优化1.1.问题描述当目标函数加上等式约束条件之后,原本的非约束优化变成了等式约束优化,如下:  ........................................................................

安装pytorch后出现 Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL

下载下面链接的东西,然后双击安装即可https://aka.ms/vs/16/release/vc_redist.x64.exe

pip安装pymssql模块时报错“PEP 517”怎么解决?

欲在ubuntu上安装pymssql,使用pip install pymssql操作,报错如下Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleCollecting pymssqlUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/4a/20/bcd4db9e...

如何查看tensorflow-gpu是否可用

进入python编译环境,输入一下代码,如果结果是True,表示GPU可用import tensorflow as tfprint(tf.test.is_gpu_available())

tensorflow的用法:keras中keras.layers.merge用法的变化

旧版本中:from keras.layers import mergemerge_old = merge([layer1,layer2], mode = 'concat', concat_axis = 3)新版本中:from keras.layers import mergemerge = merge.concatenate([layer1, layer2], axis=3)其它类似...

如何查看tensorflow-gpu是否可用

进入python编译环境,输入一下代码,如果结果是True,表示GPU可用import tensorflow as tfprint(tf.test.is_gpu_available())

服务器上搭建jupyter notebook的环境

本人服务器的linux系统是ubuntu16.04,搭建jupyter notebook环境的过程如下:使用pip安装jupyter:pip install jupyter创建Jupyter默认配置文件:jupyter notebook --generate-config然后使用ipython,当然使用之前先用pip安装一下,pip install ipython输入下面代码,可以得到密...

Linux查询正在运行的python程序

Linux查询正在运行的python程序ps -ef | grep python可以得到以下图示

#linux
使用cv2实现图片与numpy数组的相互转化

1、安装cv2pip install opencv-python2、将图片转成像素值import cv2img = cv2.imread(image_file)

到底了