maxnet src/ndarray/ndarray.cc:1279: GPU is not enabled 运行下吗代码出现标题中的错误。 from bert_embedding import BertEmbedding import mxnet as mx ctx = mx.gpu() bert_emb = BertEmbedding(data…
利用 Python 计算字符串或者文件的 md5 值 计算字符串 md5 import hashlib def get_md5(s): return hashlib.md5(s).hexdigest() 计算文件 md5 import hashlib def get_file_md5(file_name): with open(file_name,…
添加Python Conda APT 源方法 添加 Python 镜像源 更新 pip 后直接使用 pip config set 即可。 python -m pip install --upgrade pip pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simp…
Linux进程常见状态理解 参考:https://www.cnblogs.com/programmer-tlh/p/11593330.html
ddddocr 运行报错 RuntimeError: /onnxruntime_src...pthread_setaffinity_np failed, error code: 0 error import ddddocr ocr = ddddocr.DdddOcr() 运行出错: RuntimeError: /onnxruntime_src...…
conda 创建环境 conda create -n py36 python=3.6 conda 移除创建的虚拟环境 conda remove -n py36 --all 查看 conda channel conda config --show 添加 conda channel conda config --add channels https:/…
ld-linux-x86-64 是动态链接器,链接器用于运行动态链接的程序。当您运行时chmod,内核有效地运行/lib64/ld-linux-x86-64.so.2 chmod,就像您手动执行的那样;即使chmod二进制文件不可执行,后者也能工作。 转载自:https://qa.1r1g.cn/unix/ask/28043501/
vncserver 链接后打开窗口没有 关闭/最大化 按钮 窗口管理器metacity没有打开 apt-get update apt-get install metacity metacity --replace
Linux 查看版本号 常用方法: # 我们都想知道的版本 比如 18.04 20.04 cat /etc/issue lsb_release -a # 内核版本 cat /proc/version # 查看CPU相关信息 cat /proc/cpuinfo # Linux系统位数 getconf LONG_BIT
cannot import name 'dtensor' from 'tensorflow.compat.v2 今天运行tf测试代码出现错误 cannot import name 'dtensor' from 'tensorflow.compat.v2,查了下发现是我安装的Tensorflow 和 Keras版本不一致导致的。 pip list |…