- 博客(9)
- 收藏
- 关注
原创 【python】all the operation about h5 file(from gpt)
statement automatically closes the file after the block finishes, you can explicitly close the file if needed:虽然。library installed, you can install it via pip:如果你没有安装。
2025-01-25 21:29:14
725
原创 python 类特殊方法
37. `__enter__(self)` 和 `__exit__(self, exc_type, exc_val, exc_tb)`:定义对象作为上下文管理器时的行为,用于 `with` 语句。35. `__rmul__(self, other)`:定义其他对象作为左侧操作数的乘法运算符(`*`)的行为。11. `__call__(self, ...)`:定义对象作为函数被调用时的行为(如 `obj()`)。18. `__le__(self, other)`:定义小于等于运算符(`<=`)的行为。
2024-12-05 15:09:21
417
原创 【python】将多脉冲wav文件分割存为单脉冲
计算互相关需要numpy类型,但发现由于采用waveopen的返回对象为特殊类型,尝试了几个帖子里转换文件类型的方法,发现还是直接使用librosa读取比较方便,且不会影响之后wav文件的保存。待处理的wav文件中包含多个相似的脉冲,要分别保存这些脉冲的完整波形,并使其采样点数量一致。
2024-04-18 20:52:08
445
1
原创 虚拟环境安装tensorflow
安装成功,但出现警告WARNING: The script f2py.exe is installed in 'C:\Users\**\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.print(tf.config.list_physical_devices('GPU'))再次报错。查阅protoc --version,目前版本libprotoc 3.20.3。原因为接口更新,按博客内容更改为。尝试后成功import。
2024-02-22 20:04:32
668
1
原创 CUDA driver version insufficient for CUDA runtime
添加后均未成功,同时发现无法打开nvidia控制面板。查看计算机管理器发现是之前卸载时误删了。在官网上重新安装驱动程序后成功。
2024-02-22 17:49:50
472
1
原创 anaconda虚拟环境
改为:activate D:\anaconda3\envs\python37。退出环境:conda deactivate。目前conda版本 23.7.4。
2024-02-22 08:40:28
496
1
原创 TypeError: forward() missing 1 required positional argument: ‘target‘
TypeError: forward() missing 1 required positional argument: ‘target‘
2022-07-06 17:12:04
4005
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人