Pytorch
- 系统:mac
- 基础:配置过环境,inport不行
BUG
- 无GPU环境运行的通病
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=‘cpu’ to map your storages to the CPU.
解决:
#改为
torch.load(model_path, map_location='cpu')
- conda更新的问题
Verifying transaction: failed
解决:
删除对应文件
或如下更新:
conda update --force conda
-
import torch出问题
我重新创建了一个虚拟环境,重新安装了所有环境……
mac安装pytorch教程 -
self._handle = _dlopen(self._name, mode)
解决:
conda install -c conda-forge shapely
TIPS
- 查看GPU是否可用
import torch
print(torch.__version__) # 查看torch当前版本号
print(torch.version.cuda) # 编译当前版本的torch使用的cuda版本号
print(torch.cuda.is_available()) # 查看当前cuda是否可用于当前版本的Torch,如果输出True,则表示可用
Flutter
- 系统:windows
- 基础:未配置过相关环境
BUG
-
运行时磁盘空间不足
emulator: ERROR: Not enough space to create userdata partition. Available: 4615.257813 MB at C:\Users\lihao.android\avd\Pixel_XL_API_30.avd, need 7372.800000 MB. emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A) -
unable to locate adb
File-Project Structure-Project SDK
正确填写SDK路径。 -
emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature. Please use -read-only flag to enable this feature. emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A)
模拟器重复打开,我是关闭重启就好了。
Vue
- 系统:mac
- 基础:配置过相关环境
BUG
- 运行npm run build命令
webpack-dev-server: command not found错误
没有安装webpack环境
解决 - webpack版本不匹配
Error: Cannot find module ‘webpack-cli/bin/config-yargs’
解决 - 找不到运行命令
检查是不是运行所在的文件夹不对
FuntionGraph
- 系统:mac
Sandbox
- 运行./install.sh出错
-bash: ./install.sh: Permission denied
解决方法:进入该级目录执行 sudo chmod 777 ./*.sh