This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import io | |
import numpy as np | |
import hashlib | |
x = torch.randn(1, 20) | |
buff = io.BytesIO() | |
torch.save(x, buff) | |
buff.seek(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import numpy as np | |
from torch import Tensor | |
from typing import Union | |
import os | |
import pickle | |
from functools import wraps | |
def sha256(b: Union[float, list, Tensor, str, bytes, np.ndarray]): | |
if isinstance(b, (int, list, float)): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | sh - | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
source ~/.bashrc | |
nvm install stable | |
nvm use stable | |
npm i -g speed-test | |
# Install Docker | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | sh - | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
source ~/.bashrc | |
nvm install stable | |
nvm use stable | |
npm i -g speed-test | |
# Install Docker | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install multipass | |
sudo snap install multipass --classic | |
# Launch nodes | |
multipass launch -n master & multipass launch -n node1 & multipass launch -n node2 | |
# Download, transfer and run master install script | |
curl -sfL https://get.k3s.io > k3s.sh | |
multipass transfer k3s.sh master: | |
multipass exec master bash k3s.sh |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Layout info: | |
{ | |
"id": "com.apple.keylayout.British-PC", | |
"lang": "en" | |
} | |
isUSStandard: false | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| HW Code combination | Key | KeyCode combination | Pri | UI label | User settings | Electron accelerator | Dispatching string | WYSIWYG | | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| KeyA | a | A | | A | a | A | [KeyA] | | |
NewerOlder