首先在外网安装一个fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
复制安装好的fzf到内网
~/.fzf
在内网中安装
ss = "\uf03a" | |
print(f"Unicode char used by cygwin to represent : in path {ss} {[ss]}") | |
value = ord(ss) | |
print(f"Convert it to hex number {(hex(value))}") | |
# https://cygwin.com/cygwin-ug-net/using-specialnames.html | |
value -= 0xf000 |
#!/bin/bash | |
# add the GPG key for the official Docker repository to the system | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# add the Docker repository to APT sources | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
# update the package database with the Docker packages from the newly added repo | |
sudo apt-get update |
首先在外网安装一个fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
复制安装好的fzf到内网
~/.fzf
在内网中安装
import torch | |
import torch.nn.functional as F | |
# an Embedding module containing 10 tensors of size 3 | |
# fill with value which makes it easy to see how calculation is done | |
embedding_matrix = torch.tensor([[1.0, 2, 3], | |
[4, 5, 6], | |
[7, 8, 9], | |
[10, 11, 12], |
When use ParseFromString(), protobuf reports
"[libprotobuf ERROR google/protobuf/io/coded_stream.cc:207] A protocol message was rejected because it was too big (more than 67108864 bytes). To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h."