learning-notes
learning-notes copied to clipboard
My learning notes.
Bumps [rustls](https://github.com/rustls/rustls) from 0.21.7 to 0.21.11. Commits 7b8d1db Prepare 0.21.11 ebcb478 complete_io: bail out if progress is impossible 20f35df Regression test for complete_io infinite loop bug 2f2aae1 Don't specially handle...
Bumps [h2](https://github.com/hyperium/h2) from 0.3.21 to 0.3.26. Release notes Sourced from h2's releases. v0.3.26 What's Changed Limit number of CONTINUATION frames for misbehaving connections. See https://seanmonstar.com/blog/hyper-http2-continuation-flood/ for more info. v0.3.25 What's...
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.8 to 0.8.11. Changelog Sourced from mio's changelog. 0.8.11 Fix receiving IOCP events after deregistering a Windows named pipe (tokio-rs/mio#1760, backport pr: tokio-rs/mio#1761). 0.8.10 Added Solaris support...
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.8 to 0.8.11. Changelog Sourced from mio's changelog. 0.8.11 Fix receiving IOCP events after deregistering a Windows named pipe (tokio-rs/mio#1760, backport pr: tokio-rs/mio#1761). 0.8.10 Added Solaris support...
在计算 perceptual loss 的时候,需要从一个训练好的 VGG16 或者 VGG19 的中间层提取出待测图像的特征并进行比较。在 PyTorch 中,已经训练好的网络模型很可能是通过 `nn.Sequetial` 来定义的,中间层的名字未知,该如何进行提取? How to extract the features of an image from a trained model in PyTorch? https://discuss.pytorch.org/t/how-to-extract-features-of-an-image-from-a-trained-model/119 VGG16 Features ```...
浮点数的表示为: |+/-|----exp----|------------frac--------------| 分为符号位、阶码(exp)、尾数(frac)三部分,其中阶码部分采用了移码(即符号位也取反的补码) float_num = +/- 1.frac * 2^exp 例如,7.0 = 1.75 * 2^2,对应的二进制码为:`01000000111000000000000000000000`。
```C++ #include using namespace std; class Sample { public: int v; Sample() {}; Sample(int n) : v(n) {} Sample(Sample &x) { v = 2 + x.v; } }; Sample PrintAndDouble(Sample...