logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Linux(centos7)升级Nvidia至cuda11.5,cudann8.3,适配tensorflow2.7,torch1.10非常简单

# 切换root账号操作# 进行一些依赖库的升级也很必要# 卸载驱动和cudanvidia-uninstallcuda-uninstaller# 关闭 nouveaulsmod | grep nouveauvim /lib/modprobe.d/dist-blacklist.conf# 去掉 nvidiafb 注释# 添加:blacklist nouveauoptions nouveau mode

#linux#centos
tensorflow2.x使用cuda10.2(非常简单)

# 目前tensorflow2.2官方标配cuda10.1,也是官方在github给出方案,修改cuda软链接即可,非常简单。# 前提是你已经正确安装cuda10.2,检查:nvidia-sminvcc -V# 干正事(重点就这一步):cd /usr/local/cuda-10.2/targets/x86_64-linux/lib/ln -s libcudart.so.10.2.89 libcud

#linux#tensorflow#深度学习
Python——re.search().group()

import rea = "123abc456"print re.search("([0-9]*)([a-z]*)([0-9]*)",a).group(0)#123abc456,返回整体print re.search("([0-9]*)([a-z]*)([0-9]*)",a).group(1)#123print re.search("([0-9]*)([a-z]*)([0-9]*

win10安装Tensorflow(2.10-)使用最新cuda(12+),cudnn(8.9+)

【代码】win10安装Tensorflow(2.10-)使用最新cuda(12+),cudnn(8.9+)

文章图片
#tensorflow#GPU#windows +2
ahalei_15

请将1~9这9个阿拉伯数字分别填入9个□中。每个数字只能使用一次。使得等式成立。□□*□□□=□□□□例如12*483=5796就是一个合理的组合,请问一共所有少种合理的组合?注意:12*483=5796 与 483*12=5796 是同一种组合!#!usr/bin/env python# -*- coding: utf-8 -*-def is_same(num_1, num_2, f

ahalei_14

#!usr/bin/env python# -*- coding: utf-8 -*-"""Created on Mon Jan 30 17:16:24 2017@author: Administrator"""def is_same(num_1, num_2, freq):'''Judge var_num is same!'''for i in range(

#python
Scrapy by requests & bs4

#!/usr/bin/env python# -*- coding: utf-8 -*-import timeimport requestsfrom bs4 import BeautifulSoupstart = time.clock()url = 'http://news.sina.com.cn/china/'res = requests.get(url)res.encoding =

#python
get_ip_address

#!usr/bin/env python# -*- coding: utf-8 -*-""""""import jsonfrom urllib.request import urlopendef get_country(ip_address):'''Get ip_address!'''response = urlopen("http://freegeoip.net

#python
到底了