wztdream
wztdream
您好, 读过您写的书,收获很大,谢谢。 有一个疑问,如题。Time.timeit利用wrapt.dectator来计算一个函数的执行时间。通常是没有问题的。但是如果是一个嵌套函数,**外层函数的计时就是:内层函数执行时间+wrapt 自身执行的时间**。如果内层函数被执行n次,那么外层函数的计时时间就多出了n*(wrapt 自身执行时间),这可能导致时间分析不准确。比如下面的例子, outer()的总时间被错误的多计时了(100000000*wrap时间)。不知道有没有办法在wrapt之间进行通讯,来扣除内部wrapt 自身的时间(不是inner函数的执行时间哈) ``` @timing.timeit() def inner(): print("inner") @timing.timeit() def outter(): for i in range(100000000): inner() print("outer") ```
Hi, I am using vscode and trying to debug [this repo](https://github.com/FishAres/RNP/blob/master/scripts/vae_mnist.jl), I set break point at line 32 https://github.com/FishAres/RNP/blob/c9571301627cb4989a7cada18de168bc257fc03d/scripts/vae_mnist.jl#L32 then press `F5` for debug, but my computer keep running and...
Hi, It seems `updated_ema_cluster_size` in `VectorQuantizerEMA` use small epsilon to avoid zero in denominator, but the formula is strange to me, so can you explain the logic here, and why...
Hi, I use spacemacs develop branch, and hybrid key mode. In insert mode, if I want to type 4 whitespace, it should work by `C-u 4 " "` but in...
### Description if there is time stamp right under headline, `org-roam-promote-entire-buffe` will results in this time stamp at the first line, which results in org-roam loss this node, as it...
### Brief Abstract Implement basic boolean predicate for **node neighbor** search (note that the magic is in the neighbor of node not node) will make org-roam super powerful for new...
### Brief Abstract make tags sharable for tag completion over org-roam-directory ### Long Description Current version of org-roam there is no tag completion. Considering org-mode build-in tag are not shared...
There are many discussion about graph analysis/manipulation for org-roam, but it seems automatically analyze the graph is difficult, and the feature may not available in the near future. An alternative...
**Is your feature request related to a problem? Please describe.** orui not show links between headline if file is not a node. Here is the use case: I have a...
Hi, I use python-language-server (pyls for short) as backend in emacs for python-mode. But it seems, pyls will insert an extra parenthesis for function parameters after completion. It does not...