<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[x_yz_的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/x_yz_</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; x_yz_]]></copyright><item><title><![CDATA[tmux安装失败解决方案]]></title><link>https://blog.csdn.net/x_yz_/article/details/152119613</link><guid>https://blog.csdn.net/x_yz_/article/details/152119613</guid><author>x_yz_</author><pubDate>Fri, 26 Sep 2025 11:24:31 +0800</pubDate><description><![CDATA[直接原因和解决方案：缺少/etc/apt/sources.list文件，解决方案就是创建/etc/apt/sources.list文件，并填写合适的内容。解决方案很简单：将/etc/apt/sources.list.bak重命名成/etc/apt/sources.list就行。发现找不到/etc/apt/sources.list，但是存在/etc/apt/sources.list.bak文件。今天拉了个镜像，没有tmux，想安装tmux安装不上，记录一下解决方案。大模型建议使用国内的源。]]></description><category></category></item><item><title><![CDATA[为什么std::make_pair＜int, int＞(a, b)会编译错误]]></title><link>https://blog.csdn.net/x_yz_/article/details/141501620</link><guid>https://blog.csdn.net/x_yz_/article/details/141501620</guid><author>x_yz_</author><pubDate>Mon, 26 Aug 2024 11:21:40 +0800</pubDate><description><![CDATA[当std::make_pair(a, b);等价于make_pair(int&&, int&&)函数；可能大家会有疑问，std::make_pair(a, b)不会等价于make_pair(int&&, int&&)函数吗？T&&并不是右值引用，而是万能引用，也叫universal preferences。但是右值引用是不能这样赋值的，可以看一下以下几种错误例子。使用vscode很容易跳转到源码。（此刻是不是有种想骂人的冲动）还真不是，在模版中，]]></description><category></category></item><item><title><![CDATA[Mac外接显示器显示不全]]></title><link>https://blog.csdn.net/x_yz_/article/details/139626268</link><guid>https://blog.csdn.net/x_yz_/article/details/139626268</guid><author>x_yz_</author><pubDate>Wed, 12 Jun 2024 14:42:30 +0800</pubDate><description><![CDATA[中修改“桌面与程序坞”-->“置于屏幕上的位置”，改完之后，改回原设置就行了；Mac外接显示器最大化无法占满屏幕。当你遇到底部无法占满的时候，只需要，在-->系统设置。]]></description><category></category></item><item><title><![CDATA[swig封装c++成Python，兼容所有python3]]></title><link>https://blog.csdn.net/x_yz_/article/details/121582648</link><guid>https://blog.csdn.net/x_yz_/article/details/121582648</guid><author>x_yz_</author><pubDate>Sat, 27 Nov 2021 21:48:19 +0800</pubDate><description><![CDATA[解决swig封装Python3无法兼容所有Python3的问题。同时提供解决swig兼容Python2和Python3的封装问题。]]></description><category></category></item><item><title><![CDATA[【数据可视化】seaborn]]></title><link>https://blog.csdn.net/x_yz_/article/details/121448448</link><guid>https://blog.csdn.net/x_yz_/article/details/121448448</guid><author>x_yz_</author><pubDate>Sun, 21 Nov 2021 00:34:01 +0800</pubDate><description><![CDATA[import seaborn as sns
l = [12,1,3,4,5,5,5,5,6,6,6,6,6,6,7,9,1,5,5,5,5,5,5,5,5,5,5,5,0]
sns.countplot(l)



更详细的可以参考：【数据可视化】Seaborn简单介绍_欢迎来到最优秀的博客-CSDN博客_seaborn介绍


]]></description><category></category></item><item><title><![CDATA[Pytorch evaluation阶段GPU内存持续上涨]]></title><link>https://blog.csdn.net/x_yz_/article/details/121197803</link><guid>https://blog.csdn.net/x_yz_/article/details/121197803</guid><author>x_yz_</author><pubDate>Sun, 07 Nov 2021 21:48:26 +0800</pubDate><description><![CDATA[这是一段DeBERTa的代码，会在evaluation阶段造成GPU内存持续上涨，小内存的GPU很容易就OOM


    predicts=[]
    labels=[]
    for batch in tqdm(AsyncDataLoader(eval_dataloader), ncols=80, desc='Evaluating: {}'.format(prefix), disable=no_tqdm):
      batch = batch_to(batch, device)
      wi]]></description><category></category></item><item><title><![CDATA[linux中git无法自动补全修复]]></title><link>https://blog.csdn.net/x_yz_/article/details/119514962</link><guid>https://blog.csdn.net/x_yz_/article/details/119514962</guid><author>x_yz_</author><pubDate>Sun, 08 Aug 2021 15:18:23 +0800</pubDate><description><![CDATA[找到三种方法

第一种方法（亲测有效）


1.下载配置文件git clone git://git.kernel.org/pub/scm/git/git.git
2.cp git/contrib/completion/git-completion.bash ~/.git-completion.bash
3.在.bashrc中添加source ~/.git-completion.bash
4.source~/.bashrc

第二种方法（亲测有效，但并不是所有的系统中都有这个文件）


sourc...]]></description><category></category></item><item><title><![CDATA[比较c++中unordered_map和数组的性能]]></title><link>https://blog.csdn.net/x_yz_/article/details/119154436</link><guid>https://blog.csdn.net/x_yz_/article/details/119154436</guid><author>x_yz_</author><pubDate>Tue, 27 Jul 2021 22:08:25 +0800</pubDate><description><![CDATA[当有一个100万的kv数据，并且k是小于100万的数字，是该采用unordered_map还是数组来存储呢；结论是采用数组来访问，数组性能比unordered_map快35倍


#include &lt;unordered_map&gt;
#include &lt;sys/time.h&gt;
#include &lt;iostream&gt;

using namespace std;
int main() {
    std::unordered_map&lt;int, int&gt; map;
  ]]></description><category></category></item><item><title><![CDATA[pytorch tensor创建和矩阵op]]></title><link>https://blog.csdn.net/x_yz_/article/details/116153110</link><guid>https://blog.csdn.net/x_yz_/article/details/116153110</guid><author>x_yz_</author><pubDate>Thu, 29 Apr 2021 18:27:19 +0800</pubDate><description><![CDATA[https://www.cnblogs.com/Yanjy-OnlyOne/p/11581659.html这里有很全的说明

类别
			OP
			参数
			语义
			实例
		
			创建tensor
			
			torch.Tensor
			
			torch.Tensor(dim0, dim1,..,dimn)
			
			创建维度为(dim0, dim1...dimn)的float32 tensor
			
			torch.Tensor(1, 2)

			结果tensor([[-3.]]></description><category></category></item><item><title><![CDATA[notebook实例1]]></title><link>https://blog.csdn.net/x_yz_/article/details/115914861</link><guid>https://blog.csdn.net/x_yz_/article/details/115914861</guid><author>x_yz_</author><pubDate>Tue, 20 Apr 2021 17:55:59 +0800</pubDate><description><![CDATA[import torch
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.ticker as ticker

a = torch.randn(4, 2)
b = a.softmax(dim=1)
c = a.softmax(dim=0).transpose(0, 1)
#print(a, '\n',  b, '\n', c)
d = b.matmul(c)
#print(d)
.]]></description><category></category></item><item><title><![CDATA[notebook安装使用]]></title><link>https://blog.csdn.net/x_yz_/article/details/115914455</link><guid>https://blog.csdn.net/x_yz_/article/details/115914455</guid><author>x_yz_</author><pubDate>Tue, 20 Apr 2021 17:38:21 +0800</pubDate><description><![CDATA[1、安装miniconda;
2、conda install jupyter notebook；
3、启动 jupyter notebook --no-browser
]]></description><category></category></item><item><title><![CDATA[tmux常用命令]]></title><link>https://blog.csdn.net/x_yz_/article/details/115792776</link><guid>https://blog.csdn.net/x_yz_/article/details/115792776</guid><author>x_yz_</author><pubDate>Sat, 17 Apr 2021 12:18:09 +0800</pubDate><description><![CDATA[目的

这篇文章只是列出简单的常用的tmux命令

原因

首先来安利一下tmux的好处，tmux在远程连接断开后，运行的程序并不会被动退出，会进入到后台运行，我用tmux主要是出于这个目的。

命令

创建会话：tmux new -s ${session_name}
	分离会话：ctrl+b d，先按ctrl+b再按d，而不是同时按
	恢复会话：tmux at -t ${session_name}
	列出会话：tmux ls
	翻看屏幕：ctrl+b [
	杀死会话：exit,
...]]></description><category></category></item><item><title><![CDATA[linux出现tmp空间满的情况解决]]></title><link>https://blog.csdn.net/x_yz_/article/details/105779541</link><guid>https://blog.csdn.net/x_yz_/article/details/105779541</guid><author>x_yz_</author><pubDate>Sun, 26 Apr 2020 22:58:42 +0800</pubDate><description><![CDATA[cd /ro-bash: cannot create temp file for here-document: No space left on device
-bash: cannot create temp file for here-document: No space left on device
-bash: cannot create temp file for here-docume...]]></description><category></category></item><item><title><![CDATA[Git如何永久删除文件]]></title><link>https://blog.csdn.net/x_yz_/article/details/83964564</link><guid>https://blog.csdn.net/x_yz_/article/details/83964564</guid><author>x_yz_</author><pubDate>Mon, 12 Nov 2018 00:10:43 +0800</pubDate><description><![CDATA[摘要：


$ git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch path-to-your-remove-file' --prune-empty --tag-name-filter cat -- --all
$ git push origin master --force --all

执行这个两个...]]></description><category></category></item><item><title><![CDATA[Maven使用第三方jar文件的两种方法 转]]></title><link>https://blog.csdn.net/x_yz_/article/details/80739242</link><guid>https://blog.csdn.net/x_yz_/article/details/80739242</guid><author>x_yz_</author><pubDate>Tue, 19 Jun 2018 21:28:47 +0800</pubDate><description><![CDATA[在Maven中，使用第三方库一般是通过pom.xml文件中定义的dependency从远程repository中下载该库。但是如果库文件是公司内部的库，或者在本地而不能通过远程repository下载，这种情况下，有两种方法可以满足需求。方法一：最简单的方法执行mvn package；在本地repository（通常是$HOME/.m2目录）中出现一个目录（com）例如（metrics4j/1.1...]]></description><category></category></item><item><title><![CDATA[python lxml.path UnicodeDecodeError的解决方案]]></title><link>https://blog.csdn.net/x_yz_/article/details/80557659</link><guid>https://blog.csdn.net/x_yz_/article/details/80557659</guid><author>x_yz_</author><pubDate>Sun, 03 Jun 2018 16:46:43 +0800</pubDate><description><![CDATA[今天在爬数据，使用lxml.path的时候出现了异常“UnicodeDecodeError: 'utf8' codec can't decode byte 0x87 in position 0: invalid start byte”，在此记录一下解决方案出错的代码：# coding: utf-8

import sys
from lxml import etree, html
import ur...]]></description><category></category></item><item><title><![CDATA[nvidia-smi 命令解读]]></title><link>https://blog.csdn.net/x_yz_/article/details/79032732</link><guid>https://blog.csdn.net/x_yz_/article/details/79032732</guid><author>x_yz_</author><pubDate>Thu, 11 Jan 2018 12:16:47 +0800</pubDate><description><![CDATA[nvidia-smi是用来查看GPU使用情况的。我常用这个命令判断哪几块GPU空闲，但是最近的GPU使用状态让我很困惑，于是把nvidia-smi命令显示的GPU使用表中各个内容的具体含义解释一下。



这是服务器上特斯拉K80的信息。 
上面的表格中： 
第一栏的Fan：N/A是风扇转速，从0到100%之间变动，这个速度是计算机期望的风扇转速，实际情况下如果风扇堵转，可能打不到显示]]></description><category></category></item><item><title><![CDATA[Elasticsearch创建索引，删除索引，添加mapping]]></title><link>https://blog.csdn.net/x_yz_/article/details/78954612</link><guid>https://blog.csdn.net/x_yz_/article/details/78954612</guid><author>x_yz_</author><pubDate>Tue, 02 Jan 2018 18:51:09 +0800</pubDate><description><![CDATA[1、简单创建索引
#lcoalhost可以换成http://ip

curl -XPUT 'localhost:9255/rumor/'   



2、带参数创建索引（这里只指定replica数，可以指定更多的参数）


curl -XPUT 'localhost:9255/rumor' -d '


{


  "settings": {

    "num]]></description><category></category></item><item><title><![CDATA[Debian安装cuda的过程]]></title><link>https://blog.csdn.net/x_yz_/article/details/78947860</link><guid>https://blog.csdn.net/x_yz_/article/details/78947860</guid><author>x_yz_</author><pubDate>Mon, 01 Jan 2018 22:16:59 +0800</pubDate><description><![CDATA[这周折腾cuda的安装将近3天，非常痛苦，在此记录一下，好久没有写过博客了。
原因：因为使用了mxnet的version是0.12.0，而之前的cuda支持的是0.9.0所以需要重装cuda
最初的那台机器是不支持mxnet=0.12.0的，但是后来找的机器也没有看是否支持mxnet=0.12.0，就开始直接装cuda8.61;
导致根本就没搞清楚这台机器的最初版本是否支持mxnet=0.1]]></description><category></category></item><item><title><![CDATA[中文分词比较困难的句子]]></title><link>https://blog.csdn.net/x_yz_/article/details/78492565</link><guid>https://blog.csdn.net/x_yz_/article/details/78492565</guid><author>x_yz_</author><pubDate>Thu, 09 Nov 2017 18:22:34 +0800</pubDate><description><![CDATA[TestSegment(analyzer,"沿海南方向逃跑");
        TestSegment(analyzer,"他说的确实在理");
        TestSegment(analyzer,"谢霆锋和张柏芝离婚了");
        TestSegment(analyzer,"结婚的和尚未结婚的");
        TestSegment(analyzer,"提高产品质]]></description><category></category></item></channel></rss>