memory trojan notes on
Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
一、现象 二、思路 下载两个版本的Homebrew并存 三、解决 brew bundle dump 下载homebrew,参考Mac装机软件 vi ~/.zshrc 添加 export PATH=/opt/homebrew/bin:$PATH source使配置生效 ......
WMTS . WMS focuses on flexibility in the client request enabling clients to obtain exactly the final image they want.
WMTS - Introduction — OGC e-Learning 2.0.0 documentation https://opengeospatial.github.io/e-learning/wmts/text/main.html WMTS - Introduction Introduct ......
Kernel Memory 入门系列:文档预处理
Kernel Memory 入门系列:文档预处理 Embedding为我们提供了问题理解和文档检索的方法,但是面对大量的文档,如果在用于提问的时候再进行文档的Embedding的话,那这个过程是非常耗时的,再加之我们的文档并不会频繁变化,所以我们可以对文档进行预处理,提升检索的效率。 文档的预处理大 ......
Go - error: panic: runtime error: invalid memory address or nil pointer dereference
Then looking at this code: res, err := client.Do(req) defer res.Body.Close() if err != nil { return nil, err } I'm guessing that err is not nil. You'r ......
树的层次遍历 Trees on the level uva122
原题链接 这道题可以说基本涵盖了树的大部分知识点——树的创建,树的生成,树的删除,树的BFS(宽度优先搜索)。个人认为是学习树时很具有价值的一道题目。 题目意思很好理解,讨论区的题解写的也比本人优秀太多了,这里就不具体分析了。 ......
ON DUPLICATE KEY UPDATE
<insert id="batchInsert" parameterType="java.util.List"> insert into aigc_text (business_id, business_type, scene_index, text_eng, text_chn, text_prom ......
Kernel Memory 入门系列: Embedding 简介
Kernel Memory 入门系列: Embedding 简介 在 RAG模式 其实留了一个问题。 我们对于的用户问题的理解和文档的检索并没有提供合适的方法。 当然我们可以通过相对比较传统的方法。 例如对用户的问题进行关键词提取,然后通过关键词检索文档。这样的话,就需要我们提前对文档做好相关关键词 ......
Object Tracking Network Based on Deformable Attention Mechanism
Object Tracking Network Based on Deformable Attention Mechanism Local library 初读印象 comment:: (DeTrack)采用基于可变形注意力机制的编码器模块和基于自注意力机制的编码器模块相结合的方式进行特征交互。基于 ......
Adaptive Sparse Convolutional Networks with Global Context Enhancement for Faster Object Detection on Drone Images
Adaptive Sparse Convolutional Networks with Global Context Enhancement for Faster Object Detection on Drone Images * Authors: [[Bowei Du]], [[Yecheng ......
【模板】树上启发式合并 dsu on tree
所选例题 模板 点击查看代码 #include<bits/stdc++.h> using namespace std; #define endl '\n' #define pb push_back #define rep(i,a,n) for(int i=a;i<=n;i++) #define pe ......
Kernel Memory 入门系列: RAG 简介
Kernel Memory 入门系列: RAG 简介 开一个新坑,Semantic Kernel系列会在 Release 1.0 之后陆续更新。 当我们有了一定的产品资料或者知识内容之后,自然想着提供一个更加方便的方式让用户能够快速地找到自己想要的信息,或者得到一个更加智能的答案。 以往的时候可能需 ......
on,in,at三者之间的用法和区别
表示事件时的用法区别: in 时间长; on某- 点; at 时间短。 表示地点时的用法区别: at强调点; on强调面; in强调在里面。 表示方位时的用法区别:介系词in表示的方位是在某事物的内部,占去某物一部分。 第一,介词in,on,at表示时间时的用法区别: 1,in时间范围大(一天以上) ......
一句话解决加载模型时的CUDA out of memory
在加载模型一行后加上max_memory即可,超出显存后会自动移到内存。 model = AutoModel.from_pretrained('your_model', trust_remote_code=True, max_memory={0: "6GiB", "cpu": "10GiB"}) 记 ......
RLHF · PbRL | 选择 near on-policy query,加速 policy learning 收敛速度
Query-Policy Misalignment:选择的看似 informative 的 query,实际上可能与 RL agent 的兴趣不一致,因此对 policy learning 几乎没有帮助,最终导致 feedback-efficiency 低下。 ......
SQL Server 2019 非域&非集群环境创建Always On “只读扩展”
SQLServer 2019开始支持“read-scale for an Always On availability group”,中文翻译的很别扭,是"读取缩放",繁体版翻译为“读取级别”,其特点不依赖于windows的cluster集群以及域,简化了搭建操作步骤和前置条件,与传统的availa ......
Docker Compose: depends_on
depends_on depends_on expresses startup and shutdown dependencies between services. Short syntax The short syntax variant only specifies service names ......
读程序员的README笔记12_On-Call
1. 行为准则 2. On-Call工程师 2.1. On-Call工程师是应对计划外工作的第一道防线,无论是生产环境问题还是临时支持请求 2.2. 将深度工作与运维工作分开,可以让团队中的大多数人专注于开发任务 2.3. On-Call工程师只需专注于不可预知的运维难题和支持任务 3. On-Ca ......
cpp configuration for vscode on Mac
直接运行 https://zhuanlan.zhihu.com/p/103308900 调试 //cpp_.... { "configurations": [ { "name": "Mac", "includePath": ["${workspaceFolder}/**"], "defines": ......
ICCBDAI2021 第*届计算机大数据与人工智能国际会议 The 2nd International Conference on Computer, Big Data and Artificial Intelligence
第二届计算机大数据与人工智能国际会议(ICCBDAI2021) . 01 会议信息 . 【会议简称】:ICCBDAI2021 【会议全称】: The 2nd International Conference on Computer, Big Data and Artificial Intellige ......
BIBM 20**年IEEE国际生物信息学与生物医学会议(The IEEE International Conference on Bioinformatics and Biomedicine,BIBM 2023)。
BIBM会议是生物信息学和生物医学领域的重要研究会议,它汇集了来自计算机科学、生物学、化学、医学、数学和统计学的学术和工业科学家,为传播生物信息学和健康信息学的最新研究提供了一个论坛 2023年12月03至10日前往土耳其伊斯坦布尔参加2023年IEEE国际生物信息学与生物医学会议(The IEEE ......
dgl AttributeError: Can't get attribute 'DGLGraph' on <module 'dgl.heterograph' from '/home/user/anaconda3/envs/mymodel/lib/python3.7/site-packages/dgl/heterograph.py'>
由于服务器重装了系统,因此cuda版本和ubuntu系统版本也换了,不得不重装系统,导致以前可以正常运行的代码出了各种故障(注:现在的ubuntu版本是18.04,cuda版本是11.3) AttributeError: Can't get attribute 'DGLGraph' on <modu ......
Machine is not on the network
在调试Android jni 的时候发现一个奇怪的问题 在连接socket的时候老是报错 m_sock = socket(AF_INET, SOCK_STREAM, 0); if(m_sock < 0) { debug(LEVEL_ERROR, "Socket create error %d\r\n ......
NRF52832---SYSTEM_ON&SYSTEM_OFF
Nordic的低功耗有两种模式:System Off和System On SYSTEM_ON System on状态有持续延迟和低功率子模式。当系统空闲进入 System On 模式时,默认情况下将处于低功耗子模式,通常最低功耗为 1.9uA (nRF52832) 或 1.5uA(nRF52840) ......
Unhandled exception. System.IO.IOException: The configured user limit (128) on the number of inotify instances 处理
现象:Unhandled exception. System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached, or the per-process ......
docker启动容器报错:Error response from daemon: driver failed programming external connectivity on endpoint
安装的docker启动报错如下: Error response from daemon: driver failed programming external connectivity on endpoint nacos (2b0f4edff8f640559af9626936d1b38d965302 ......
_pickle.PicklingError: Can't pickle <class '__main__.aaa'>: attribute lookup aaa on __main__ failed
注:其中aaa是我的类名。 这个问题是我想保存一个自定义的类对象时,采用如下代码pickle模块 保存时出现的报错信息。 with open(f'saved_agent_{seed}.pkl', 'wb') as file: pickle.dump(agent, file) 出错原因 该错误通常出现 ......
Codeforces 198 B Jumping on Walls
题面翻译 题目描述 瓦西亚在和忍者玩电脑游戏。在这个关卡,瓦西亚需要操控忍者走出一个很深的峡谷。 峡谷由两面垂直于地面且互相平行的墙组成,它们的高度为\(n\)米。我们将这些墙分成许多\(1\)米长的区域,并从下到上用\(1\)到\(n\)的正整数对它们进行编号。有些地方是安全的,忍者可以爬上去。有 ......
[docker] Docker on CentOS8 安装配置
官方文档:https://docs.docker.com/engine/install/centos/ 参考文档:https://www.cnblogs.com/Can-daydayup/p/15395980.html 安装docker-ce bug解决 https://blog.csdn.net/ ......
论文精读:基于具有时空感知的稀疏多图卷积混合网络的大数据驱动船舶轨迹预测(Big data driven trajectory prediction based on sparse multi-graph convolutional hybrid network withspatio-temporal awareness)
论文精读:基于具有时空感知的稀疏多图卷积混合网络的大数据驱动船舶轨迹预测 《Big data driven vessel trajectory prediction based on sparse multi-graph convolutional hybrid network with spati ......
sqlalchemy 实现 mysql INSERT INTO...ON DUPLICATE KEY UPDATE语法
1. 前言 myql的INSERT INTO...ON DUPLICATE KEY UPDATE语句,简单点来说,就是如果记录不存在,则插入,如果记录存在,则更新。 那怎么判断记录存在否?—— 主键、唯一键。 那不是可以使用replace语句吗?—— 原理上可以,但是sqlalchemy orm中的 ......