<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[TanX的博客]]></title><description><![CDATA[逼自己优秀，然后骄傲的生活]]></description><link>https://blog.youkuaiyun.com/tel_Annie</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; tel_Annie]]></copyright><item><title><![CDATA[Typescript和Node.js]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/131110457</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/131110457</guid><author>tel_Annie</author><pubDate>Thu, 08 Jun 2023 16:27:09 +0800</pubDate><description><![CDATA[Node.js 读写文件。]]></description><category></category></item><item><title><![CDATA[实用小技巧]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/131110378</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/131110378</guid><author>tel_Annie</author><pubDate>Thu, 08 Jun 2023 16:17:08 +0800</pubDate><description><![CDATA[将 josnl 文件转到 json 文件。]]></description><category></category></item><item><title><![CDATA[内存，显存]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/120378039</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/120378039</guid><author>tel_Annie</author><pubDate>Sun, 19 Sep 2021 10:34:42 +0800</pubDate><description><![CDATA[电脑内存是替CPU暂存资料的储存空间。

htop 下 memory即为整个即的内存大小。

以下图机器为例，该机器的内存大小为755G。

显卡显存是替GPU（显卡芯片）暂存资料的储存空间。
nvidia-smi 下 节点数*每个节点的memory即为整个机器的显存大小。

以下图机器为例，该机器的显存大小为32480*4。


...]]></description><category></category></item><item><title><![CDATA[Pytorch报错：cuDNN error: CUDNN_STATUS_EXECUTION_FAILED]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/115368279</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/115368279</guid><author>tel_Annie</author><pubDate>Thu, 01 Apr 2021 10:30:28 +0800</pubDate><description><![CDATA[如果你遇到了这个错误 RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED，

1. 首先确保所有版本都是匹配的，那么出现这个问题可能是因为你直接用pip install torch 指令了。

2. 那么，尝试用官网上的指令(Pytorch官网找到合适的pytorch版本)重新安装pytorch，如下：

conda install pytorch torchvision cudatoolkit=10.0 -c pytorch




...]]></description><category></category></item><item><title><![CDATA[快速排序]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/115355292</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/115355292</guid><author>tel_Annie</author><pubDate>Wed, 31 Mar 2021 17:11:10 +0800</pubDate><description><![CDATA[具体算法参考：https://zhuanlan.zhihu.com/p/93129029



代码：


#!/usr/bin/python
# -*- coding: UTF-8 -*-

def QuickSort(a, low, high):
    i = low
    j = high
    if (i &lt; j):
        temp = a[i]
        while (i != j):
            while (j &gt; i and a[j] &gt;.]]></description><category></category></item><item><title><![CDATA[ipython notebook]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/114976581</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/114976581</guid><author>tel_Annie</author><pubDate>Thu, 18 Mar 2021 14:07:11 +0800</pubDate><description><![CDATA[最近在别人的代码中看到了.ipynb文件，这里介绍一下基本的使用。

1. cmd进入.ipynb文件所在的目录或其所在工程的目录下，键入命令jupyter notebook；



2. 这时会弹出一个页面；



3. 点开.ipynb文件即可。在这个页面中可以直接运行代码。


...]]></description><category></category></item><item><title><![CDATA[WordNet学习整理]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/114368129</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/114368129</guid><author>tel_Annie</author><pubDate>Thu, 04 Mar 2021 15:08:57 +0800</pubDate><description><![CDATA[安装：


import nltk
nltk.download('wordnet')

使用：


from nltk.corpus import wordnet as wn

1.查询一个词所在的所有词集（synsets）


&gt;&gt;&gt;wn.synsets('dog') # 可以添加pos属性，pos值可以为——NOUN,VERB,ADJ,ADV… 如pos=wn.NOUN
[Synset('dog.n.01'), Synset('frump.n.01'),Synset('frank...]]></description><category></category></item><item><title><![CDATA[解决pyrouge报错]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/109303593</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/109303593</guid><author>tel_Annie</author><pubDate>Tue, 27 Oct 2020 09:00:50 +0800</pubDate><description><![CDATA[首先，下载ROUGE-1.5.5包，git clonehttps://github.com/andersjo/pyrouge；

其次，安装pyrouge环境：


pip uninstall pyrouge
git clone https://github.com/bheinzerling/pyrouge
cd pyrouge
pip install -e .
pyrouge_set_rouge_path &lt;/absolute/path/to/ROUGE-1.5.5/directory&g...]]></description><category></category></item><item><title><![CDATA[tensorflow与pytorch]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/89455508</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/89455508</guid><author>tel_Annie</author><pubDate>Mon, 22 Apr 2019 16:57:33 +0800</pubDate><description><![CDATA[tensorflow中与pytorch同等作用的函数：



tf.reshape(input, shape) -&gt; input.view(shape)

tf.minium(input, min) -&gt; torch.clamp(input, max)

tf.gather(input1, input2) -&gt; input1[input2]

tf.expand_dims(in...]]></description><category></category></item><item><title><![CDATA[numpy与torch]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/89423514</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/89423514</guid><author>tel_Annie</author><pubDate>Sat, 20 Apr 2019 21:04:54 +0800</pubDate><description><![CDATA[numpy类型转torch类型：

torch.from_numpy()
]]></description><category></category></item><item><title><![CDATA[linux下运行Windows下写的bash脚本]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/89148229</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/89148229</guid><author>tel_Annie</author><pubDate>Tue, 09 Apr 2019 14:42:50 +0800</pubDate><description><![CDATA[运行bash脚本出现了$'\r': command not found问题

系windos和linux的换行符差异，解决方案：

用vim打开bash脚本，esc模式下set ff=unix，保存后重新运行就不会报错了。


...]]></description><category></category></item><item><title><![CDATA[conda环境中关于tensorflow的报错]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/89086324</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/89086324</guid><author>tel_Annie</author><pubDate>Mon, 08 Apr 2019 13:12:31 +0800</pubDate><description><![CDATA[由于conda环境中的tensorflow缺乏absl包，引发如上所示报错，解决方案：conda install absl-py
]]></description><category></category></item><item><title><![CDATA[转载：Linux打开txt文件乱码的解决方法]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/85108546</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/85108546</guid><author>tel_Annie</author><pubDate>Wed, 19 Dec 2018 21:25:29 +0800</pubDate><description><![CDATA[今天发现打开windows下的txt文本出现问题，主要是编码问题，所以这里我记录下这个问题的解决方法。

 Linux显示在Windows编辑过的中文就会显示乱码是由于两个操作系统使用的编码不同所致。Linux下使用的编码是utf8，而Windows使用的是gb18030。因此，解决Linux打开txt文件中文乱码可有如下两种方法。

  方法一：

  在附件终端中，进入到txt文件所在目录，使...]]></description><category></category></item><item><title><![CDATA[LeetCode-Product_of_Array_Except_Self]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/82803001</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/82803001</guid><author>tel_Annie</author><pubDate>Fri, 21 Sep 2018 16:14:10 +0800</pubDate><description><![CDATA[题目：

Given an array nums of n integers where n &amp;gt; 1,  return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].

Example:


Input:  [1,2,3,4]
Out...]]></description><category></category></item><item><title><![CDATA[LeetCode-Palindromic_Substrings]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/81587707</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/81587707</guid><author>tel_Annie</author><pubDate>Sat, 11 Aug 2018 16:30:03 +0800</pubDate><description><![CDATA[题目：

Given a string, your task is to count how many palindromic substrings in this string.

The substrings with different start indexes or end indexes are counted as different substrings even they con...]]></description><category></category></item><item><title><![CDATA[LeetCode-Queue_Reconstruction_by_Height]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/81586730</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/81586730</guid><author>tel_Annie</author><pubDate>Sat, 11 Aug 2018 15:04:05 +0800</pubDate><description><![CDATA[题目:

Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of ...]]></description><category></category></item><item><title><![CDATA[LeetCode-Counting_Bits]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/81584265</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/81584265</guid><author>tel_Annie</author><pubDate>Sat, 11 Aug 2018 10:53:39 +0800</pubDate><description><![CDATA[题目：

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.

Example 1:


Input: ...]]></description><category></category></item><item><title><![CDATA[LeetCode-Merge_Two_Binary_Trees]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/81583372</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/81583372</guid><author>tel_Annie</author><pubDate>Sat, 11 Aug 2018 09:51:00 +0800</pubDate><description><![CDATA[题目：

Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.

You need to merge them into a new binary...]]></description><category></category></item><item><title><![CDATA[LeetCode-Student_Attendance_Record_I]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/81195431</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/81195431</guid><author>tel_Annie</author><pubDate>Wed, 25 Jul 2018 08:50:16 +0800</pubDate><description><![CDATA[题目:

You are given a string representing an attendance record for a student. The record only contains the following three characters:

'A' : Absent.
	'L' : Late.
	'P' : Present.
A student could be rew...]]></description><category></category></item><item><title><![CDATA[LeetCode-Diameter_of_Binary_Tree]]></title><link>https://blog.youkuaiyun.com/tel_Annie/article/details/81177954</link><guid>https://blog.youkuaiyun.com/tel_Annie/article/details/81177954</guid><author>tel_Annie</author><pubDate>Tue, 24 Jul 2018 09:00:56 +0800</pubDate><description><![CDATA[题目：

Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or ...]]></description><category></category></item></channel></rss>