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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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)): |
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) |
OlderNewer