思无邪

Results 12 issues of 思无邪

当我浏览 https://redis.io/commands/bitpos/, 我发现: ![image](https://github.com/redis/redis-doc/assets/65906820/dd06d1b7-1cc1-4573-8628-377712132bac) 我认为输出应该是`8`,于是在网页端redis验证了一下,结果如下: ![image](https://github.com/redis/redis-doc/assets/65906820/9d6552ce-bf33-4efe-a85c-72d30114bcf0) 完整的网页输出: ``` redis> SET mykey "\xff\xf0\x00" "OK" redis> BITPOS mykey 0 (integer) 0 redis> SET mykey "\x00\xff\xf0" "OK" redis> BITPOS mykey 1 0 (integer)...

尝试在自己的数据集上使用`my_interp`,但是发现因为`my_interp`要求数据都必须在cuda上,而在`__getitem__`方法中使用`data.cuda()`会出现: ``` RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method ``` 的问题。 想请教一下有没有处理的方法。 > 已经参考过issue:https://github.com/cfzd/Ultra-Fast-Lane-Detection-v2/issues/53 > 这个出现原因是因为dataset固有的一些限制,没有找到特别好的解决方法 > https://discuss.pytorch.org/t/runtimeerror-caught-runtimeerror-in-dataloader-worker-process-0/167037/6...

this link :https://jacobgil.github.io/pytorch-gradcam-book/Class%20Activation%20Maps%20for%20Semantic%20Segmentation.html ![image](https://github.com/jacobgil/pytorch-grad-cam/assets/65906820/48988f19-004e-4b6f-a944-33cfd181b2f9) i found now the code can automatic use the same device of model: ``` class BaseCAM: def __init__(self, model: torch.nn.Module, target_layers: List[torch.nn.Module], reshape_transform: Callable = None,...

## 🐛 Bug Report(错误报告) 题目155,测试case出现: ![image](https://github.com/ccagml/leetcode-extension/assets/65906820/273a6348-1311-43f1-a5f0-af243beb09e9) 在网页上没问题 ## To Reproduce(重现) 语言:cpp 代码: ```c++ // 参考:https://leetcode.cn/problems/min-stack/solutions/242861/zui-yi-dong-yi-ge-zhan-tong-shi-bao-cun-dang-qian-/ // 额外保存包含当前元素的时候栈内最小元素即可 class MinStack { class Node { private: /* data */ public: int val,...

### 你当前使用的Elog版本 0.14.0 ### 描述一下此特性 RT,期待更多模板。 本人期望的工作流是 语雀 + hexo,模板是语雀 +vitepress。 **本来仿照一个已经成熟的配置:https://github.com/lidelong-0201/next-yuque-elog ,但是无奈尝试后也没有成功。** 感觉配置还是稍显复杂和绕 模板丰富后可能有利于后续推广。 ### 附加信息 此外,本人不是前端工作者,有可能是知识欠缺导致。 如果作者没有兴趣开发 语雀 + hexo 的模板,请随意关闭此issue

enhancement

项目目前主体已经完成。 还需要一些优化,包括但不限于:性能优化,更优雅的函数实现。具体的优化会以issue的方式提出。 也欢迎大家在`issue`提出问题和`pr`提出自己的改进方案。 **目前项目各个部分考虑都不是很精细,是最好参与的时间节点,走过路过不容错过吼吼** 目前已有的任务如下,欢迎大家来认领并完成,如果想完成但是有困难,我也会提供帮助,在对应issue链接下面评论即可。 也可以**在这里提出可以改进的想法**。 **现有任务列表:** - [ ] https://github.com/youngyangyang04/KVstorageBaseRaft-cpp/issues/14 - [x] https://github.com/youngyangyang04/KVstorageBaseRaft-cpp/issues/13 - [x] https://github.com/youngyangyang04/KVstorageBaseRaft-cpp/issues/19 - [x] https://github.com/youngyangyang04/KVstorageBaseRaft-cpp/issues/16 - [x] https://github.com/youngyangyang04/KVstorageBaseRaft-cpp/issues/31 - [ ] https://github.com/youngyangyang04/KVstorageBaseRaft-cpp/issues/35 - [ ]...

可以参考thread_pool项目 这个issue内容待完善,看到了可以提醒我完善下。

至少包含内容: - 代码提交需要format - 如何进行代码format