会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
345
下一页
2025年10月24日
NumPy 入门示例系列01
摘要: 参考: https://chuna2.787528.xyz/emanlee/p/16025421.html NumPy(Numerical Python)是Python的一种开源的数值计算扩展。这种工具可用来存储和处理大型矩阵,比Python自身的嵌套列表(nested list structure)结
阅读全文
posted @ 2025-10-24 23:41 emanlee
阅读(164)
评论(0)
推荐(0)
2025年10月7日
打印A3大小的PDF文件为A4幅面
摘要: Foxit 福昕打印pdf: 放大150% 然后把每页旋转180度,保存,打印。 方法一: 用 Acrobat Pro DC 旋转。 方法二: 用 illustrator,打开pdf,选择某页,旋转,保存
阅读全文
posted @ 2025-10-07 20:49 emanlee
阅读(54)
评论(0)
推荐(0)
2025年10月6日
在 PyCharm 中,环境:bert_env , 执行 import wandb 报错。但是,在CMD窗口,环境:bert_env , 执行 import wandb 正常。
摘要: 同一个wandb包,使用相同的conda虚拟环境,在pycharm中导入失败,在command窗口中导入成功。 同一个ssl包,使用相同的conda虚拟环境,在pycharm中导入失败,在command窗口中导入成功。 在 PyCharm 中,环境:bert_env , 执行 import wand
阅读全文
posted @ 2025-10-06 11:13 emanlee
阅读(35)
评论(0)
推荐(0)
2025年10月5日
NotImplementedError: Cannot convert a symbolic Tensor (lstm/strided_slice:0) to a numpy array.
摘要: NotImplementedError: Cannot convert a symbolic Tensor (lstm/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Te
阅读全文
posted @ 2025-10-05 22:53 emanlee
阅读(31)
评论(0)
推荐(0)
UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 2: encoding error
摘要: s= datetime.now().strftime(u"%Y年%m月%d日 %H:%M:%S" )UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 2: encoding error 可行方
阅读全文
posted @ 2025-10-05 20:27 emanlee
阅读(32)
评论(0)
推荐(0)
在PyCharm中运行 wandb.login();
摘要: 在PyCharm中运行 wandb.login() wandb: ERROR api_key not configured (no-tty). call wandb.login(key=[your_api_key])Traceback (most recent call last): File "E
阅读全文
posted @ 2025-10-05 19:15 emanlee
阅读(69)
评论(0)
推荐(0)
Python ValueError: Invalid backend. Missing required entry : placeholder; from keras.callbacks import Callback
摘要: Traceback (most recent call last): File "E:/tion-AiLi-v2.py", line 37, in <module> from keras.callbacks import Callback File "E:\Eprogramfiles\Anacond
阅读全文
posted @ 2025-10-05 19:11 emanlee
阅读(18)
评论(0)
推荐(0)
conda create: Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
摘要: (base) C:\Users\Administrator>conda create -n bert_env python=3.7.12 Collecting package metadata (current_repodata.json): doneSolving environment: fai
阅读全文
posted @ 2025-10-05 17:20 emanlee
阅读(121)
评论(0)
推荐(0)
2025年10月4日
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same
摘要: 解决方法: def conv_2(batch, channel=256): mydevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu') ### aimin li, added for x in batch: x.to
阅读全文
posted @ 2025-10-04 16:42 emanlee
阅读(23)
评论(0)
推荐(0)
同样的Python代码,在Windows上运行没有错误,在Linux Centos上运行出行错误。
摘要: 原因: 两个地方里面的包的版本不一致。 需要一个一个检查版本:比如python的版本,torch的版本。 out = F.conv2d(input=x, weight=weights, bias=b, stride=1, padding=1) # out: (1, unit_channel, l,
阅读全文
posted @ 2025-10-04 16:23 emanlee
阅读(20)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
345
下一页